Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 113.4 kB / 17.73 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.1008, allocations: 46.61 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004021/0.1048, allocations: 2.75 MB / 377.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1061, allocations: 0.69 MB / 378.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.1063, allocations: 4 kB / 378.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.1066, allocations: 43.56 kB / 378.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.1068, allocations: 95.19 kB / 378.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.1071, allocations: 91.81 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004677/0.1076, allocations: 386.3 kB / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.1078, allocations: 114.9 kB / 378.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.1081, allocations: 151.5 kB / 379 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.1083, allocations: 171.2 kB / 379.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-05/0.1084, allocations: 36 kB / 379.2 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.582e-05/0.1084, allocations: 32 kB / 379.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.427e-05/0.1085, allocations: 63.83 kB / 379.3 MB, free: 460 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.1087, allocations: 167.2 kB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.223/0.3317, allocations: 372.8 kB / 379.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.3318, allocations: 0 / 379.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3318, allocations: 0.5938 kB / 379.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.755e-05/0.3319, allocations: 0 / 379.8 MB, free: 10.07 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001418/0.3333, allocations: 0.6608 MB / 380.4 MB, free: 9.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.3333, allocations: 9.625 kB / 380.5 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.272e-05/0.3334, allocations: 58.23 kB / 380.5 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.016e-05/0.3335, allocations: 39.11 kB / 380.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.334, allocations: 278.4 kB / 380.8 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.3341, allocations: 17.94 kB / 380.8 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.785e-05/0.3341, allocations: 24.31 kB / 380.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009359/0.3351, allocations: 303.5 kB / 381.2 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.3351, allocations: 0 / 381.2 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.27e-05/0.3352, allocations: 9.578 kB / 381.2 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.3352, allocations: 9.25 kB / 381.2 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009691/0.3362, allocations: 253 kB / 381.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.3383, allocations: 1.091 MB / 382.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009981/0.3393, allocations: 212.1 kB / 382.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.3397, allocations: 92 kB / 382.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.3398, allocations: 2.047 kB / 382.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000566/0.3403, allocations: 174.3 kB / 383 MB, free: 8.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.094e-06/0.3404, allocations: 0 / 383 MB, free: 8.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.00257/0.3429, allocations: 0.509 MB / 383.5 MB, free: 8.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/0.343, allocations: 108.7 kB / 383.6 MB, free: 8.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004993/0.3435, allocations: 287.1 kB / 383.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.711e-05/0.3436, allocations: 32.36 kB / 383.9 MB, free: 8.117 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.3438, allocations: 193.7 kB / 384.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.057e-05/0.3439, allocations: 47.92 kB / 384.1 MB, free: 7.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.3441, allocations: 49.8 kB / 384.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.3443, allocations: 336.5 kB / 384.5 MB, free: 7.625 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.3447, allocations: 91.84 kB / 384.6 MB, free: 7.625 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005406/0.3453, allocations: 201.9 kB / 384.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008764/0.3461, allocations: 302.7 kB / 385.1 MB, free: 7.344 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3462, allocations: 6.562 kB / 385.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001528/0.3477, allocations: 422.3 kB / 385.5 MB, free: 7.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.447e-05/0.3478, allocations: 38.02 kB / 385.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.3478, allocations: 4.516 kB / 385.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004339/0.3482, allocations: 76.14 kB / 385.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.3485, allocations: 48.23 kB / 385.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002786/0.3513, allocations: 1.719 MB / 387.4 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005538/0.3519, allocations: 57.16 kB / 387.5 MB, free: 5.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.3519, allocations: 9.797 kB / 387.5 MB, free: 5.812 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002712/0.3522, allocations: 158 kB / 387.6 MB, free: 5.684 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.732e-05/0.3523, allocations: 28.02 kB / 387.7 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.345e-05/0.3523, allocations: 27.59 kB / 387.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3524, allocations: 2.906 kB / 387.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3524, allocations: 0 / 387.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.3524, allocations: 1.828 kB / 387.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005372/0.3529, allocations: 296.9 kB / 388 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3529, allocations: 0 / 388 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.3531, allocations: 26.62 kB / 388 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003312/0.3534, allocations: 67.33 kB / 388.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3535, allocations: 1.828 kB / 388.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002349/0.3558, allocations: 1.719 MB / 389.8 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3558, allocations: 9.094 kB / 389.8 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.357, allocations: 313.3 kB / 390.1 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.3572, allocations: 115.2 kB / 390.2 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/0.3572, allocations: 2.156 kB / 390.2 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.3575, allocations: 33.17 kB / 390.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.3576, allocations: 24.97 kB / 390.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.3576, allocations: 3.312 kB / 390.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.3579, allocations: 203.8 kB / 390.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.3579, allocations: 0 / 390.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000469/0.3584, allocations: 83.27 kB / 390.6 MB, free: 3.48 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001373/0.3598, allocations: 0.8478 MB / 391.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.3609, allocations: 416.1 kB / 391.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3609, allocations: 0 / 391.8 MB, free: 2.574 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005022/0.3615, allocations: 222.3 kB / 392 MB, free: 2.434 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.3619, allocations: 42.25 kB / 392.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005069/0.3669, allocations: 2.996 MB / 395.1 MB, free: 472 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.3673, allocations: 0.7554 MB / 395.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.3674, allocations: 26.05 kB / 395.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3675, allocations: 78.06 kB / 395.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of SimCode: time 1.703e-06/0.3675, allocations: 3.938 kB / 395.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03162/0.3992, allocations: 6.805 MB / 402.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.07, allocations: 9.297 kB / 402.7 MB, free: 13.57 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches