Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2") [: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.2+maint.om/package.mo): time 0.001081/0.001081, allocations: 189.2 kB / 8.135 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.106/1.106, allocations: 194.2 MB / 202.8 MB, free: 8.762 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001773/0.001773, allocations: 119.9 kB / 247.7 MB, free: 6.254 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.362e-06/6.392e-06, allocations: 0 / 297.6 MB, free: 8.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.071/0.07103, allocations: 44.49 MB / 342 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.528/9.599, allocations: 6.529 GB / 6.863 GB, free: 109.9 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001892/9.599, allocations: 74.86 kB / 6.863 GB, free: 109.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.096/11.7, allocations: 0.6641 GB / 7.527 GB, free: 28.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.211e-05/11.7, allocations: 20.48 kB / 7.527 GB, free: 28.66 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.009256/11.7, allocations: 2.398 MB / 7.529 GB, free: 27.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/11.7, allocations: 9.719 kB / 7.529 GB, free: 27.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007273/11.71, allocations: 81.19 kB / 7.53 GB, free: 27.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008216/11.71, allocations: 444 kB / 7.53 GB, free: 27.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/11.71, allocations: 16.59 kB / 7.53 GB, free: 27.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/11.71, allocations: 45.53 kB / 7.53 GB, free: 27.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001354/11.71, allocations: 0.8054 MB / 7.531 GB, free: 27.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/11.71, allocations: 0.584 MB / 7.531 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/11.71, allocations: 3.344 kB / 7.531 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.833e-05/11.71, allocations: 0 / 7.531 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/11.71, allocations: 13.53 kB / 7.531 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01413/11.72, allocations: 12.56 MB / 7.544 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007341/11.72, allocations: 450.5 kB / 7.544 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006097/11.72, allocations: 393.8 kB / 7.544 GB, free: 15.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03764/11.76, allocations: 30.27 MB / 7.574 GB, free: 17.26 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/11.76, allocations: 41.12 kB / 7.574 GB, free: 17.22 MB / 458.7 MB Notification: Performance of pre-optimization done (n=78): time 4.949e-06/11.76, allocations: 3.5 kB / 7.574 GB, free: 17.22 MB / 458.7 MB Notification: Performance of matching and sorting (n=88): time 0.007393/11.77, allocations: 2.373 MB / 7.576 GB, free: 16.78 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/11.77, allocations: 63.75 kB / 7.576 GB, free: 16.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/11.77, allocations: 258.9 kB / 7.577 GB, free: 16.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/11.77, allocations: 29.45 kB / 7.577 GB, free: 16.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/11.77, allocations: 213.2 kB / 7.577 GB, free: 16.42 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/11.77, allocations: 297.6 kB / 7.577 GB, free: 16.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.674e-05/11.77, allocations: 3.625 kB / 7.577 GB, free: 16.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000203/11.77, allocations: 353.5 kB / 7.578 GB, free: 15.92 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000524/11.77, allocations: 314.4 kB / 7.578 GB, free: 15.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005279/11.77, allocations: 418.1 kB / 7.578 GB, free: 15.83 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/11.77, allocations: 0.5069 MB / 7.579 GB, free: 15.81 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/11.77, allocations: 0 / 7.579 GB, free: 15.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002665/11.78, allocations: 1.092 MB / 7.58 GB, free: 15.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/11.78, allocations: 10.66 kB / 7.58 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/11.78, allocations: 3.438 kB / 7.58 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002803/11.78, allocations: 113.4 kB / 7.58 GB, free: 15.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008913/11.78, allocations: 192.2 kB / 7.58 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003068/11.78, allocations: 3.866 MB / 7.584 GB, free: 12.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006108/11.78, allocations: 47.97 kB / 7.584 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.065e-05/11.78, allocations: 43.44 kB / 7.584 GB, free: 12.08 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 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.0002769/11.78, allocations: 133.5 kB / 7.584 GB, free: 11.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004471/11.78, allocations: 54.03 kB / 7.584 GB, free: 11.94 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002521/11.78, allocations: 1.162 MB / 7.585 GB, free: 11.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/11.78, allocations: 11.38 kB / 7.585 GB, free: 11.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/11.78, allocations: 9.484 kB / 7.585 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002043/11.79, allocations: 1.376 MB / 7.587 GB, free: 27.14 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003695/11.79, allocations: 2.05 MB / 7.589 GB, free: 26.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/11.79, allocations: 0 / 7.589 GB, free: 26.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009134/11.79, allocations: 190.8 kB / 7.589 GB, free: 26.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002731/11.79, allocations: 135.8 kB / 7.589 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.57e-05/11.79, allocations: 17.19 kB / 7.589 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/11.79, allocations: 1.38 MB / 7.59 GB, free: 25.54 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/11.79, allocations: 3.625 kB / 7.59 GB, free: 25.54 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002875/11.8, allocations: 1.591 MB / 7.592 GB, free: 25.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/11.8, allocations: 137.3 kB / 7.592 GB, free: 25.04 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/11.8, allocations: 10.83 kB / 7.592 GB, free: 25.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007076/11.8, allocations: 35.88 kB / 7.592 GB, free: 25.03 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/11.8, allocations: 62.66 kB / 7.592 GB, free: 25.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.884e-05/11.8, allocations: 51.78 kB / 7.592 GB, free: 25.03 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002014/11.8, allocations: 211.2 kB / 7.592 GB, free: 24.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009104/11.81, allocations: 2.243 MB / 7.595 GB, free: 24.49 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01487/11.82, allocations: 3.614 MB / 7.598 GB, free: 23.82 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/11.82, allocations: 1.076 MB / 7.599 GB, free: 23.57 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/11.82, allocations: 0 / 7.599 GB, free: 23.57 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007304/11.82, allocations: 0.4929 MB / 7.6 GB, free: 23.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/11.83, allocations: 305.1 kB / 7.6 GB, free: 23.51 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002902/11.83, allocations: 1.426 MB / 7.601 GB, free: 23.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008092/11.83, allocations: 1.042 MB / 7.602 GB, free: 22.49 MB / 474.7 MB Notification: Performance of SimCode: time 5.61e-07/11.83, allocations: 0 / 7.602 GB, free: 22.49 MB / 474.7 MB Notification: Performance of Templates: time 0.2482/12.08, allocations: 75.77 MB / 7.676 GB, free: 99.06 MB / 474.7 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1)