Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001596/0.001596, allocations: 183.7 kB / 8.154 MB, free: 2.184 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.766/1.766, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001337/0.001336, allocations: 92.27 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.296e-06/8.336e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2622, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8998/1.162, allocations: 450.6 MB / 0.7934 GB, free: 28 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/1.162, allocations: 76.02 kB / 0.7935 GB, free: 27.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.09602/1.258, allocations: 29.21 MB / 0.822 GB, free: 3.793 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.447e-05/1.258, allocations: 0 / 0.822 GB, free: 3.793 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.0004404/1.259, allocations: 389.4 kB / 0.8224 GB, free: 3.371 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/1.259, allocations: 8.031 kB / 0.8224 GB, free: 3.363 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002944/1.262, allocations: 227.5 kB / 0.8226 GB, free: 3.141 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/1.262, allocations: 206.9 kB / 0.8228 GB, free: 2.898 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/1.262, allocations: 4 kB / 0.8228 GB, free: 2.895 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.716e-05/1.262, allocations: 8 kB / 0.8228 GB, free: 2.887 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005174/1.263, allocations: 151.8 kB / 0.823 GB, free: 2.738 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/1.263, allocations: 132.2 kB / 0.8231 GB, free: 2.594 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/1.263, allocations: 0 / 0.8231 GB, free: 2.594 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/1.263, allocations: 0 / 0.8231 GB, free: 2.594 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/1.263, allocations: 3.391 kB / 0.8231 GB, free: 2.594 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/1.265, allocations: 0.5515 MB / 0.8236 GB, free: 2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/1.265, allocations: 118.5 kB / 0.8237 GB, free: 1.875 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/1.265, allocations: 58.73 kB / 0.8238 GB, free: 1.816 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.674e-05/1.265, allocations: 8 kB / 0.8238 GB, free: 1.809 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/1.265, allocations: 35.06 kB / 0.8238 GB, free: 1.766 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 1.644e-06/1.265, allocations: 0 / 0.8238 GB, free: 1.766 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.006711/1.272, allocations: 0.8699 MB / 0.8247 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.057e-05/1.272, allocations: 51.41 kB / 0.8247 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.449e-05/1.272, allocations: 102.2 kB / 0.8248 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/1.272, allocations: 25.7 kB / 0.8249 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.157e-05/1.272, allocations: 166.4 kB / 0.825 GB, free: 464 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/1.272, allocations: 70.94 kB / 0.8251 GB, free: 392 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.576e-05/1.272, allocations: 0 / 0.8251 GB, free: 392 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.891e-05/1.272, allocations: 322.8 kB / 0.8254 GB, free: 60 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/1.272, allocations: 56 kB / 0.8255 GB, free: 4 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1375/1.41, allocations: 94.22 kB / 0.8255 GB, free: 182.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/1.41, allocations: 66.52 kB / 0.8256 GB, free: 182.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/1.41, allocations: 0 / 0.8256 GB, free: 182.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006553/1.411, allocations: 233.3 kB / 0.8258 GB, free: 182.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/1.411, allocations: 7.875 kB / 0.8258 GB, free: 182.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/1.411, allocations: 3.969 kB / 0.8258 GB, free: 182.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002366/1.411, allocations: 39.5 kB / 0.8259 GB, free: 182.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/1.412, allocations: 61.73 kB / 0.8259 GB, free: 182.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004847/1.412, allocations: 0.5722 MB / 0.8265 GB, free: 181.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/1.413, allocations: 3.875 kB / 0.8265 GB, free: 181.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-05/1.413, allocations: 34.77 kB / 0.8265 GB, free: 181.9 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.0001168/1.413, allocations: 40.02 kB / 0.8266 GB, free: 181.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.118e-05/1.413, allocations: 11.59 kB / 0.8266 GB, free: 181.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/1.414, allocations: 349.2 kB / 0.8269 GB, free: 181.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/1.414, allocations: 3.969 kB / 0.8269 GB, free: 181.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/1.414, allocations: 0.5625 kB / 0.8269 GB, free: 181.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/1.414, allocations: 3.344 kB / 0.8269 GB, free: 181.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/1.416, allocations: 0.5561 MB / 0.8275 GB, free: 181.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/1.416, allocations: 3.625 kB / 0.8275 GB, free: 181.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006127/1.416, allocations: 64.56 kB / 0.8275 GB, free: 181.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.225e-05/1.416, allocations: 22.33 kB / 0.8276 GB, free: 181.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.172e-05/1.416, allocations: 13.19 kB / 0.8276 GB, free: 181.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008429/1.417, allocations: 1.216 MB / 0.8288 GB, free: 180.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.417, allocations: 0 / 0.8288 GB, free: 180.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007744/1.418, allocations: 446.2 kB / 0.8292 GB, free: 180.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.499e-05/1.418, allocations: 84.08 kB / 0.8293 GB, free: 180 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.694e-05/1.418, allocations: 3.281 kB / 0.8293 GB, free: 180 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003691/1.419, allocations: 6.875 kB / 0.8293 GB, free: 180 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.723e-05/1.419, allocations: 22.22 kB / 0.8293 GB, free: 180 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.185e-05/1.419, allocations: 30.09 kB / 0.8293 GB, free: 180 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.993e-05/1.419, allocations: 84.19 kB / 0.8294 GB, free: 179.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000618/1.419, allocations: 109.6 kB / 0.8295 GB, free: 179.9 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.001105/1.42, allocations: 0.6304 MB / 0.8301 GB, free: 179.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005484/1.421, allocations: 177.6 kB / 0.8303 GB, free: 179.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/1.421, allocations: 2.531 kB / 0.8303 GB, free: 179.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003612/1.421, allocations: 197.3 kB / 0.8305 GB, free: 179.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005812/1.422, allocations: 48.2 kB / 0.8305 GB, free: 179.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008775/1.423, allocations: 344.5 kB / 0.8309 GB, free: 179.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006827/1.424, allocations: 0.7856 MB / 0.8316 GB, free: 178.8 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/1.424, allocations: 0 / 0.8316 GB, free: 178.8 MB / 426.7 MB Notification: Performance of Templates: time 0.0122/1.436, allocations: 6.419 MB / 0.8379 GB, free: 178.5 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches