Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2") translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001203/0.001203, allocations: 183.2 kB / 8.481 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.774/1.774, allocations: 205.2 MB / 214.1 MB, free: 5.461 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 80.8 kB / 262.1 MB, free: 5.523 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.856e-06/8.876e-06, allocations: 4 kB / 315 MB, free: 41.56 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 47.57 MB / 362.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.125/1.231, allocations: 450.6 MB / 0.7941 GB, free: 122.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/1.231, allocations: 71.97 kB / 0.7942 GB, free: 122.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.05745/1.288, allocations: 29.21 MB / 0.8227 GB, free: 92.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.56e-05/1.288, allocations: 0 / 0.8227 GB, free: 92.8 MB / 426.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.0004048/1.289, allocations: 386.5 kB / 0.8231 GB, free: 92.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/1.289, allocations: 8.031 kB / 0.8231 GB, free: 92.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001701/1.291, allocations: 239.5 kB / 0.8233 GB, free: 92.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/1.291, allocations: 206.8 kB / 0.8235 GB, free: 91.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/1.291, allocations: 0 / 0.8235 GB, free: 91.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.774e-05/1.291, allocations: 8 kB / 0.8235 GB, free: 91.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003068/1.291, allocations: 147.9 kB / 0.8236 GB, free: 91.74 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002012/1.292, allocations: 129.1 kB / 0.8238 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/1.292, allocations: 224 / 0.8238 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/1.292, allocations: 0 / 0.8238 GB, free: 91.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/1.292, allocations: 11.94 kB / 0.8238 GB, free: 91.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009072/1.292, allocations: 0.5539 MB / 0.8243 GB, free: 90.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002255/1.293, allocations: 118.6 kB / 0.8244 GB, free: 90.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.92e-05/1.293, allocations: 60.84 kB / 0.8245 GB, free: 90.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/1.293, allocations: 4 kB / 0.8245 GB, free: 90.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/1.293, allocations: 31.06 kB / 0.8245 GB, free: 90.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/1.293, allocations: 0 / 0.8245 GB, free: 90.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.003785/1.297, allocations: 0.8737 MB / 0.8254 GB, free: 89.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/1.297, allocations: 51.41 kB / 0.8254 GB, free: 89.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.555e-05/1.297, allocations: 112.8 kB / 0.8255 GB, free: 89.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/1.297, allocations: 25.7 kB / 0.8256 GB, free: 89.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/1.297, allocations: 87.98 kB / 0.8256 GB, free: 89.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.946e-05/1.297, allocations: 67 kB / 0.8257 GB, free: 89.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.874e-05/1.297, allocations: 4 kB / 0.8257 GB, free: 89.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.445e-05/1.297, allocations: 322.8 kB / 0.826 GB, free: 89.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.934e-05/1.297, allocations: 60 kB / 0.8261 GB, free: 89.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/1.297, allocations: 95.45 kB / 0.8262 GB, free: 88.94 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/1.297, allocations: 66.03 kB / 0.8262 GB, free: 88.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/1.297, allocations: 4 kB / 0.8262 GB, free: 88.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004119/1.298, allocations: 236.6 kB / 0.8265 GB, free: 88.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/1.298, allocations: 7.906 kB / 0.8265 GB, free: 88.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/1.298, allocations: 0 / 0.8265 GB, free: 88.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001712/1.298, allocations: 40.84 kB / 0.8265 GB, free: 88.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/1.298, allocations: 63.88 kB / 0.8266 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004516/1.299, allocations: 0.5681 MB / 0.8271 GB, free: 87.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/1.299, allocations: 11.88 kB / 0.8271 GB, free: 87.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.167e-05/1.299, allocations: 27.98 kB / 0.8272 GB, free: 87.89 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001165/1.299, allocations: 112.9 kB / 0.8273 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.242e-05/1.299, allocations: 12 kB / 0.8273 GB, free: 87.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008907/1.3, allocations: 355.1 kB / 0.8276 GB, free: 87.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/1.3, allocations: 4 kB / 0.8276 GB, free: 87.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/1.3, allocations: 7.938 kB / 0.8276 GB, free: 87.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/1.3, allocations: 0 / 0.8276 GB, free: 87.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000842/1.301, allocations: 0.5532 MB / 0.8282 GB, free: 86.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/1.301, allocations: 4 kB / 0.8282 GB, free: 86.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003511/1.302, allocations: 63.89 kB / 0.8282 GB, free: 86.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.379e-05/1.302, allocations: 24.94 kB / 0.8283 GB, free: 86.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/1.302, allocations: 11.98 kB / 0.8283 GB, free: 86.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000726/1.302, allocations: 1.213 MB / 0.8295 GB, free: 85.35 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.302, allocations: 0 / 0.8295 GB, free: 85.35 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004816/1.303, allocations: 439.7 kB / 0.8299 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.453e-05/1.303, allocations: 92.91 kB / 0.83 GB, free: 84.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/1.303, allocations: 0 / 0.83 GB, free: 84.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/1.303, allocations: 7.984 kB / 0.83 GB, free: 84.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/1.303, allocations: 19.98 kB / 0.83 GB, free: 84.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.206e-05/1.303, allocations: 27.98 kB / 0.83 GB, free: 84.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.725e-05/1.303, allocations: 87.34 kB / 0.8301 GB, free: 84.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000554/1.304, allocations: 108 kB / 0.8302 GB, free: 84.52 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009674/1.305, allocations: 0.621 MB / 0.8308 GB, free: 83.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003895/1.305, allocations: 176 kB / 0.831 GB, free: 83.72 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.305, allocations: 0 / 0.831 GB, free: 83.72 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002311/1.306, allocations: 198.1 kB / 0.8312 GB, free: 83.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/1.306, allocations: 43.86 kB / 0.8312 GB, free: 83.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006257/1.307, allocations: 324.3 kB / 0.8315 GB, free: 83.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004581/1.307, allocations: 0.7823 MB / 0.8323 GB, free: 82.32 MB / 426.7 MB Notification: Performance of SimCode: time 2.8e-07/1.307, allocations: 0 / 0.8323 GB, free: 82.32 MB / 426.7 MB Notification: Performance of Templates: time 0.01171/1.319, allocations: 8.418 MB / 0.8405 GB, free: 73.89 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2/IdealGasN2.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches