Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.001019, allocations: 95.03 kB / 17.35 MB, free: 6.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.001248/0.001248, allocations: 175.5 kB / 18.25 MB, free: 5.523 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.401/1.401, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2271/0.2271, allocations: 44.24 MB / 337.7 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004758/0.0004759, allocations: 12.72 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.15, allocations: 61.92 MB / 472.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.514/0.6641, allocations: 145.3 MB / 0.603 GB, free: 1.453 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.6654, allocations: 0.9992 MB / 0.604 GB, free: 476 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.47e-05/0.6655, allocations: 0 / 0.604 GB, free: 476 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000258/0.6658, allocations: 27.83 kB / 0.604 GB, free: 448 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005119/0.6663, allocations: 207.4 kB / 0.6042 GB, free: 244 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003458/0.6666, allocations: 112.9 kB / 0.6043 GB, free: 136 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002707/0.6669, allocations: 204.8 kB / 0.6045 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.604e-05/0.667, allocations: 7.984 kB / 0.6045 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.6672, allocations: 89.66 kB / 0.6046 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.6673, allocations: 55.77 kB / 0.6047 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.6673, allocations: 4 kB / 0.6047 GB, free: 15.78 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000472/0.6678, allocations: 263.7 kB / 0.6049 GB, free: 15.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.363e-05/0.6679, allocations: 27.91 kB / 0.605 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.947e-05/0.668, allocations: 65.5 kB / 0.605 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.6684, allocations: 275.4 kB / 0.6053 GB, free: 15.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.6684, allocations: 8 kB / 0.6053 GB, free: 15.15 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.6684, allocations: 3.938 kB / 0.6053 GB, free: 15.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.6684, allocations: 0 / 0.6053 GB, free: 15.14 MB / 446.1 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.0004896/0.6689, allocations: 386.1 kB / 0.6057 GB, free: 14.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.669, allocations: 8.031 kB / 0.6057 GB, free: 14.71 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002105/0.6711, allocations: 192.6 kB / 0.6058 GB, free: 14.53 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.6714, allocations: 208.1 kB / 0.606 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.6714, allocations: 4 kB / 0.6061 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.551e-05/0.6715, allocations: 12.84 kB / 0.6061 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005189/0.672, allocations: 224 kB / 0.6063 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.672, allocations: 4 kB / 0.6063 GB, free: 14.03 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.672, allocations: 4 kB / 0.6063 GB, free: 14.03 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.6721, allocations: 4 kB / 0.6063 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.6725, allocations: 167.8 kB / 0.6064 GB, free: 13.86 MB / 446.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.00115/0.6736, allocations: 0.5759 MB / 0.607 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.674, allocations: 138.5 kB / 0.6071 GB, free: 13.08 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.6742, allocations: 76.19 kB / 0.6072 GB, free: 13.01 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.6742, allocations: 7.938 kB / 0.6072 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.6742, allocations: 34.56 kB / 0.6073 GB, free: 12.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.744e-06/0.6742, allocations: 0 / 0.6073 GB, free: 12.96 MB / 446.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: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005388/0.6796, allocations: 1.304 MB / 0.6085 GB, free: 11.56 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.6797, allocations: 55.41 kB / 0.6086 GB, free: 11.49 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.6798, allocations: 109.8 kB / 0.6087 GB, free: 11.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.6799, allocations: 29.7 kB / 0.6087 GB, free: 11.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.488e-05/0.6799, allocations: 96.02 kB / 0.6088 GB, free: 11.24 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.793e-05/0.68, allocations: 70.95 kB / 0.6089 GB, free: 11.17 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.6801, allocations: 21.7 kB / 0.6089 GB, free: 11.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.6802, allocations: 322.8 kB / 0.6092 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.6804, allocations: 67.97 kB / 0.6093 GB, free: 10.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.6805, allocations: 111.2 kB / 0.6094 GB, free: 10.63 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.6809, allocations: 189 kB / 0.6096 GB, free: 10.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.6809, allocations: 0 / 0.6096 GB, free: 10.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005033/0.6814, allocations: 262.1 kB / 0.6098 GB, free: 10.17 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.6814, allocations: 8 kB / 0.6098 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.6815, allocations: 0 / 0.6098 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001899/0.6817, allocations: 48.83 kB / 0.6099 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003095/0.682, allocations: 55.95 kB / 0.6099 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004353/0.6824, allocations: 0.5719 MB / 0.6105 GB, free: 9.461 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.6826, allocations: 10.59 kB / 0.6105 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.414e-05/0.6827, allocations: 24 kB / 0.6105 GB, free: 9.43 MB / 446.1 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.0001356/0.6828, allocations: 128 kB / 0.6106 GB, free: 9.297 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.836e-05/0.6829, allocations: 11.91 kB / 0.6106 GB, free: 9.285 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008409/0.6837, allocations: 339.2 kB / 0.611 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.6837, allocations: 4 kB / 0.611 GB, free: 8.938 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.6837, allocations: 0 / 0.611 GB, free: 8.938 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.6838, allocations: 3.984 kB / 0.611 GB, free: 8.934 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009699/0.6847, allocations: 0.6166 MB / 0.6116 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.6847, allocations: 0.875 kB / 0.6116 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.6851, allocations: 63.89 kB / 0.6116 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.192e-05/0.6852, allocations: 24.84 kB / 0.6117 GB, free: 8.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.6852, allocations: 11.98 kB / 0.6117 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00091/0.6861, allocations: 1.273 MB / 0.6129 GB, free: 6.742 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6861, allocations: 4 kB / 0.6129 GB, free: 6.738 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006853/0.6868, allocations: 433.9 kB / 0.6133 GB, free: 6.289 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.312e-05/0.6869, allocations: 96.83 kB / 0.6134 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.822e-05/0.6869, allocations: 8 kB / 0.6134 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.6871, allocations: 8 kB / 0.6134 GB, free: 6.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.121e-05/0.6872, allocations: 19.97 kB / 0.6135 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.404e-05/0.6873, allocations: 36.05 kB / 0.6135 GB, free: 6.105 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.124e-05/0.6873, allocations: 87.27 kB / 0.6136 GB, free: 6.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6873, allocations: 0 / 0.6136 GB, free: 6.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004089/0.6877, allocations: 79.94 kB / 0.6136 GB, free: 5.941 MB / 446.1 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.0003726/0.6881, allocations: 157.4 kB / 0.6138 GB, free: 5.781 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005143/0.6886, allocations: 203.8 kB / 0.614 GB, free: 5.582 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6887, allocations: 0 / 0.614 GB, free: 5.582 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.689, allocations: 230.9 kB / 0.6142 GB, free: 5.344 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.6895, allocations: 42.3 kB / 0.6143 GB, free: 5.305 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008991/0.6904, allocations: 0.5738 MB / 0.6148 GB, free: 4.699 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.6907, allocations: 0.7054 MB / 0.6155 GB, free: 3.969 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004293/0.6911, allocations: 89.36 kB / 0.6156 GB, free: 3.883 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.6914, allocations: 47.41 kB / 0.6156 GB, free: 3.836 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6914, allocations: 0 / 0.6156 GB, free: 3.836 MB / 446.1 MB Notification: Performance of Templates: time 0.009891/0.7013, allocations: 5.423 MB / 0.6209 GB, free: 14.43 MB / 462.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches