Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_3_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.0008061/0.0008062, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008882/0.0008884, allocations: 176.1 kB / 16.91 MB, free: 6.648 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.394/1.394, allocations: 205.4 MB / 223.1 MB, free: 5.223 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3554/0.3554, allocations: 43.56 MB / 315 MB, free: 8.949 MB / 254.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.0004949/0.000495, allocations: 12.47 kB / 384.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1195, allocations: 58.86 MB / 443.6 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.4713/0.5909, allocations: 175.8 MB / 0.6048 GB, free: 11.2 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.6032, allocations: 8.292 MB / 0.6129 GB, free: 2.895 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.6043, allocations: 23.81 kB / 0.613 GB, free: 2.871 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009242/0.6053, allocations: 278.5 kB / 0.6132 GB, free: 2.598 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004593/0.6099, allocations: 1.327 MB / 0.6145 GB, free: 1.273 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003209/0.6131, allocations: 0.9969 MB / 0.6155 GB, free: 296 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003319/0.6164, allocations: 2.715 MB / 0.6181 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007227/0.6172, allocations: 403.2 kB / 0.6185 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002858/0.62, allocations: 1.104 MB / 0.6196 GB, free: 12.08 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001149/0.6212, allocations: 0.6851 MB / 0.6203 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.6213, allocations: 32 kB / 0.6203 GB, free: 11.36 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00179/0.6231, allocations: 0.702 MB / 0.621 GB, free: 10.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003027/0.6234, allocations: 243.2 kB / 0.6212 GB, free: 10.42 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004689/0.6239, allocations: 391.9 kB / 0.6216 GB, free: 10.03 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001978/0.6259, allocations: 1.379 MB / 0.6229 GB, free: 8.645 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.6259, allocations: 7.938 kB / 0.6229 GB, free: 8.637 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6259, allocations: 0 / 0.6229 GB, free: 8.637 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.6259, allocations: 0 / 0.6229 GB, free: 8.637 MB / 494.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.002224/0.6282, allocations: 0.9754 MB / 0.6239 GB, free: 7.613 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.6282, allocations: 8.031 kB / 0.6239 GB, free: 7.605 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.6284, allocations: 110.5 kB / 0.624 GB, free: 7.488 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00083/0.6292, allocations: 131.1 kB / 0.6241 GB, free: 7.359 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008518/0.6301, allocations: 0.5079 MB / 0.6246 GB, free: 6.809 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.6302, allocations: 100.4 kB / 0.6247 GB, free: 6.699 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.6303, allocations: 48 kB / 0.6248 GB, free: 6.652 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.6316, allocations: 0.8174 MB / 0.6256 GB, free: 5.758 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.6317, allocations: 0 / 0.6256 GB, free: 5.758 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.457e-05/0.6317, allocations: 31.97 kB / 0.6256 GB, free: 5.727 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.174e-05/0.6318, allocations: 40.92 kB / 0.6256 GB, free: 5.688 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.6329, allocations: 0.6205 MB / 0.6262 GB, free: 5.066 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.004935/0.6378, allocations: 3.983 MB / 0.6301 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000594/0.6385, allocations: 351.6 kB / 0.6305 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002804/0.6388, allocations: 174.3 kB / 0.6306 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3405/0.9793, allocations: 365.2 kB / 0.631 GB, free: 49.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.9794, allocations: 36.62 kB / 0.631 GB, free: 49.02 MB / 494.1 MB Notification: Performance of pre-optimization done (n=34): time 2.415e-06/0.9794, allocations: 0 / 0.631 GB, free: 49.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=39): time 0.005954/0.9853, allocations: 1.662 MB / 0.6326 GB, free: 48.58 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.9854, allocations: 141.9 kB / 0.6328 GB, free: 48.42 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009065/0.9863, allocations: 0.6133 MB / 0.6334 GB, free: 48.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.696e-05/0.9864, allocations: 35.31 kB / 0.6334 GB, free: 48.25 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.9867, allocations: 363.2 kB / 0.6338 GB, free: 48.06 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.9868, allocations: 147 kB / 0.6339 GB, free: 47.97 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.257e-05/0.9869, allocations: 62.38 kB / 0.634 GB, free: 47.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.987, allocations: 376 kB / 0.6343 GB, free: 47.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000358/0.9874, allocations: 198.9 kB / 0.6345 GB, free: 47.64 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005249/0.9879, allocations: 0.5154 MB / 0.635 GB, free: 47.26 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009444/0.9889, allocations: 0.7437 MB / 0.6357 GB, free: 46.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/0.9889, allocations: 2.594 kB / 0.6357 GB, free: 46.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00155/0.9905, allocations: 0.8831 MB / 0.6366 GB, free: 46.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.9905, allocations: 12.88 kB / 0.6366 GB, free: 46.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/0.9905, allocations: 12.78 kB / 0.6366 GB, free: 46.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.992, allocations: 319.5 kB / 0.6369 GB, free: 46.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003995/0.9924, allocations: 122.8 kB / 0.637 GB, free: 46.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.9935, allocations: 0.935 MB / 0.638 GB, free: 46.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000668/0.9942, allocations: 41.83 kB / 0.638 GB, free: 46.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.9943, allocations: 67.23 kB / 0.6381 GB, free: 46.29 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.0004047/0.9947, allocations: 247.9 kB / 0.6383 GB, free: 46.17 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.9949, allocations: 73.47 kB / 0.6384 GB, free: 46.13 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.9964, allocations: 0.6824 MB / 0.639 GB, free: 46.06 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.9964, allocations: 4.688 kB / 0.639 GB, free: 46.06 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.9964, allocations: 0 / 0.639 GB, free: 46.06 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.9964, allocations: 2.391 kB / 0.639 GB, free: 46.06 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.9987, allocations: 1.608 MB / 0.6406 GB, free: 45.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.9987, allocations: 4.031 kB / 0.6406 GB, free: 45.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000994/0.9997, allocations: 211.7 kB / 0.6408 GB, free: 45.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.429e-05/0.9998, allocations: 30.41 kB / 0.6408 GB, free: 45.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-05/0.9999, allocations: 18.31 kB / 0.6409 GB, free: 45.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001578/1.001, allocations: 2.681 MB / 0.6435 GB, free: 42.75 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.001, allocations: 6.875 kB / 0.6435 GB, free: 42.75 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/1.003, allocations: 0.8076 MB / 0.6443 GB, free: 42.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003497/1.003, allocations: 195.1 kB / 0.6445 GB, free: 42.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/1.003, allocations: 14.56 kB / 0.6445 GB, free: 42.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000463/1.004, allocations: 34.94 kB / 0.6445 GB, free: 42.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/1.004, allocations: 31.98 kB / 0.6445 GB, free: 42.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.136e-05/1.004, allocations: 45.84 kB / 0.6446 GB, free: 42.39 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0005816/1.004, allocations: 442.7 kB / 0.645 GB, free: 42.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.004, allocations: 4 kB / 0.645 GB, free: 42.29 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001193/1.006, allocations: 291.4 kB / 0.6453 GB, free: 42.29 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.002355/1.008, allocations: 1.6 MB / 0.6469 GB, free: 41.53 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/1.009, allocations: 0.5419 MB / 0.6474 GB, free: 41.52 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.009, allocations: 0 / 0.6474 GB, free: 41.52 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009454/1.01, allocations: 430.7 kB / 0.6478 GB, free: 41.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001935/1.012, allocations: 348.6 kB / 0.6481 GB, free: 41.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/1.022, allocations: 6.811 MB / 0.6548 GB, free: 38.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006249/1.023, allocations: 0.9325 MB / 0.6557 GB, free: 37.56 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001412/1.024, allocations: 261.2 kB / 0.6559 GB, free: 37.49 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006207/1.025, allocations: 272 kB / 0.6562 GB, free: 37.47 MB / 494.1 MB Notification: Performance of SimCode: time 1.683e-06/1.025, allocations: 0.9062 kB / 0.6562 GB, free: 37.47 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06153/1.087, allocations: 24.21 MB / 0.6798 GB, free: 27.82 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/1.087, allocations: 303.2 kB / 0.6801 GB, free: 27.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/3.644, allocations: 0 / 0.6801 GB, free: 27.43 MB / 494.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches