Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.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: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) [: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.000962/0.000962, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.054/1.054, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0008665/0.0008664, allocations: 99.34 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08862/0.08951, allocations: 55.82 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.2597, allocations: 50.38 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.15/9.41, allocations: 6.122 GB / 6.5 GB, free: 93.86 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/9.41, allocations: 80.81 kB / 6.5 GB, free: 93.85 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 2.056/11.47, allocations: 0.6455 GB / 7.146 GB, free: 34.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/11.47, allocations: 10.78 kB / 7.146 GB, free: 34.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006527/11.47, allocations: 81.91 kB / 7.146 GB, free: 34.06 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008732/11.47, allocations: 441.1 kB / 7.146 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.233e-05/11.47, allocations: 21.59 kB / 7.146 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/11.47, allocations: 43.22 kB / 7.146 GB, free: 33.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001297/11.47, allocations: 0.9206 MB / 7.147 GB, free: 33.83 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/11.47, allocations: 0.652 MB / 7.148 GB, free: 33.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/11.47, allocations: 6.344 kB / 7.148 GB, free: 33.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.713e-05/11.47, allocations: 0 / 7.148 GB, free: 33.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/11.47, allocations: 13.75 kB / 7.148 GB, free: 33.79 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/11.48, allocations: 12.37 MB / 7.16 GB, free: 22.86 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008786/11.48, allocations: 0.4948 MB / 7.16 GB, free: 22.84 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004736/11.48, allocations: 386.1 kB / 7.161 GB, free: 22.82 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03185/11.52, allocations: 30.82 MB / 7.191 GB, free: 23.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/11.52, allocations: 46.03 kB / 7.191 GB, free: 23.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=78): time 2.635e-06/11.52, allocations: 0 / 7.191 GB, free: 23.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=88): time 0.007931/11.52, allocations: 2.501 MB / 7.193 GB, free: 23.47 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/11.52, allocations: 66.28 kB / 7.193 GB, free: 23.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003658/11.52, allocations: 263.4 kB / 7.194 GB, free: 23.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/11.53, allocations: 25.7 kB / 7.194 GB, free: 23.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/11.53, allocations: 217.1 kB / 7.194 GB, free: 23.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/11.53, allocations: 292.6 kB / 7.194 GB, free: 22.92 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.081e-05/11.53, allocations: 0 / 7.194 GB, free: 22.92 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/11.53, allocations: 359.9 kB / 7.195 GB, free: 22.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004788/11.53, allocations: 338.5 kB / 7.195 GB, free: 22.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/11.53, allocations: 453 kB / 7.195 GB, free: 22.51 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/11.53, allocations: 0.5342 MB / 7.196 GB, free: 22.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/11.53, allocations: 1.312 kB / 7.196 GB, free: 22.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.00275/11.53, allocations: 1.16 MB / 7.197 GB, free: 22.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/11.53, allocations: 6.062 kB / 7.197 GB, free: 22.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/11.53, allocations: 6.766 kB / 7.197 GB, free: 22.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/11.53, allocations: 120.4 kB / 7.197 GB, free: 22.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007777/11.53, allocations: 193.6 kB / 7.197 GB, free: 22.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002796/11.53, allocations: 3.866 MB / 7.201 GB, free: 18.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/11.54, allocations: 42.34 kB / 7.201 GB, free: 18.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/11.54, allocations: 51.36 kB / 7.201 GB, free: 18.8 MB / 490.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: 11 * 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.0002924/11.54, allocations: 123.3 kB / 7.201 GB, free: 18.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004282/11.54, allocations: 59.84 kB / 7.201 GB, free: 18.68 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002681/11.54, allocations: 1.397 MB / 7.203 GB, free: 18.53 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/11.54, allocations: 16.09 kB / 7.203 GB, free: 18.53 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/11.54, allocations: 0 / 7.203 GB, free: 18.53 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001982/11.54, allocations: 1.377 MB / 7.204 GB, free: 17.87 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003357/11.54, allocations: 1.949 MB / 7.206 GB, free: 17.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/11.54, allocations: 0 / 7.206 GB, free: 17.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007445/11.54, allocations: 173.2 kB / 7.206 GB, free: 17.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002512/11.55, allocations: 143.2 kB / 7.206 GB, free: 17.51 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.085e-05/11.55, allocations: 19.64 kB / 7.206 GB, free: 17.51 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/11.55, allocations: 1.373 MB / 7.208 GB, free: 16.34 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/11.55, allocations: 3.797 kB / 7.208 GB, free: 16.34 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002663/11.55, allocations: 1.485 MB / 7.209 GB, free: 16.09 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00359/11.55, allocations: 2.442 MB / 7.211 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/11.55, allocations: 132.7 kB / 7.212 GB, free: 15.35 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/11.55, allocations: 11.92 kB / 7.212 GB, free: 15.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000616/11.55, allocations: 37.31 kB / 7.212 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.736e-05/11.55, allocations: 51.08 kB / 7.212 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/11.55, allocations: 57.55 kB / 7.212 GB, free: 15.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0002199/11.55, allocations: 222.9 kB / 7.212 GB, free: 15.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009826/11.56, allocations: 2.611 MB / 7.214 GB, free: 14.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (87): * Single equations (assignments): 85 * 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.01483/11.58, allocations: 3.405 MB / 7.218 GB, free: 14.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00213/11.58, allocations: 1.106 MB / 7.219 GB, free: 13.97 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/11.58, allocations: 3.094 kB / 7.219 GB, free: 13.97 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007498/11.58, allocations: 488.8 kB / 7.219 GB, free: 13.95 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/11.58, allocations: 278.4 kB / 7.22 GB, free: 13.94 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/11.59, allocations: 1.357 MB / 7.221 GB, free: 13.67 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008419/11.59, allocations: 1.046 MB / 7.222 GB, free: 28.97 MB / 0.4948 GB Notification: Performance of SimCode: time 4.81e-07/11.59, allocations: 0 / 7.222 GB, free: 28.97 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1)