Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001629/0.001629, allocations: 199.6 kB / 8.536 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009525/0.0009525, allocations: 90.22 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.713e-06/6.823e-06, allocations: 0 / 343.1 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 51.48 MB / 394.6 MB, free: 5.227 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.581/1.694, allocations: 0.7068 GB / 1.092 GB, free: 136.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/1.695, allocations: 63.2 kB / 1.092 GB, free: 136.4 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.214/1.909, allocations: 108.7 MB / 1.198 GB, free: 47.65 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.037e-05/1.909, allocations: 9.125 kB / 1.198 GB, free: 47.64 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.002849/1.912, allocations: 0.7835 MB / 1.199 GB, free: 46.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/1.912, allocations: 8.031 kB / 1.199 GB, free: 46.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002087/1.914, allocations: 303.1 kB / 1.199 GB, free: 46.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005472/1.914, allocations: 286.6 kB / 1.2 GB, free: 46.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/1.914, allocations: 12 kB / 1.2 GB, free: 46.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/1.915, allocations: 19.91 kB / 1.2 GB, free: 46.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009384/1.916, allocations: 0.6105 MB / 1.2 GB, free: 45.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008526/1.916, allocations: 0.5814 MB / 1.201 GB, free: 44.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/1.916, allocations: 4 kB / 1.201 GB, free: 44.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.001e-05/1.917, allocations: 0 / 1.201 GB, free: 44.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/1.917, allocations: 16.44 kB / 1.201 GB, free: 44.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003974/1.921, allocations: 1.75 MB / 1.203 GB, free: 43.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/1.921, allocations: 353.3 kB / 1.203 GB, free: 42.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/1.921, allocations: 185.6 kB / 1.203 GB, free: 42.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001818/1.923, allocations: 0.9055 MB / 1.204 GB, free: 41.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/1.923, allocations: 38.94 kB / 1.204 GB, free: 41.47 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 4.498e-06/1.923, allocations: 0 / 1.204 GB, free: 41.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=48): time 0.007881/1.931, allocations: 2.207 MB / 1.206 GB, free: 39.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/1.931, allocations: 81.11 kB / 1.206 GB, free: 39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/1.931, allocations: 159.2 kB / 1.207 GB, free: 38.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.28e-05/1.931, allocations: 25.7 kB / 1.207 GB, free: 38.81 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.588e-05/1.932, allocations: 180.1 kB / 1.207 GB, free: 38.63 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/1.932, allocations: 173.4 kB / 1.207 GB, free: 38.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/1.932, allocations: 0 / 1.207 GB, free: 38.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.007e-05/1.932, allocations: 338.8 kB / 1.207 GB, free: 38.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/1.932, allocations: 197.3 kB / 1.207 GB, free: 37.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003439/1.932, allocations: 356.9 kB / 1.208 GB, free: 37.51 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/1.933, allocations: 246.2 kB / 1.208 GB, free: 37.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/1.933, allocations: 4 kB / 1.208 GB, free: 37.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00109/1.934, allocations: 0.6281 MB / 1.209 GB, free: 36.63 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/1.934, allocations: 4 kB / 1.209 GB, free: 36.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/1.934, allocations: 4 kB / 1.209 GB, free: 36.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002153/1.934, allocations: 45.7 kB / 1.209 GB, free: 36.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/1.935, allocations: 180 kB / 1.209 GB, free: 36.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005286/1.936, allocations: 1.097 MB / 1.21 GB, free: 35.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007649/1.937, allocations: 39.86 kB / 1.21 GB, free: 35.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-05/1.937, allocations: 35.98 kB / 1.21 GB, free: 35.18 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.0001681/1.937, allocations: 120.8 kB / 1.21 GB, free: 35.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/1.937, allocations: 31.8 kB / 1.21 GB, free: 35.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/1.939, allocations: 0.6803 MB / 1.211 GB, free: 34.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/1.939, allocations: 8 kB / 1.211 GB, free: 34.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/1.939, allocations: 0 / 1.211 GB, free: 34.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/1.939, allocations: 3.984 kB / 1.211 GB, free: 34.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002477/1.941, allocations: 1.367 MB / 1.212 GB, free: 32.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/1.941, allocations: 7.938 kB / 1.212 GB, free: 32.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/1.942, allocations: 143.8 kB / 1.212 GB, free: 32.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000143/1.943, allocations: 41.62 kB / 1.212 GB, free: 32.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.253e-05/1.943, allocations: 23.97 kB / 1.212 GB, free: 32.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/1.944, allocations: 2.413 MB / 1.215 GB, free: 30.01 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.944, allocations: 8.188 kB / 1.215 GB, free: 30 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001413/1.946, allocations: 0.983 MB / 1.216 GB, free: 28.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.851e-05/1.946, allocations: 96.83 kB / 1.216 GB, free: 28.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/1.946, allocations: 4 kB / 1.216 GB, free: 28.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008124/1.947, allocations: 35.86 kB / 1.216 GB, free: 28.77 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/1.947, allocations: 35.95 kB / 1.216 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-05/1.947, allocations: 31.97 kB / 1.216 GB, free: 28.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.291e-05/1.947, allocations: 124.4 kB / 1.216 GB, free: 28.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00216/1.949, allocations: 423.6 kB / 1.216 GB, free: 28.16 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.004767/1.954, allocations: 1.397 MB / 1.218 GB, free: 26.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/1.955, allocations: 0.5182 MB / 1.218 GB, free: 26.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.955, allocations: 4 kB / 1.218 GB, free: 26.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006058/1.956, allocations: 464.9 kB / 1.219 GB, free: 25.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006543/1.956, allocations: 86.77 kB / 1.219 GB, free: 25.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/1.958, allocations: 0.7169 MB / 1.219 GB, free: 24.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008238/1.959, allocations: 0.8698 MB / 1.22 GB, free: 24.04 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/1.959, allocations: 0 / 1.22 GB, free: 24.04 MB / 442.7 MB Notification: Performance of Templates: time 0.03219/1.991, allocations: 21.16 MB / 1.241 GB, free: 2.898 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_trunk_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches