Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.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.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",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.0009497/0.0009496, allocations: 191.3 kB / 8.139 MB, free: 2.184 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.104/1.104, allocations: 221.4 MB / 229.9 MB, free: 3.219 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.0009086/0.0009088, allocations: 101.9 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1051/0.1061, allocations: 55.83 MB / 336.6 MB, free: 9.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.342, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.223/8.565, allocations: 5.75 GB / 6.128 GB, free: 129.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001559/8.565, allocations: 68.78 kB / 6.128 GB, free: 129.4 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 3.613/12.18, allocations: 1.31 GB / 7.438 GB, free: 11.87 MB / 0.6203 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/12.18, allocations: 8 kB / 7.438 GB, free: 11.86 MB / 0.6203 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007785/12.18, allocations: 99.28 kB / 7.438 GB, free: 11.76 MB / 0.6203 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005549/12.18, allocations: 374.8 kB / 7.439 GB, free: 11.38 MB / 0.6203 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/12.18, allocations: 12 kB / 7.439 GB, free: 11.37 MB / 0.6203 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.564e-05/12.18, allocations: 32 kB / 7.439 GB, free: 11.34 MB / 0.6203 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006921/12.18, allocations: 457.8 kB / 7.439 GB, free: 10.89 MB / 0.6203 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007085/12.18, allocations: 0.5132 MB / 7.44 GB, free: 10.34 MB / 0.6203 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/12.18, allocations: 3.938 kB / 7.44 GB, free: 10.33 MB / 0.6203 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.022e-05/12.18, allocations: 4 kB / 7.44 GB, free: 10.33 MB / 0.6203 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/12.18, allocations: 16 kB / 7.44 GB, free: 10.31 MB / 0.6203 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006843/12.19, allocations: 6.492 MB / 7.446 GB, free: 3.488 MB / 0.6203 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003831/12.19, allocations: 246.3 kB / 7.446 GB, free: 3.242 MB / 0.6203 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002554/12.19, allocations: 176.8 kB / 7.446 GB, free: 3.066 MB / 0.6203 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002805/12.19, allocations: 2.454 MB / 7.449 GB, free: 216 kB / 0.6203 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/12.19, allocations: 38.56 kB / 7.449 GB, free: 168 kB / 0.6203 GB Notification: Performance of pre-optimization done (n=44): time 1.753e-06/12.19, allocations: 0 / 7.449 GB, free: 168 kB / 0.6203 GB Notification: Performance of matching and sorting (n=52): time 0.006634/12.2, allocations: 1.644 MB / 7.45 GB, free: 14.48 MB / 0.6359 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/12.2, allocations: 55.84 kB / 7.45 GB, free: 14.41 MB / 0.6359 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/12.2, allocations: 253.2 kB / 7.451 GB, free: 14.16 MB / 0.6359 GB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/12.2, allocations: 29.7 kB / 7.451 GB, free: 14.12 MB / 0.6359 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/12.2, allocations: 222.4 kB / 7.451 GB, free: 13.92 MB / 0.6359 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/12.2, allocations: 179.4 kB / 7.451 GB, free: 13.77 MB / 0.6359 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.253e-05/12.2, allocations: 0 / 7.451 GB, free: 13.77 MB / 0.6359 GB Notification: Performance of setup shared object (initialization): time 0.0001172/12.2, allocations: 346.7 kB / 7.451 GB, free: 13.42 MB / 0.6359 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/12.2, allocations: 165.3 kB / 7.452 GB, free: 13.26 MB / 0.6359 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/12.2, allocations: 314.8 kB / 7.452 GB, free: 12.89 MB / 0.6359 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/12.2, allocations: 332.5 kB / 7.452 GB, free: 12.56 MB / 0.6359 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/12.2, allocations: 0 / 7.452 GB, free: 12.56 MB / 0.6359 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002717/12.2, allocations: 0.7898 MB / 7.453 GB, free: 11.76 MB / 0.6359 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/12.2, allocations: 8 kB / 7.453 GB, free: 11.75 MB / 0.6359 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.168e-06/12.2, allocations: 4 kB / 7.453 GB, free: 11.75 MB / 0.6359 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003382/12.2, allocations: 90.52 kB / 7.453 GB, free: 11.65 MB / 0.6359 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006174/12.21, allocations: 144.2 kB / 7.453 GB, free: 11.51 MB / 0.6359 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001935/12.21, allocations: 2.966 MB / 7.456 GB, free: 8.355 MB / 0.6359 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/12.21, allocations: 37.94 kB / 7.456 GB, free: 8.32 MB / 0.6359 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/12.21, allocations: 32 kB / 7.456 GB, free: 8.289 MB / 0.6359 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001267/12.21, allocations: 120.8 kB / 7.456 GB, free: 8.168 MB / 0.6359 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/12.21, allocations: 95.12 kB / 7.456 GB, free: 8.078 MB / 0.6359 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002419/12.21, allocations: 1.188 MB / 7.457 GB, free: 6.875 MB / 0.6359 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/12.21, allocations: 12 kB / 7.458 GB, free: 6.863 MB / 0.6359 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/12.21, allocations: 3.984 kB / 7.458 GB, free: 6.859 MB / 0.6359 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001824/12.21, allocations: 1.125 MB / 7.459 GB, free: 5.664 MB / 0.6359 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/12.21, allocations: 1.706 MB / 7.46 GB, free: 3.914 MB / 0.6359 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/12.21, allocations: 4 kB / 7.46 GB, free: 3.91 MB / 0.6359 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003815/12.22, allocations: 99.88 kB / 7.46 GB, free: 3.812 MB / 0.6359 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000409/12.22, allocations: 117.6 kB / 7.46 GB, free: 3.691 MB / 0.6359 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/12.22, allocations: 7.984 kB / 7.46 GB, free: 3.684 MB / 0.6359 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006824/12.22, allocations: 1.187 MB / 7.462 GB, free: 2.445 MB / 0.6359 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/12.22, allocations: 0 / 7.462 GB, free: 2.445 MB / 0.6359 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002405/12.22, allocations: 1.316 MB / 7.463 GB, free: 1.094 MB / 0.6359 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003206/12.22, allocations: 2.111 MB / 7.465 GB, free: 14.93 MB / 0.6515 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/12.22, allocations: 124.5 kB / 7.465 GB, free: 14.79 MB / 0.6515 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/12.22, allocations: 8 kB / 7.465 GB, free: 14.79 MB / 0.6515 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003031/12.22, allocations: 21.86 kB / 7.465 GB, free: 14.77 MB / 0.6515 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/12.22, allocations: 36.39 kB / 7.465 GB, free: 14.73 MB / 0.6515 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.883e-05/12.22, allocations: 19.98 kB / 7.465 GB, free: 14.71 MB / 0.6515 GB Notification: Performance of sort global known variables: time 0.0001664/12.22, allocations: 191.1 kB / 7.465 GB, free: 14.53 MB / 0.6515 GB Notification: Performance of remove unused functions: time 0.01358/12.24, allocations: 1.319 MB / 7.467 GB, free: 13.28 MB / 0.6515 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 Backend phase and start with SimCode phase: time 0.404/12.64, allocations: 45.53 MB / 7.511 GB, free: 110.2 MB / 0.6515 GB Notification: Performance of simCode: created initialization part: time 0.001466/12.64, allocations: 0.7615 MB / 7.512 GB, free: 110.1 MB / 0.6515 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/12.64, allocations: 0 / 7.512 GB, free: 110.1 MB / 0.6515 GB Notification: Performance of simCode: created simulation system equations: time 0.0005272/12.64, allocations: 460.2 kB / 7.512 GB, free: 110.1 MB / 0.6515 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/12.64, allocations: 201.4 kB / 7.513 GB, free: 110.1 MB / 0.6515 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/12.65, allocations: 1.073 MB / 7.514 GB, free: 109.9 MB / 0.6515 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00036/12.65, allocations: 0.9344 MB / 7.514 GB, free: 109.1 MB / 0.6515 GB Notification: Performance of SimCode: time 2.51e-07/12.65, allocations: 0 / 7.514 GB, free: 109.1 MB / 0.6515 GB (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1)