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.001306/0.001306, allocations: 106.9 kB / 17.21 MB, free: 6.273 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.001313/0.001314, allocations: 194 kB / 18.12 MB, free: 5.363 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.4/1.4, allocations: 222.9 MB / 241.8 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.239/0.239, allocations: 44.18 MB / 336.1 MB, free: 3.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001303, allocations: 60.53 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1523, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.484/0.6363, allocations: 147.1 MB / 0.6012 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.6379, allocations: 0.9983 MB / 0.6022 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.225e-05/0.6379, allocations: 4 kB / 0.6022 GB, free: 13.06 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.6382, allocations: 26.7 kB / 0.6022 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005734/0.6388, allocations: 213.3 kB / 0.6024 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003752/0.6393, allocations: 106.8 kB / 0.6025 GB, free: 12.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.6395, allocations: 207.2 kB / 0.6027 GB, free: 12.53 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.196e-05/0.6396, allocations: 8 kB / 0.6027 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002427/0.6398, allocations: 93.59 kB / 0.6028 GB, free: 12.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.6399, allocations: 51.77 kB / 0.6029 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.64, allocations: 4 kB / 0.6029 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005466/0.6405, allocations: 263.7 kB / 0.6031 GB, free: 12.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.425e-05/0.6406, allocations: 15.97 kB / 0.6031 GB, free: 12.1 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.385e-05/0.6407, allocations: 48.83 kB / 0.6032 GB, free: 12.05 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005378/0.6413, allocations: 287.3 kB / 0.6035 GB, free: 11.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.6413, allocations: 0 / 0.6035 GB, free: 11.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.6413, allocations: 0 / 0.6035 GB, free: 11.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.6413, allocations: 0 / 0.6035 GB, free: 11.77 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.0007081/0.642, allocations: 411.8 kB / 0.6039 GB, free: 11.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.6421, allocations: 8.031 kB / 0.6039 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/0.6442, allocations: 196.4 kB / 0.6041 GB, free: 11.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.6445, allocations: 208 kB / 0.6043 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.6445, allocations: 4 kB / 0.6043 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.547e-05/0.6446, allocations: 12 kB / 0.6043 GB, free: 10.87 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006056/0.6452, allocations: 226.7 kB / 0.6045 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.6452, allocations: 0 / 0.6045 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.6453, allocations: 8 kB / 0.6045 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.6453, allocations: 4 kB / 0.6045 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004923/0.6458, allocations: 171.8 kB / 0.6047 GB, free: 10.46 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.001252/0.6471, allocations: 0.5718 MB / 0.6052 GB, free: 9.828 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003783/0.6474, allocations: 142.5 kB / 0.6054 GB, free: 9.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.6476, allocations: 68.83 kB / 0.6054 GB, free: 9.609 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.6476, allocations: 0 / 0.6054 GB, free: 9.609 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.6477, allocations: 38.56 kB / 0.6055 GB, free: 9.562 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.042e-06/0.6477, allocations: 0 / 0.6055 GB, free: 9.562 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.005336/0.653, allocations: 1.303 MB / 0.6067 GB, free: 8.172 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.6531, allocations: 51.41 kB / 0.6068 GB, free: 8.109 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.313e-05/0.6532, allocations: 113.8 kB / 0.6069 GB, free: 7.988 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.6532, allocations: 29.7 kB / 0.6069 GB, free: 7.953 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.609e-05/0.6533, allocations: 103.9 kB / 0.607 GB, free: 7.848 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.237e-05/0.6534, allocations: 63.05 kB / 0.6071 GB, free: 7.785 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.729e-05/0.6535, allocations: 53.69 kB / 0.6071 GB, free: 7.727 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.6536, allocations: 322.8 kB / 0.6074 GB, free: 7.402 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.6538, allocations: 67.97 kB / 0.6075 GB, free: 7.336 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.654, allocations: 101.1 kB / 0.6076 GB, free: 7.227 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/0.6544, allocations: 191.3 kB / 0.6078 GB, free: 7.027 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.6544, allocations: 0 / 0.6078 GB, free: 7.027 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000509/0.6549, allocations: 267.8 kB / 0.608 GB, free: 6.758 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.6549, allocations: 8 kB / 0.608 GB, free: 6.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.6549, allocations: 0 / 0.608 GB, free: 6.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002035/0.6551, allocations: 52.81 kB / 0.6081 GB, free: 6.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.6555, allocations: 59.89 kB / 0.6081 GB, free: 6.637 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004828/0.656, allocations: 0.564 MB / 0.6087 GB, free: 6.047 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.6562, allocations: 12.12 kB / 0.6087 GB, free: 6.035 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.455e-05/0.6562, allocations: 20 kB / 0.6087 GB, free: 6.016 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.0001298/0.6564, allocations: 129.8 kB / 0.6089 GB, free: 5.879 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.954e-05/0.6564, allocations: 7.906 kB / 0.6089 GB, free: 5.871 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008621/0.6573, allocations: 344.2 kB / 0.6092 GB, free: 5.527 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.6573, allocations: 8 kB / 0.6092 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.6573, allocations: 0 / 0.6092 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.6573, allocations: 3.984 kB / 0.6092 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.6583, allocations: 0.6111 MB / 0.6098 GB, free: 4.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.6583, allocations: 7.938 kB / 0.6098 GB, free: 4.832 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003466/0.6587, allocations: 64.05 kB / 0.6099 GB, free: 4.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-05/0.6588, allocations: 16.84 kB / 0.6099 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.231e-05/0.6588, allocations: 15.98 kB / 0.6099 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009795/0.6598, allocations: 1.277 MB / 0.6111 GB, free: 3.324 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.6598, allocations: 4.031 kB / 0.6111 GB, free: 3.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007115/0.6605, allocations: 434.6 kB / 0.6116 GB, free: 2.867 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.6606, allocations: 92.92 kB / 0.6117 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.73e-05/0.6606, allocations: 8.875 kB / 0.6117 GB, free: 2.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.6609, allocations: 8 kB / 0.6117 GB, free: 2.742 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.265e-05/0.6609, allocations: 19.97 kB / 0.6117 GB, free: 2.723 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/0.661, allocations: 27.98 kB / 0.6117 GB, free: 2.695 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.722e-05/0.6611, allocations: 99.62 kB / 0.6118 GB, free: 2.598 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.974e-06/0.6611, allocations: 0 / 0.6118 GB, free: 2.598 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004149/0.6615, allocations: 83.88 kB / 0.6119 GB, free: 2.516 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.0004091/0.6619, allocations: 143.7 kB / 0.612 GB, free: 2.367 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005236/0.6624, allocations: 210.3 kB / 0.6122 GB, free: 2.164 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.6624, allocations: 0 / 0.6122 GB, free: 2.164 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003492/0.6628, allocations: 219 kB / 0.6124 GB, free: 1.938 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.6633, allocations: 55.89 kB / 0.6125 GB, free: 1.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009682/0.6643, allocations: 0.5114 MB / 0.613 GB, free: 1.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.6646, allocations: 0.701 MB / 0.6137 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004601/0.6651, allocations: 81.39 kB / 0.6138 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.6653, allocations: 51.41 kB / 0.6138 GB, free: 496 kB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.6653, allocations: 0 / 0.6138 GB, free: 496 kB / 446.1 MB Notification: Performance of Templates: time 0.009999/0.6753, allocations: 5.455 MB / 0.6191 GB, free: 11.05 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