Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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.Air.SimpleAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",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.001183/0.001183, allocations: 105.5 kB / 17.63 MB, free: 5.344 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.00125/0.00125, allocations: 192 kB / 18.56 MB, free: 4.434 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.384/1.384, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.2162/0.2162, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 68.42 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.1005, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.3513/0.4518, allocations: 147.6 MB / 0.6025 GB, free: 13.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006974/0.4588, allocations: 5.592 MB / 0.6079 GB, free: 7.426 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005753/0.4594, allocations: 15.88 kB / 0.608 GB, free: 7.41 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.4605, allocations: 330 kB / 0.6083 GB, free: 7.086 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002061/0.4626, allocations: 0.8511 MB / 0.6091 GB, free: 6.23 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002493/0.4651, allocations: 1.025 MB / 0.6101 GB, free: 5.219 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002025/0.4671, allocations: 1.794 MB / 0.6118 GB, free: 3.422 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007785/0.4679, allocations: 476.4 kB / 0.6123 GB, free: 2.953 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001409/0.4693, allocations: 0.7513 MB / 0.613 GB, free: 2.199 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.4704, allocations: 0.7125 MB / 0.6137 GB, free: 1.484 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.4706, allocations: 60 kB / 0.6138 GB, free: 1.426 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.4718, allocations: 0.5381 MB / 0.6143 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003088/0.4721, allocations: 263.2 kB / 0.6146 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005988/0.4727, allocations: 398.2 kB / 0.6149 GB, free: 244 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001717/0.4744, allocations: 1.122 MB / 0.616 GB, free: 15.11 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4744, allocations: 0 / 0.616 GB, free: 15.11 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4745, allocations: 0 / 0.616 GB, free: 15.11 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.123e-05/0.4745, allocations: 0 / 0.616 GB, free: 15.11 MB / 462.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.002457/0.477, allocations: 1.064 MB / 0.6171 GB, free: 13.99 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.477, allocations: 8.031 kB / 0.6171 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.4772, allocations: 102.7 kB / 0.6172 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003582/0.4775, allocations: 88.08 kB / 0.6173 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008/0.4783, allocations: 0.5092 MB / 0.6178 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.4785, allocations: 108.9 kB / 0.6179 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.604e-05/0.4786, allocations: 48.38 kB / 0.6179 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.4798, allocations: 0.8188 MB / 0.6187 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.4798, allocations: 0 / 0.6187 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.509e-05/0.4799, allocations: 24 kB / 0.6187 GB, free: 12.17 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.862e-05/0.48, allocations: 40.97 kB / 0.6188 GB, free: 12.13 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.4811, allocations: 0.6556 MB / 0.6194 GB, free: 11.47 MB / 462.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.004779/0.4859, allocations: 3.967 MB / 0.6233 GB, free: 7.223 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00091/0.4868, allocations: 434.1 kB / 0.6237 GB, free: 6.789 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003719/0.4872, allocations: 197.4 kB / 0.6239 GB, free: 6.594 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007539/0.488, allocations: 0.7366 MB / 0.6246 GB, free: 5.691 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.488, allocations: 43.16 kB / 0.6247 GB, free: 5.641 MB / 462.1 MB Notification: Performance of pre-optimization done (n=40): time 2.826e-06/0.488, allocations: 0 / 0.6247 GB, free: 5.641 MB / 462.1 MB Notification: Performance of matching and sorting (n=45): time 0.003502/0.4915, allocations: 1.547 MB / 0.6262 GB, free: 4.023 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.4917, allocations: 132.5 kB / 0.6263 GB, free: 3.863 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008087/0.4925, allocations: 0.5693 MB / 0.6268 GB, free: 3.285 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.279e-05/0.4926, allocations: 41.64 kB / 0.6269 GB, free: 3.238 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003048/0.4929, allocations: 354.9 kB / 0.6272 GB, free: 2.887 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.493, allocations: 161.7 kB / 0.6274 GB, free: 2.727 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/0.4932, allocations: 138.5 kB / 0.6275 GB, free: 2.586 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4934, allocations: 378.8 kB / 0.6279 GB, free: 2.207 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003282/0.4937, allocations: 221.9 kB / 0.6281 GB, free: 1.988 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005325/0.4942, allocations: 0.5084 MB / 0.6286 GB, free: 1.344 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009248/0.4952, allocations: 0.7639 MB / 0.6293 GB, free: 460 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.4952, allocations: 4 kB / 0.6293 GB, free: 456 kB / 462.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001681/0.4969, allocations: 0.9056 MB / 0.6302 GB, free: 15.53 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.4969, allocations: 15.94 kB / 0.6302 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.4969, allocations: 8.953 kB / 0.6302 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/0.4983, allocations: 291.9 kB / 0.6305 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003704/0.4987, allocations: 123.8 kB / 0.6306 GB, free: 15.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009534/0.4997, allocations: 0.8956 MB / 0.6315 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/0.5001, allocations: 24 kB / 0.6315 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.164e-05/0.5002, allocations: 36 kB / 0.6316 GB, free: 14.12 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (71): * Single equations (assignments): 70 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0003253/0.5005, allocations: 253.4 kB / 0.6318 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.5007, allocations: 63.25 kB / 0.6319 GB, free: 13.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.5019, allocations: 0.765 MB / 0.6326 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.5019, allocations: 19.98 kB / 0.6326 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.5019, allocations: 0 / 0.6326 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.502, allocations: 3.938 kB / 0.6326 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/0.5039, allocations: 1.405 MB / 0.634 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.504, allocations: 4 kB / 0.634 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.505, allocations: 204.3 kB / 0.6342 GB, free: 11.28 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.706e-05/0.5051, allocations: 24.84 kB / 0.6342 GB, free: 11.25 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.256e-05/0.5052, allocations: 20.17 kB / 0.6343 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002276/0.5075, allocations: 2.87 MB / 0.6371 GB, free: 8.086 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.5075, allocations: 5.5 kB / 0.6371 GB, free: 8.082 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.5089, allocations: 1.015 MB / 0.6381 GB, free: 7.008 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004006/0.5093, allocations: 204.2 kB / 0.6382 GB, free: 6.789 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.5095, allocations: 8 kB / 0.6383 GB, free: 6.781 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004721/0.51, allocations: 24.05 kB / 0.6383 GB, free: 6.758 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.5101, allocations: 35.89 kB / 0.6383 GB, free: 6.723 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-05/0.5102, allocations: 23.98 kB / 0.6383 GB, free: 6.699 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005452/0.5107, allocations: 431 kB / 0.6387 GB, free: 6.281 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5107, allocations: 0 / 0.6387 GB, free: 6.281 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008383/0.5116, allocations: 223.9 kB / 0.639 GB, free: 6.062 MB / 478.1 MB 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002271/0.5138, allocations: 1.712 MB / 0.6406 GB, free: 4.297 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.5153, allocations: 0.6694 MB / 0.6413 GB, free: 3.625 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.5153, allocations: 0 / 0.6413 GB, free: 3.625 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.5164, allocations: 462.8 kB / 0.6417 GB, free: 3.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.5182, allocations: 371.3 kB / 0.6421 GB, free: 2.809 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00935/0.5275, allocations: 6.707 MB / 0.6486 GB, free: 11.71 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.528, allocations: 0.9384 MB / 0.6495 GB, free: 10.75 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007119/0.5288, allocations: 205.2 kB / 0.6497 GB, free: 10.56 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.5291, allocations: 243.3 kB / 0.65 GB, free: 10.32 MB / 494.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5291, allocations: 3.938 kB / 0.65 GB, free: 10.32 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04924/0.5784, allocations: 22.28 MB / 0.6717 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.76, allocations: 14.19 kB / 0.6718 GB, free: 4.32 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/SimpleAir/SimpleAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches