Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.MixtureGases") translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.MixtureGases") [: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 4.0.0+maint.om/package.mo): time 0.0009806/0.0009806, allocations: 184.8 kB / 8.133 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.232/1.232, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009566/0.0009566, allocations: 89.67 kB / 280.8 MB, free: 1.305 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.185e-06/8.225e-06, allocations: 4 kB / 336.5 MB, free: 9.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2776, allocations: 50.39 MB / 386.9 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.368/1.646, allocations: 0.7061 GB / 1.084 GB, free: 80.55 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/1.646, allocations: 71.91 kB / 1.084 GB, free: 80.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.4559/2.102, allocations: 108.9 MB / 1.19 GB, free: 136 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.157e-05/2.102, allocations: 6.969 kB / 1.19 GB, free: 136 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.002946/2.105, allocations: 0.7858 MB / 1.191 GB, free: 135.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/2.105, allocations: 11.47 kB / 1.191 GB, free: 135.6 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002144/2.107, allocations: 292.2 kB / 1.191 GB, free: 135.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005804/2.108, allocations: 297.3 kB / 1.192 GB, free: 135.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/2.108, allocations: 7.188 kB / 1.192 GB, free: 135.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/2.108, allocations: 17.59 kB / 1.192 GB, free: 135.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001017/2.109, allocations: 0.609 MB / 1.192 GB, free: 135.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000979/2.11, allocations: 0.5822 MB / 1.193 GB, free: 135.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/2.11, allocations: 3.75 kB / 1.193 GB, free: 135.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.149e-05/2.11, allocations: 0.7031 kB / 1.193 GB, free: 135.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.325e-05/2.11, allocations: 18.34 kB / 1.193 GB, free: 135.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003888/2.114, allocations: 1.761 MB / 1.195 GB, free: 134.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005187/2.115, allocations: 371.8 kB / 1.195 GB, free: 134 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/2.115, allocations: 180.7 kB / 1.195 GB, free: 133.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001519/2.117, allocations: 0.9149 MB / 1.196 GB, free: 133.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/2.117, allocations: 42.09 kB / 1.196 GB, free: 133.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 2.976e-06/2.117, allocations: 0 / 1.196 GB, free: 133.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=48): time 0.00755/2.124, allocations: 2.196 MB / 1.198 GB, free: 131.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/2.124, allocations: 84.08 kB / 1.198 GB, free: 131.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/2.124, allocations: 155.4 kB / 1.198 GB, free: 131.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.101e-05/2.124, allocations: 25.7 kB / 1.198 GB, free: 131.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.203e-05/2.125, allocations: 175.6 kB / 1.199 GB, free: 131.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/2.125, allocations: 170 kB / 1.199 GB, free: 131.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/2.125, allocations: 0 / 1.199 GB, free: 131.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.098e-05/2.125, allocations: 333.3 kB / 1.199 GB, free: 131 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003101/2.125, allocations: 207.9 kB / 1.199 GB, free: 130.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/2.126, allocations: 351.6 kB / 1.2 GB, free: 130.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/2.126, allocations: 238.8 kB / 1.2 GB, free: 130.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/2.126, allocations: 3.938 kB / 1.2 GB, free: 130.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001182/2.127, allocations: 0.6188 MB / 1.2 GB, free: 130.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/2.127, allocations: 5.156 kB / 1.2 GB, free: 130.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/2.127, allocations: 9.25 kB / 1.2 GB, free: 130.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002007/2.127, allocations: 51.02 kB / 1.2 GB, free: 130.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/2.129, allocations: 179 kB / 1.201 GB, free: 130.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005607/2.129, allocations: 1.094 MB / 1.202 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007985/2.13, allocations: 36.16 kB / 1.202 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/2.13, allocations: 38.73 kB / 1.202 GB, free: 129.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001967/2.13, allocations: 120.2 kB / 1.202 GB, free: 129 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/2.13, allocations: 31.72 kB / 1.202 GB, free: 129 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/2.132, allocations: 0.6839 MB / 1.203 GB, free: 128.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.403e-06/2.132, allocations: 13.28 kB / 1.203 GB, free: 128.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/2.132, allocations: 1.594 kB / 1.203 GB, free: 128.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/2.132, allocations: 2.375 kB / 1.203 GB, free: 128.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/2.135, allocations: 1.365 MB / 1.204 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/2.135, allocations: 3.531 kB / 1.204 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/2.136, allocations: 146.3 kB / 1.204 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000128/2.136, allocations: 39.47 kB / 1.204 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.091e-05/2.136, allocations: 20.25 kB / 1.204 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001378/2.138, allocations: 2.419 MB / 1.207 GB, free: 125.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/2.138, allocations: 2.219 kB / 1.207 GB, free: 125.4 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001445/2.139, allocations: 0.9869 MB / 1.207 GB, free: 124.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.825e-05/2.139, allocations: 96.83 kB / 1.208 GB, free: 124.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/2.139, allocations: 4 kB / 1.208 GB, free: 124.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007812/2.14, allocations: 37.73 kB / 1.208 GB, free: 124.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-05/2.14, allocations: 42.34 kB / 1.208 GB, free: 124.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.996e-05/2.14, allocations: 27.22 kB / 1.208 GB, free: 124.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.314e-05/2.14, allocations: 117.9 kB / 1.208 GB, free: 124.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002317/2.143, allocations: 421.9 kB / 1.208 GB, free: 123.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004382/2.147, allocations: 1.381 MB / 1.21 GB, free: 122.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001015/2.148, allocations: 0.5218 MB / 1.21 GB, free: 122.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/2.148, allocations: 0 / 1.21 GB, free: 122.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/2.149, allocations: 461.5 kB / 1.21 GB, free: 121.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006031/2.149, allocations: 76.5 kB / 1.211 GB, free: 121.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/2.151, allocations: 0.7282 MB / 1.211 GB, free: 121.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007621/2.152, allocations: 0.8779 MB / 1.212 GB, free: 120.2 MB / 442.7 MB Notification: Performance of SimCode: time 3.31e-07/2.152, allocations: 0 / 1.212 GB, free: 120.2 MB / 442.7 MB Notification: Performance of Templates: time 0.02904/2.181, allocations: 21.09 MB / 1.233 GB, free: 100.4 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_4.0.0_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches