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.001174/0.001174, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001241/0.001242, allocations: 192 kB / 18.66 MB, free: 4.445 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.341/1.341, 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.001249/0.001249, allocations: 55.91 kB / 328.1 MB, free: 3.77 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0817/0.08297, allocations: 46.62 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air): time 0.3461/0.4291, allocations: 172.8 MB / 0.5346 GB, free: 2.676 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003966/0.4331, allocations: 3.213 MB / 0.5378 GB, free: 15.44 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004051/0.4336, allocations: 7.938 kB / 0.5378 GB, free: 15.43 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007689/0.4344, allocations: 178.9 kB / 0.5379 GB, free: 15.26 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.4357, allocations: 403.5 kB / 0.5383 GB, free: 14.86 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.4368, allocations: 347.8 kB / 0.5386 GB, free: 14.52 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.438, allocations: 0.8913 MB / 0.5395 GB, free: 13.63 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.4382, allocations: 108.6 kB / 0.5396 GB, free: 13.53 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001988/0.4402, allocations: 0.7913 MB / 0.5404 GB, free: 12.74 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005571/0.4408, allocations: 267 kB / 0.5406 GB, free: 12.48 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.4409, allocations: 32 kB / 0.5407 GB, free: 12.45 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004161/0.4413, allocations: 123.8 kB / 0.5408 GB, free: 12.32 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.4415, allocations: 99.72 kB / 0.5409 GB, free: 12.23 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.4417, allocations: 183.3 kB / 0.5411 GB, free: 12.05 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005927/0.4423, allocations: 0.5141 MB / 0.5416 GB, free: 11.53 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4423, allocations: 4 kB / 0.5416 GB, free: 11.53 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.4423, allocations: 4 kB / 0.5416 GB, free: 11.52 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.4424, allocations: 0 / 0.5416 GB, free: 11.52 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.0008796/0.4432, allocations: 0.5852 MB / 0.5421 GB, free: 10.89 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4433, allocations: 12.03 kB / 0.5422 GB, free: 10.88 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.723e-05/0.4434, allocations: 66.47 kB / 0.5422 GB, free: 10.8 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002755/0.4437, allocations: 39.62 kB / 0.5423 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004601/0.4441, allocations: 298.4 kB / 0.5425 GB, free: 10.43 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.4442, allocations: 16.56 kB / 0.5426 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.4442, allocations: 24 kB / 0.5426 GB, free: 10.39 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004731/0.4447, allocations: 323.6 kB / 0.5429 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.4447, allocations: 0 / 0.5429 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.536e-05/0.4447, allocations: 12 kB / 0.5429 GB, free: 10.04 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.4448, allocations: 8 kB / 0.5429 GB, free: 10.03 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.4451, allocations: 205.5 kB / 0.5431 GB, free: 9.832 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.001804/0.4469, allocations: 1.593 MB / 0.5447 GB, free: 8.09 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.4472, allocations: 175.1 kB / 0.5448 GB, free: 7.91 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.4474, allocations: 100.8 kB / 0.5449 GB, free: 7.809 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-05/0.4474, allocations: 4 kB / 0.5449 GB, free: 7.805 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.4474, allocations: 35.44 kB / 0.545 GB, free: 7.762 MB / 478.1 MB Notification: Performance of pre-optimization done (n=22): time 1.804e-06/0.4475, allocations: 4 kB / 0.545 GB, free: 7.758 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.005378/0.4528, allocations: 1.61 MB / 0.5465 GB, free: 6.016 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.4529, allocations: 59.34 kB / 0.5466 GB, free: 5.945 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.4531, allocations: 256.9 kB / 0.5468 GB, free: 5.688 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.4532, allocations: 33.7 kB / 0.5469 GB, free: 5.648 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.4533, allocations: 176.2 kB / 0.547 GB, free: 5.469 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.441e-05/0.4534, allocations: 90.66 kB / 0.5471 GB, free: 5.379 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.4535, allocations: 81.69 kB / 0.5472 GB, free: 5.293 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.4536, allocations: 338.8 kB / 0.5475 GB, free: 4.953 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.4538, allocations: 87.95 kB / 0.5476 GB, free: 4.867 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.454, allocations: 191.8 kB / 0.5478 GB, free: 4.637 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/0.4544, allocations: 300.3 kB / 0.5481 GB, free: 4.301 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4544, allocations: 0 / 0.5481 GB, free: 4.301 MB / 478.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006411/0.4551, allocations: 403 kB / 0.5485 GB, free: 3.895 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.4551, allocations: 11.94 kB / 0.5485 GB, free: 3.883 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.4551, allocations: 4.875 kB / 0.5485 GB, free: 3.879 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002353/0.4553, allocations: 81.61 kB / 0.5486 GB, free: 3.793 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.4557, allocations: 75.91 kB / 0.5486 GB, free: 3.719 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.457, allocations: 1.956 MB / 0.5505 GB, free: 1.602 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.4572, allocations: 16.09 kB / 0.5506 GB, free: 1.586 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.165e-05/0.4573, allocations: 36 kB / 0.5506 GB, free: 1.551 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.0001664/0.4575, allocations: 170.3 kB / 0.5508 GB, free: 1.375 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.624e-05/0.4575, allocations: 23.72 kB / 0.5508 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008139/0.4584, allocations: 437.9 kB / 0.5512 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.4584, allocations: 7.938 kB / 0.5512 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.4584, allocations: 0.875 kB / 0.5512 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005076/0.4589, allocations: 0.563 MB / 0.5518 GB, free: 252 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1594/0.6183, allocations: 0.7285 MB / 0.5525 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.6184, allocations: 1.938 kB / 0.5525 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.6187, allocations: 74.75 kB / 0.5525 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.975e-05/0.6188, allocations: 17.38 kB / 0.5526 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.6188, allocations: 17.38 kB / 0.5526 GB, free: 170.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006527/0.6195, allocations: 1.378 MB / 0.5539 GB, free: 169.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6195, allocations: 0.7188 kB / 0.5539 GB, free: 169.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006045/0.6201, allocations: 478.6 kB / 0.5544 GB, free: 168.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.93e-05/0.6202, allocations: 103 kB / 0.5545 GB, free: 168.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.6203, allocations: 7.859 kB / 0.5545 GB, free: 168.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.6205, allocations: 10.16 kB / 0.5545 GB, free: 168.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/0.6205, allocations: 24.55 kB / 0.5545 GB, free: 168.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.774e-05/0.6206, allocations: 31.47 kB / 0.5545 GB, free: 168.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001657/0.6208, allocations: 196.4 kB / 0.5547 GB, free: 168.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6208, allocations: 0 / 0.5547 GB, free: 168.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005136/0.6213, allocations: 121.7 kB / 0.5548 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.00119/0.6225, allocations: 1.053 MB / 0.5559 GB, free: 168 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007085/0.6232, allocations: 380.6 kB / 0.5562 GB, free: 167.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.6232, allocations: 0 / 0.5562 GB, free: 167.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002629/0.6235, allocations: 233.6 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.0009362/0.6244, allocations: 165.2 kB / 0.5566 GB, free: 167.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.628, allocations: 3.177 MB / 0.5597 GB, free: 165.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.6283, allocations: 0.7629 MB / 0.5605 GB, free: 165.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004907/0.6288, allocations: 119 kB / 0.5606 GB, free: 165.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.629, allocations: 134.3 kB / 0.5607 GB, free: 165 MB / 478.1 MB Notification: Performance of SimCode: time 1.293e-06/0.629, allocations: 0 / 0.5607 GB, free: 165 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2628/0.8918, allocations: 12.03 MB / 0.5725 GB, free: 161.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/13.16, allocations: 9.781 kB / 0.5725 GB, free: 161.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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.mat","/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