Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.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.IdealGasN2Mix,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix") translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2Mix,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix") [: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.001659/0.001659, allocations: 176.2 kB / 8.151 MB, free: 2.215 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.997/1.997, allocations: 205.2 MB / 213.8 MB, free: 13.95 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.001269/0.001269, allocations: 91.5 kB / 261.8 MB, free: 13.65 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.277e-05/1.306e-05, allocations: 4 kB / 314.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2512, allocations: 47.55 MB / 361.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.761/2.013, allocations: 0.7171 GB / 1.07 GB, free: 73.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/2.013, allocations: 77.33 kB / 1.071 GB, free: 73.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.119/2.132, allocations: 33.12 MB / 1.103 GB, free: 46.65 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.61e-05/2.132, allocations: 4 kB / 1.103 GB, free: 46.65 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.000575/2.133, allocations: 406.3 kB / 1.103 GB, free: 46.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/2.133, allocations: 8.031 kB / 1.103 GB, free: 46.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003155/2.136, allocations: 224.5 kB / 1.104 GB, free: 46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/2.136, allocations: 208.8 kB / 1.104 GB, free: 45.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/2.136, allocations: 4 kB / 1.104 GB, free: 45.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.103e-05/2.136, allocations: 4 kB / 1.104 GB, free: 45.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007025/2.137, allocations: 191.5 kB / 1.104 GB, free: 45.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003975/2.138, allocations: 158.4 kB / 1.104 GB, free: 45.53 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/2.138, allocations: 0 / 1.104 GB, free: 45.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.255e-05/2.138, allocations: 7.938 kB / 1.104 GB, free: 45.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/2.138, allocations: 7.906 kB / 1.104 GB, free: 45.51 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/2.14, allocations: 0.5855 MB / 1.105 GB, free: 44.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/2.14, allocations: 148.4 kB / 1.105 GB, free: 44.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/2.14, allocations: 66.86 kB / 1.105 GB, free: 44.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003305/2.141, allocations: 96.84 kB / 1.105 GB, free: 44.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/2.141, allocations: 38.5 kB / 1.105 GB, free: 44.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 3.046e-06/2.141, allocations: 0 / 1.105 GB, free: 44.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.00732/2.148, allocations: 0.9728 MB / 1.106 GB, free: 43.76 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/2.148, allocations: 55.41 kB / 1.106 GB, free: 43.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.345e-05/2.148, allocations: 100.7 kB / 1.106 GB, free: 43.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/2.148, allocations: 25.7 kB / 1.106 GB, free: 43.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.739e-05/2.148, allocations: 170.4 kB / 1.106 GB, free: 43.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/2.149, allocations: 70.44 kB / 1.106 GB, free: 43.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.599e-05/2.149, allocations: 0 / 1.106 GB, free: 43.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.977e-05/2.149, allocations: 314.6 kB / 1.107 GB, free: 43.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/2.149, allocations: 73.67 kB / 1.107 GB, free: 42.97 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/2.149, allocations: 104.5 kB / 1.107 GB, free: 42.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/2.149, allocations: 82.59 kB / 1.107 GB, free: 42.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/2.149, allocations: 0 / 1.107 GB, free: 42.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006862/2.15, allocations: 230.1 kB / 1.107 GB, free: 42.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/2.15, allocations: 7.938 kB / 1.107 GB, free: 42.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/2.15, allocations: 0 / 1.107 GB, free: 42.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/2.15, allocations: 24.66 kB / 1.107 GB, free: 42.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006948/2.151, allocations: 55.86 kB / 1.107 GB, free: 42.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004202/2.152, allocations: 0.5396 MB / 1.108 GB, free: 42.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/2.152, allocations: 11.95 kB / 1.108 GB, free: 42.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.243e-05/2.152, allocations: 11.91 kB / 1.108 GB, free: 42 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.0001174/2.152, allocations: 33.55 kB / 1.108 GB, free: 41.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/2.152, allocations: 11.91 kB / 1.108 GB, free: 41.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/2.153, allocations: 276.6 kB / 1.108 GB, free: 41.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/2.153, allocations: 0 / 1.108 GB, free: 41.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/2.153, allocations: 4 kB / 1.108 GB, free: 41.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/2.153, allocations: 4 kB / 1.108 GB, free: 41.74 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/2.155, allocations: 0.5937 MB / 1.109 GB, free: 41.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/2.155, allocations: 0 / 1.109 GB, free: 41.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007036/2.155, allocations: 47.91 kB / 1.109 GB, free: 41.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001351/2.156, allocations: 20.78 kB / 1.109 GB, free: 41.13 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.691e-05/2.156, allocations: 7.984 kB / 1.109 GB, free: 41.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009368/2.157, allocations: 1.211 MB / 1.11 GB, free: 39.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/2.157, allocations: 4.031 kB / 1.11 GB, free: 39.83 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009268/2.158, allocations: 425.9 kB / 1.11 GB, free: 39.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.555e-05/2.158, allocations: 88.92 kB / 1.11 GB, free: 39.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.803e-05/2.158, allocations: 0 / 1.11 GB, free: 39.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004762/2.158, allocations: 12 kB / 1.11 GB, free: 39.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.666e-05/2.158, allocations: 15.97 kB / 1.11 GB, free: 39.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.883e-05/2.158, allocations: 11.31 kB / 1.11 GB, free: 39.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.281e-05/2.158, allocations: 90.77 kB / 1.111 GB, free: 39.22 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007994/2.159, allocations: 153 kB / 1.111 GB, free: 39.09 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 (19): * Single equations (assignments): 18 * 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.001741/2.161, allocations: 0.731 MB / 1.111 GB, free: 38.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007399/2.162, allocations: 190.3 kB / 1.112 GB, free: 38.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/2.162, allocations: 0 / 1.112 GB, free: 38.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004146/2.162, allocations: 195.1 kB / 1.112 GB, free: 38.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006122/2.163, allocations: 36.08 kB / 1.112 GB, free: 38.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009921/2.164, allocations: 343.9 kB / 1.112 GB, free: 37.69 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004477/2.164, allocations: 0.7387 MB / 1.113 GB, free: 36.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.422e-06/2.164, allocations: 4 kB / 1.113 GB, free: 36.93 MB / 426.7 MB Notification: Performance of Templates: time 0.01534/2.18, allocations: 7.43 MB / 1.12 GB, free: 29.52 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2Mix/IdealGasN2Mix.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches