Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.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.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002417/0.002417, allocations: 176 kB / 8.15 MB, free: 2.207 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.882/1.882, allocations: 205.2 MB / 213.8 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.001306/0.001305, allocations: 91.86 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.577e-06/8.596e-06, allocations: 0 / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2535, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.55/1.803, allocations: 0.7372 GB / 1.091 GB, free: 53.71 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/1.804, allocations: 67.09 kB / 1.091 GB, free: 53.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.5378/2.341, allocations: 106.5 MB / 1.195 GB, free: 125.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.092e-05/2.341, allocations: 7.219 kB / 1.195 GB, free: 125.5 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.004161/2.346, allocations: 0.7941 MB / 1.195 GB, free: 124.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/2.346, allocations: 15.61 kB / 1.195 GB, free: 124.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003473/2.349, allocations: 287.9 kB / 1.196 GB, free: 124.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007009/2.35, allocations: 285.2 kB / 1.196 GB, free: 124.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/2.35, allocations: 7.844 kB / 1.196 GB, free: 124.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/2.35, allocations: 23.41 kB / 1.196 GB, free: 124.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001706/2.352, allocations: 0.6118 MB / 1.197 GB, free: 123.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/2.353, allocations: 0.5776 MB / 1.197 GB, free: 123.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/2.353, allocations: 0 / 1.197 GB, free: 123.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/2.354, allocations: 4 kB / 1.197 GB, free: 123.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.2e-05/2.354, allocations: 20.33 kB / 1.197 GB, free: 123.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006443/2.36, allocations: 1.762 MB / 1.199 GB, free: 121.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008784/2.361, allocations: 362.1 kB / 1.199 GB, free: 121.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004512/2.361, allocations: 180.5 kB / 1.199 GB, free: 120.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002423/2.364, allocations: 0.9152 MB / 1.2 GB, free: 119.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/2.364, allocations: 34.56 kB / 1.2 GB, free: 119.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 3.487e-06/2.364, allocations: 3.938 kB / 1.2 GB, free: 119.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.01341/2.377, allocations: 2.191 MB / 1.202 GB, free: 117.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/2.378, allocations: 85.11 kB / 1.203 GB, free: 117.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/2.378, allocations: 154.3 kB / 1.203 GB, free: 117.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/2.378, allocations: 29.7 kB / 1.203 GB, free: 117.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.145e-05/2.378, allocations: 246.5 kB / 1.203 GB, free: 116.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/2.378, allocations: 169.5 kB / 1.203 GB, free: 116.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.643e-05/2.378, allocations: 0 / 1.203 GB, free: 116.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.561e-05/2.378, allocations: 330.8 kB / 1.203 GB, free: 116.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005752/2.379, allocations: 201.3 kB / 1.204 GB, free: 116.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006206/2.379, allocations: 364.8 kB / 1.204 GB, free: 115.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007044/2.38, allocations: 237.2 kB / 1.204 GB, free: 115.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/2.38, allocations: 0 / 1.204 GB, free: 115.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00187/2.382, allocations: 0.6248 MB / 1.205 GB, free: 115 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/2.382, allocations: 8 kB / 1.205 GB, free: 114.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/2.382, allocations: 4 kB / 1.205 GB, free: 114.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/2.382, allocations: 50.31 kB / 1.205 GB, free: 114.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002162/2.385, allocations: 175.7 kB / 1.205 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008173/2.386, allocations: 1.101 MB / 1.206 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/2.387, allocations: 32.14 kB / 1.206 GB, free: 113.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/2.387, allocations: 43.92 kB / 1.206 GB, free: 113.5 MB / 426.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.0002552/2.387, allocations: 49.45 kB / 1.206 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001869/2.388, allocations: 31.62 kB / 1.206 GB, free: 113.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002954/2.391, allocations: 0.6799 MB / 1.207 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/2.391, allocations: 4 kB / 1.207 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/2.391, allocations: 12 kB / 1.207 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/2.391, allocations: 0 / 1.207 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/2.395, allocations: 1.355 MB / 1.208 GB, free: 111.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/2.395, allocations: 4 kB / 1.208 GB, free: 111.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002008/2.397, allocations: 147.7 kB / 1.208 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002137/2.397, allocations: 41.92 kB / 1.208 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/2.397, allocations: 19.97 kB / 1.208 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/2.399, allocations: 2.417 MB / 1.211 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/2.399, allocations: 4 kB / 1.211 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002261/2.401, allocations: 0.987 MB / 1.212 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/2.401, allocations: 100.7 kB / 1.212 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/2.402, allocations: 4 kB / 1.212 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/2.403, allocations: 39.95 kB / 1.212 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.301e-05/2.403, allocations: 31.89 kB / 1.212 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/2.403, allocations: 39.88 kB / 1.212 GB, free: 107.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001216/2.403, allocations: 120.4 kB / 1.212 GB, free: 107 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00224/2.406, allocations: 411.6 kB / 1.212 GB, free: 106.6 MB / 426.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.00589/2.412, allocations: 1.394 MB / 1.214 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/2.413, allocations: 0.5154 MB / 1.214 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/2.413, allocations: 0 / 1.214 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009651/2.414, allocations: 459.3 kB / 1.215 GB, free: 104.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/2.415, allocations: 86.31 kB / 1.215 GB, free: 104.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/2.418, allocations: 0.7422 MB / 1.216 GB, free: 103.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/2.419, allocations: 0.8815 MB / 1.216 GB, free: 102.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.543e-06/2.419, allocations: 0 / 1.216 GB, free: 102.5 MB / 426.7 MB Notification: Performance of Templates: time 0.03354/2.453, allocations: 17.66 MB / 1.234 GB, free: 84.85 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches