Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.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.R134a.R134a1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1",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.001063/0.001063, allocations: 183 kB / 8.134 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.135/1.135, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.000862/0.000862, allocations: 106.4 kB / 280.8 MB, free: 1.316 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1111/0.112, allocations: 55.81 MB / 336.6 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.3464, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.362/8.709, allocations: 5.75 GB / 6.128 GB, free: 129.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/8.709, allocations: 81.39 kB / 6.128 GB, free: 129.8 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 3.037/11.75, allocations: 1.046 GB / 7.174 GB, free: 25.77 MB / 0.5578 GB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/11.75, allocations: 12 kB / 7.174 GB, free: 25.76 MB / 0.5578 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005535/11.75, allocations: 74.86 kB / 7.174 GB, free: 25.69 MB / 0.5578 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003836/11.75, allocations: 311.8 kB / 7.174 GB, free: 25.41 MB / 0.5578 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/11.75, allocations: 12 kB / 7.175 GB, free: 25.39 MB / 0.5578 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/11.75, allocations: 24 kB / 7.175 GB, free: 25.37 MB / 0.5578 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004381/11.75, allocations: 325.1 kB / 7.175 GB, free: 25.08 MB / 0.5578 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000424/11.75, allocations: 381.4 kB / 7.175 GB, free: 24.67 MB / 0.5578 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/11.75, allocations: 7.938 kB / 7.175 GB, free: 24.66 MB / 0.5578 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.083e-05/11.75, allocations: 0 / 7.175 GB, free: 24.66 MB / 0.5578 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/11.75, allocations: 12 kB / 7.175 GB, free: 24.65 MB / 0.5578 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005142/11.75, allocations: 5.622 MB / 7.181 GB, free: 18.75 MB / 0.5578 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000218/11.75, allocations: 166.9 kB / 7.181 GB, free: 18.58 MB / 0.5578 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/11.75, allocations: 111 kB / 7.181 GB, free: 18.47 MB / 0.5578 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001548/11.76, allocations: 1.659 MB / 7.183 GB, free: 16.54 MB / 0.5578 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/11.76, allocations: 46.94 kB / 7.183 GB, free: 16.48 MB / 0.5578 GB Notification: Performance of pre-optimization done (n=28): time 1.523e-06/11.76, allocations: 0 / 7.183 GB, free: 16.48 MB / 0.5578 GB Notification: Performance of matching and sorting (n=32): time 0.004344/11.76, allocations: 1.112 MB / 7.184 GB, free: 15.32 MB / 0.5578 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.756e-05/11.76, allocations: 59.41 kB / 7.184 GB, free: 15.25 MB / 0.5578 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/11.76, allocations: 209.8 kB / 7.184 GB, free: 15.04 MB / 0.5578 GB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/11.76, allocations: 29.7 kB / 7.184 GB, free: 15.01 MB / 0.5578 GB Notification: Performance of collectInitialEqns (initialization): time 4.911e-05/11.76, allocations: 179.8 kB / 7.184 GB, free: 14.84 MB / 0.5578 GB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/11.76, allocations: 114.3 kB / 7.184 GB, free: 14.74 MB / 0.5578 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.435e-05/11.76, allocations: 0 / 7.184 GB, free: 14.74 MB / 0.5578 GB Notification: Performance of setup shared object (initialization): time 4.338e-05/11.76, allocations: 342.7 kB / 7.185 GB, free: 14.4 MB / 0.5578 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/11.76, allocations: 100.9 kB / 7.185 GB, free: 14.3 MB / 0.5578 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/11.76, allocations: 217.2 kB / 7.185 GB, free: 14.04 MB / 0.5578 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/11.76, allocations: 223.8 kB / 7.185 GB, free: 13.82 MB / 0.5578 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/11.76, allocations: 0 / 7.185 GB, free: 13.82 MB / 0.5578 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001788/11.76, allocations: 0.5438 MB / 7.186 GB, free: 13.26 MB / 0.5578 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/11.76, allocations: 4 kB / 7.186 GB, free: 13.26 MB / 0.5578 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/11.76, allocations: 4.438 kB / 7.186 GB, free: 13.25 MB / 0.5578 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002125/11.76, allocations: 65.59 kB / 7.186 GB, free: 13.18 MB / 0.5578 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002854/11.76, allocations: 90.27 kB / 7.186 GB, free: 13.1 MB / 0.5578 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008373/11.76, allocations: 1.792 MB / 7.188 GB, free: 11.17 MB / 0.5578 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/11.76, allocations: 26.05 kB / 7.188 GB, free: 11.14 MB / 0.5578 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/11.76, allocations: 20 kB / 7.188 GB, free: 11.12 MB / 0.5578 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 7.436e-05/11.76, allocations: 119.1 kB / 7.188 GB, free: 11 MB / 0.5578 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/11.77, allocations: 71.66 kB / 7.188 GB, free: 10.93 MB / 0.5578 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/11.77, allocations: 0.7553 MB / 7.189 GB, free: 10.17 MB / 0.5578 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/11.77, allocations: 7.984 kB / 7.189 GB, free: 10.16 MB / 0.5578 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/11.77, allocations: 4 kB / 7.189 GB, free: 10.16 MB / 0.5578 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00112/11.77, allocations: 0.8831 MB / 7.189 GB, free: 9.184 MB / 0.5578 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/11.77, allocations: 1.152 MB / 7.191 GB, free: 7.988 MB / 0.5578 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/11.77, allocations: 0 / 7.191 GB, free: 7.988 MB / 0.5578 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/11.77, allocations: 63.59 kB / 7.191 GB, free: 7.93 MB / 0.5578 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/11.77, allocations: 64.77 kB / 7.191 GB, free: 7.863 MB / 0.5578 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/11.77, allocations: 8 kB / 7.191 GB, free: 7.855 MB / 0.5578 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002243/11.77, allocations: 0.5875 MB / 7.191 GB, free: 7.242 MB / 0.5578 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/11.77, allocations: 3.938 kB / 7.191 GB, free: 7.238 MB / 0.5578 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001349/11.77, allocations: 0.8679 MB / 7.192 GB, free: 6.332 MB / 0.5578 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001777/11.77, allocations: 1.507 MB / 7.194 GB, free: 4.785 MB / 0.5578 GB Notification: Performance of postOpt removeConstants (simulation): time 5.724e-05/11.77, allocations: 116.7 kB / 7.194 GB, free: 4.652 MB / 0.5578 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/11.77, allocations: 0 / 7.194 GB, free: 4.652 MB / 0.5578 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/11.77, allocations: 9.969 kB / 7.194 GB, free: 4.645 MB / 0.5578 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/11.77, allocations: 31.91 kB / 7.194 GB, free: 4.613 MB / 0.5578 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/11.77, allocations: 23.89 kB / 7.194 GB, free: 4.59 MB / 0.5578 GB Notification: Performance of sort global known variables: time 0.0001003/11.77, allocations: 160.5 kB / 7.194 GB, free: 4.434 MB / 0.5578 GB Notification: Performance of remove unused functions: time 0.01127/11.78, allocations: 1.004 MB / 7.195 GB, free: 3.488 MB / 0.5578 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse1.phase,$cse2,$cse3.phase,$cse4) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.1764/11.96, allocations: 36.69 MB / 7.231 GB, free: 15.07 MB / 0.6046 GB Notification: Performance of simCode: created initialization part: time 0.001004/11.96, allocations: 0.5057 MB / 7.231 GB, free: 14.56 MB / 0.6046 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/11.96, allocations: 0 / 7.231 GB, free: 14.56 MB / 0.6046 GB Notification: Performance of simCode: created simulation system equations: time 0.0003852/11.96, allocations: 281.1 kB / 7.231 GB, free: 14.29 MB / 0.6046 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/11.96, allocations: 141.2 kB / 7.232 GB, free: 14.15 MB / 0.6046 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/11.96, allocations: 0.6612 MB / 7.232 GB, free: 13.46 MB / 0.6046 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004543/11.97, allocations: 0.8584 MB / 7.233 GB, free: 12.58 MB / 0.6046 GB Notification: Performance of SimCode: time 1.883e-06/11.97, allocations: 0 / 7.233 GB, free: 12.58 MB / 0.6046 GB (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1)