Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.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 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.Media.Examples.Tests.MediaTestModels.IdealGases.Air,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_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.001426/0.001426, 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.001559/0.001559, 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.313/1.313, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001238/0.001238, allocations: 51.92 kB / 328.1 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.09046, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air): time 0.3516/0.4421, allocations: 172.8 MB / 0.5346 GB, free: 2.664 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003816/0.446, allocations: 3.222 MB / 0.5378 GB, free: 15.43 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.4462, allocations: 4 kB / 0.5378 GB, free: 15.43 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005808/0.4468, allocations: 178.9 kB / 0.5379 GB, free: 15.25 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007853/0.4476, allocations: 409.7 kB / 0.5383 GB, free: 14.85 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007559/0.4484, allocations: 337.8 kB / 0.5386 GB, free: 14.52 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008819/0.4493, allocations: 0.9031 MB / 0.5395 GB, free: 13.61 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.4495, allocations: 100.7 kB / 0.5396 GB, free: 13.52 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.4511, allocations: 0.8051 MB / 0.5404 GB, free: 12.71 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.4514, allocations: 267 kB / 0.5407 GB, free: 12.45 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 5.672e-05/0.4515, allocations: 32 kB / 0.5407 GB, free: 12.42 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000286/0.4518, allocations: 119.9 kB / 0.5408 GB, free: 12.3 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.4519, allocations: 99.7 kB / 0.5409 GB, free: 12.21 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001917/0.4521, allocations: 187.3 kB / 0.5411 GB, free: 12.02 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005786/0.4527, allocations: 0.513 MB / 0.5416 GB, free: 11.51 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4527, allocations: 4 kB / 0.5416 GB, free: 11.51 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4527, allocations: 0 / 0.5416 GB, free: 11.51 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.4527, allocations: 0 / 0.5416 GB, free: 11.51 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008032/0.4535, allocations: 0.5999 MB / 0.5422 GB, free: 10.86 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4536, allocations: 8.031 kB / 0.5422 GB, free: 10.85 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.774e-05/0.4536, allocations: 58.55 kB / 0.5422 GB, free: 10.78 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002583/0.4539, allocations: 43.8 kB / 0.5423 GB, free: 10.74 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004617/0.4544, allocations: 303 kB / 0.5426 GB, free: 10.4 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.4544, allocations: 20.5 kB / 0.5426 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.4545, allocations: 24 kB / 0.5426 GB, free: 10.36 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.4549, allocations: 323.6 kB / 0.5429 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.455, allocations: 4 kB / 0.5429 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.455, allocations: 8 kB / 0.5429 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.455, allocations: 8 kB / 0.5429 GB, free: 10 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/0.4553, allocations: 203.9 kB / 0.5431 GB, free: 9.805 MB / 478.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.00169/0.457, allocations: 1.601 MB / 0.5447 GB, free: 8.055 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.4573, allocations: 171.1 kB / 0.5449 GB, free: 7.879 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.4575, allocations: 96.77 kB / 0.545 GB, free: 7.781 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.372e-05/0.4575, allocations: 4 kB / 0.545 GB, free: 7.777 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.4576, allocations: 46.55 kB / 0.545 GB, free: 7.723 MB / 478.1 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.4576, allocations: 0 / 0.545 GB, free: 7.723 MB / 478.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=27): time 0.004994/0.4626, allocations: 1.615 MB / 0.5466 GB, free: 5.977 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.4626, allocations: 55.41 kB / 0.5466 GB, free: 5.91 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/0.4629, allocations: 253 kB / 0.5469 GB, free: 5.656 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.4629, allocations: 33.7 kB / 0.5469 GB, free: 5.617 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.463, allocations: 180.5 kB / 0.5471 GB, free: 5.434 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.851e-05/0.4631, allocations: 103.1 kB / 0.5472 GB, free: 5.332 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.4632, allocations: 77.69 kB / 0.5473 GB, free: 5.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4634, allocations: 342.8 kB / 0.5476 GB, free: 4.906 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.4635, allocations: 83.97 kB / 0.5477 GB, free: 4.824 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.4637, allocations: 195.7 kB / 0.5478 GB, free: 4.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.4641, allocations: 300.3 kB / 0.5481 GB, free: 4.254 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.4641, allocations: 0 / 0.5481 GB, free: 4.254 MB / 478.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006076/0.4647, allocations: 411.1 kB / 0.5485 GB, free: 3.84 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.4648, allocations: 8 kB / 0.5485 GB, free: 3.832 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4648, allocations: 0 / 0.5485 GB, free: 3.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000204/0.465, allocations: 69.69 kB / 0.5486 GB, free: 3.758 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003213/0.4653, allocations: 87.83 kB / 0.5487 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.4667, allocations: 1.954 MB / 0.5506 GB, free: 1.555 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.4669, allocations: 12 kB / 0.5506 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-05/0.4669, allocations: 39.98 kB / 0.5506 GB, free: 1.504 MB / 478.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.4671, allocations: 162.3 kB / 0.5508 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.333e-05/0.4672, allocations: 31.81 kB / 0.5508 GB, free: 1.305 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007997/0.468, allocations: 442.9 kB / 0.5512 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.468, allocations: 4 kB / 0.5513 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.468, allocations: 0 / 0.5513 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005028/0.4685, allocations: 0.563 MB / 0.5518 GB, free: 204 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1909/0.6594, allocations: 0.727 MB / 0.5525 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.6595, allocations: 2.25 kB / 0.5525 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003358/0.6598, allocations: 71.98 kB / 0.5526 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.842e-05/0.6599, allocations: 22.73 kB / 0.5526 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.66, allocations: 15.91 kB / 0.5526 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006994/0.6607, allocations: 1.382 MB / 0.554 GB, free: 169 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.6607, allocations: 2.125 kB / 0.554 GB, free: 169 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006558/0.6614, allocations: 479.1 kB / 0.5544 GB, free: 168.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.646e-05/0.6614, allocations: 107.2 kB / 0.5545 GB, free: 168.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.6615, allocations: 7.281 kB / 0.5545 GB, free: 168.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.6617, allocations: 9.297 kB / 0.5545 GB, free: 168.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.6618, allocations: 25.11 kB / 0.5546 GB, free: 168.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.895e-05/0.6619, allocations: 34.73 kB / 0.5546 GB, free: 168.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001901/0.662, allocations: 188.9 kB / 0.5548 GB, free: 168.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6621, allocations: 2.156 kB / 0.5548 GB, free: 168.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005766/0.6626, allocations: 121.3 kB / 0.5549 GB, free: 168.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (26): * Single equations (assignments): 25 * 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): 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.001153/0.6638, allocations: 1.058 MB / 0.5559 GB, free: 168 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0006935/0.6645, allocations: 380.1 kB / 0.5563 GB, free: 167.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.6645, allocations: 2.453 kB / 0.5563 GB, free: 167.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002706/0.6648, allocations: 226 kB / 0.5565 GB, free: 167.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008565/0.6657, allocations: 164.6 kB / 0.5567 GB, free: 167.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003523/0.6692, allocations: 3.187 MB / 0.5598 GB, free: 165.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.6694, allocations: 0.7624 MB / 0.5605 GB, free: 165.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004167/0.6699, allocations: 116.6 kB / 0.5606 GB, free: 165 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.6701, allocations: 129.9 kB / 0.5608 GB, free: 165 MB / 478.1 MB Notification: Performance of SimCode: time 3.3e-07/0.6701, allocations: 0 / 0.5608 GB, free: 165 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04466/0.7148, allocations: 11.91 MB / 0.5724 GB, free: 161.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.53, allocations: 9.328 kB / 0.5724 GB, free: 161.4 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.Tests.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 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_Air.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches