Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",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.001334/0.001334, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001152/0.001152, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2058/0.2058, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002363/0.002363, allocations: 64.58 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1239, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.383/0.5069, allocations: 174.4 MB / 0.6286 GB, free: 2.117 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.007253/0.5142, allocations: 5.338 MB / 0.6339 GB, free: 12.77 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008989/0.5151, allocations: 19.88 kB / 0.6339 GB, free: 12.75 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001279/0.5165, allocations: 314 kB / 0.6342 GB, free: 12.44 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004036/0.5206, allocations: 1.246 MB / 0.6354 GB, free: 11.19 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002636/0.5232, allocations: 0.9674 MB / 0.6363 GB, free: 10.23 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002452/0.5257, allocations: 1.844 MB / 0.6381 GB, free: 8.383 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009251/0.5266, allocations: 469.8 kB / 0.6386 GB, free: 7.922 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002392/0.529, allocations: 1.059 MB / 0.6396 GB, free: 6.859 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.5302, allocations: 0.6462 MB / 0.6403 GB, free: 6.211 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002181/0.5305, allocations: 64 kB / 0.6403 GB, free: 6.148 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001552/0.532, allocations: 0.5774 MB / 0.6409 GB, free: 5.57 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000358/0.5324, allocations: 267.2 kB / 0.6411 GB, free: 5.309 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005883/0.533, allocations: 402.2 kB / 0.6415 GB, free: 4.914 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001941/0.535, allocations: 1.286 MB / 0.6428 GB, free: 3.625 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.535, allocations: 0 / 0.6428 GB, free: 3.625 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.535, allocations: 4 kB / 0.6428 GB, free: 3.621 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.749e-05/0.535, allocations: 0 / 0.6428 GB, free: 3.621 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002787/0.5378, allocations: 1.107 MB / 0.6439 GB, free: 2.461 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.5379, allocations: 8.031 kB / 0.6439 GB, free: 2.453 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.5381, allocations: 102.5 kB / 0.644 GB, free: 2.344 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008913/0.539, allocations: 139.1 kB / 0.6441 GB, free: 2.207 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008475/0.5398, allocations: 0.5002 MB / 0.6446 GB, free: 1.668 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.54, allocations: 108.3 kB / 0.6447 GB, free: 1.547 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.998e-05/0.5401, allocations: 48 kB / 0.6447 GB, free: 1.5 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.5414, allocations: 0.8175 MB / 0.6455 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.5414, allocations: 0 / 0.6455 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.512e-05/0.5415, allocations: 27.98 kB / 0.6456 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.9e-05/0.5416, allocations: 40.92 kB / 0.6456 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.5427, allocations: 0.6204 MB / 0.6462 GB, free: 15.92 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004607/0.5473, allocations: 3.969 MB / 0.6501 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005911/0.5479, allocations: 362 kB / 0.6504 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002712/0.5482, allocations: 170.2 kB / 0.6506 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/0.5484, allocations: 89.38 kB / 0.6507 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.5484, allocations: 42.84 kB / 0.6507 GB, free: 11.01 MB / 494.1 MB Notification: Performance of pre-optimization done (n=34): time 2.395e-06/0.5484, allocations: 0 / 0.6507 GB, free: 11.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=39): time 0.005983/0.5544, allocations: 1.672 MB / 0.6523 GB, free: 9.27 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.373e-05/0.5545, allocations: 136.5 kB / 0.6525 GB, free: 9.105 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007857/0.5553, allocations: 0.6172 MB / 0.6531 GB, free: 8.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.396e-05/0.5554, allocations: 33.7 kB / 0.6531 GB, free: 8.441 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002997/0.5557, allocations: 366.8 kB / 0.6535 GB, free: 8.078 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.5558, allocations: 142 kB / 0.6536 GB, free: 7.938 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002434/0.5561, allocations: 158.5 kB / 0.6537 GB, free: 7.777 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.5562, allocations: 378.8 kB / 0.6541 GB, free: 7.398 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004007/0.5566, allocations: 205.9 kB / 0.6543 GB, free: 7.195 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005874/0.5572, allocations: 0.5203 MB / 0.6548 GB, free: 6.531 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009738/0.5582, allocations: 0.7513 MB / 0.6555 GB, free: 5.641 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.5582, allocations: 7.938 kB / 0.6556 GB, free: 5.633 MB / 494.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001477/0.5597, allocations: 0.8838 MB / 0.6564 GB, free: 4.738 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.5598, allocations: 8 kB / 0.6564 GB, free: 4.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.5598, allocations: 12 kB / 0.6564 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0014/0.5612, allocations: 312.9 kB / 0.6567 GB, free: 4.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004138/0.5616, allocations: 127.7 kB / 0.6569 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.5627, allocations: 0.9231 MB / 0.6578 GB, free: 3.336 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005381/0.5633, allocations: 27.98 kB / 0.6578 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.7e-05/0.5634, allocations: 68 kB / 0.6578 GB, free: 3.242 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003685/0.5638, allocations: 249.5 kB / 0.6581 GB, free: 2.988 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.5639, allocations: 71.16 kB / 0.6582 GB, free: 2.918 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001701/0.5656, allocations: 0.8716 MB / 0.659 GB, free: 2.031 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.5656, allocations: 4 kB / 0.659 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5657, allocations: 0 / 0.659 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.5657, allocations: 0 / 0.659 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/0.5677, allocations: 1.461 MB / 0.6604 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.5678, allocations: 0 / 0.6604 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.5688, allocations: 215.9 kB / 0.6606 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.988e-05/0.5689, allocations: 24.84 kB / 0.6607 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.435e-05/0.569, allocations: 20 kB / 0.6607 GB, free: 176 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.571, allocations: 2.877 MB / 0.6635 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.571, allocations: 160 / 0.6635 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.5723, allocations: 0.8246 MB / 0.6643 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003646/0.5727, allocations: 188.3 kB / 0.6645 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.5729, allocations: 8 kB / 0.6645 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/0.5733, allocations: 15.98 kB / 0.6645 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5734, allocations: 47.83 kB / 0.6645 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7e-05/0.5735, allocations: 43.98 kB / 0.6646 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005351/0.5741, allocations: 439 kB / 0.665 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.01e-07/0.5741, allocations: 8 kB / 0.665 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000913/0.575, allocations: 256 kB / 0.6653 GB, free: 11.16 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002175/0.5772, allocations: 1.547 MB / 0.6668 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001355/0.5785, allocations: 0.5968 MB / 0.6674 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.5786, allocations: 7.938 kB / 0.6674 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.5796, allocations: 415.7 kB / 0.6678 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.5816, allocations: 378.2 kB / 0.6681 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009069/0.5906, allocations: 6.545 MB / 0.6745 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/0.5912, allocations: 0.93 MB / 0.6754 GB, free: 304 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001319/0.5925, allocations: 470.4 kB / 0.6759 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005446/0.5931, allocations: 279.3 kB / 0.6761 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of SimCode: time 6.61e-07/0.5931, allocations: 0 / 0.6761 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05253/0.6457, allocations: 24.13 MB / 0.6997 GB, free: 7.746 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.62, allocations: 10.52 kB / 0.6997 GB, free: 7.738 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches