Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 174.2 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 225.7 MB / 243.9 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008436/0.0008434, allocations: 96.91 kB / 295.1 MB, free: 9.48 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.401/0.401, allocations: 44.32 MB / 390.5 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003368/0.0003369, allocations: 11.94 kB / 463.1 MB, free: 464 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3082, allocations: 61.9 MB / 0.5127 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.141/0.4492, allocations: 137.7 MB / 0.6472 GB, free: 3.773 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.4511, allocations: 1.64 MB / 0.6488 GB, free: 1.965 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.373e-05/0.4512, allocations: 3.938 kB / 0.6488 GB, free: 1.961 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002616/0.4514, allocations: 27.89 kB / 0.6488 GB, free: 1.934 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005839/0.452, allocations: 210.9 kB / 0.649 GB, free: 1.727 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.4524, allocations: 111.7 kB / 0.6491 GB, free: 1.617 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.4526, allocations: 207.2 kB / 0.6493 GB, free: 1.414 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.172e-05/0.4527, allocations: 4 kB / 0.6493 GB, free: 1.41 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.4529, allocations: 89.8 kB / 0.6494 GB, free: 1.324 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.453, allocations: 55.77 kB / 0.6494 GB, free: 1.27 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.91e-05/0.4531, allocations: 4 kB / 0.6495 GB, free: 1.266 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005153/0.4536, allocations: 259.7 kB / 0.6497 GB, free: 1.012 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 6.816e-05/0.4537, allocations: 23.91 kB / 0.6497 GB, free: 0.9883 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 8.33e-05/0.4537, allocations: 69.44 kB / 0.6498 GB, free: 0.9141 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.4542, allocations: 279.4 kB / 0.6501 GB, free: 0.6406 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.4542, allocations: 4 kB / 0.6501 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4542, allocations: 0 / 0.6501 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.4542, allocations: 4 kB / 0.6501 GB, free: 0.6328 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005421/0.4548, allocations: 391.2 kB / 0.6504 GB, free: 208 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.4548, allocations: 8.031 kB / 0.6504 GB, free: 200 kB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/0.4567, allocations: 192.6 kB / 0.6506 GB, free: 8 kB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.457, allocations: 203.7 kB / 0.6508 GB, free: 15.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.457, allocations: 8 kB / 0.6508 GB, free: 15.76 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.458e-05/0.4571, allocations: 8 kB / 0.6508 GB, free: 15.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005544/0.4576, allocations: 226.1 kB / 0.6511 GB, free: 15.52 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.4577, allocations: 0 / 0.6511 GB, free: 15.52 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.763e-05/0.4577, allocations: 8 kB / 0.6511 GB, free: 15.51 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4577, allocations: 3.938 kB / 0.6511 GB, free: 15.51 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004685/0.4582, allocations: 179.7 kB / 0.6512 GB, free: 15.33 MB / 474.7 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.001081/0.4593, allocations: 0.569 MB / 0.6518 GB, free: 14.71 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.4596, allocations: 142.5 kB / 0.6519 GB, free: 14.56 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.4598, allocations: 68.83 kB / 0.652 GB, free: 14.49 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.4598, allocations: 3.984 kB / 0.652 GB, free: 14.49 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.4599, allocations: 34.56 kB / 0.652 GB, free: 14.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.4599, allocations: 4 kB / 0.652 GB, free: 14.44 MB / 474.7 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: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005099/0.465, allocations: 1.309 MB / 0.6533 GB, free: 13.04 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.465, allocations: 55.41 kB / 0.6534 GB, free: 12.97 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.318e-05/0.4651, allocations: 109.8 kB / 0.6535 GB, free: 12.86 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.4652, allocations: 33.7 kB / 0.6535 GB, free: 12.82 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.971e-05/0.4652, allocations: 88.05 kB / 0.6536 GB, free: 12.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.918e-05/0.4653, allocations: 70.94 kB / 0.6537 GB, free: 12.66 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.702e-05/0.4653, allocations: 8 kB / 0.6537 GB, free: 12.65 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.4655, allocations: 326.8 kB / 0.654 GB, free: 12.32 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.4657, allocations: 63.97 kB / 0.654 GB, free: 12.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.4659, allocations: 111.2 kB / 0.6541 GB, free: 12.14 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/0.4662, allocations: 184.4 kB / 0.6543 GB, free: 11.95 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4662, allocations: 3.984 kB / 0.6543 GB, free: 11.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004773/0.4667, allocations: 247.8 kB / 0.6546 GB, free: 11.69 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.4667, allocations: 8 kB / 0.6546 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.4667, allocations: 0 / 0.6546 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001843/0.4669, allocations: 56.92 kB / 0.6546 GB, free: 11.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.4672, allocations: 55.89 kB / 0.6547 GB, free: 11.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004141/0.4677, allocations: 0.5601 MB / 0.6552 GB, free: 10.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.4679, allocations: 15.94 kB / 0.6552 GB, free: 10.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.4679, allocations: 28 kB / 0.6553 GB, free: 10.94 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.468, allocations: 130.4 kB / 0.6554 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.953e-05/0.4681, allocations: 7.906 kB / 0.6554 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008166/0.4689, allocations: 346 kB / 0.6557 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4689, allocations: 0 / 0.6557 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4689, allocations: 0 / 0.6557 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4689, allocations: 3.984 kB / 0.6557 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000958/0.4699, allocations: 0.6228 MB / 0.6563 GB, free: 9.754 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4699, allocations: 4 kB / 0.6563 GB, free: 9.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.4703, allocations: 59.89 kB / 0.6564 GB, free: 9.691 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.038e-05/0.4703, allocations: 24.94 kB / 0.6564 GB, free: 9.664 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.4704, allocations: 19.92 kB / 0.6564 GB, free: 9.645 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008807/0.4713, allocations: 1.272 MB / 0.6577 GB, free: 8.238 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4713, allocations: 0 / 0.6577 GB, free: 8.238 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006592/0.4719, allocations: 426.6 kB / 0.6581 GB, free: 7.793 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-05/0.472, allocations: 97.05 kB / 0.6582 GB, free: 7.68 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/0.472, allocations: 4 kB / 0.6582 GB, free: 7.676 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.4723, allocations: 8 kB / 0.6582 GB, free: 7.668 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.057e-05/0.4723, allocations: 27.91 kB / 0.6582 GB, free: 7.641 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.454e-05/0.4724, allocations: 27.98 kB / 0.6582 GB, free: 7.613 MB / 474.7 MB Notification: Performance of sorting global known variables: time 4.646e-05/0.4724, allocations: 91.25 kB / 0.6583 GB, free: 7.523 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4724, allocations: 0 / 0.6583 GB, free: 7.523 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0003679/0.4728, allocations: 83.94 kB / 0.6584 GB, free: 7.441 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * Single equations (assignments): 20 * 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.0003526/0.4732, allocations: 151.1 kB / 0.6586 GB, free: 7.285 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0005116/0.4737, allocations: 215.7 kB / 0.6588 GB, free: 7.078 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4737, allocations: 0 / 0.6588 GB, free: 7.078 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000335/0.4741, allocations: 218.6 kB / 0.659 GB, free: 6.852 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.4745, allocations: 48.33 kB / 0.659 GB, free: 6.805 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008426/0.4753, allocations: 0.5744 MB / 0.6596 GB, free: 6.195 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.4756, allocations: 0.7088 MB / 0.6603 GB, free: 5.461 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004321/0.4761, allocations: 81.92 kB / 0.6603 GB, free: 5.379 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001928/0.4763, allocations: 55.41 kB / 0.6604 GB, free: 5.328 MB / 474.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4763, allocations: 0 / 0.6604 GB, free: 5.328 MB / 474.7 MB Notification: Performance of Templates: time 0.009733/0.486, allocations: 5.435 MB / 0.6657 GB, free: 15.91 MB / 490.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches