Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump",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.0009782/0.0009779, allocations: 173.8 kB / 8.515 MB, free: 1.828 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.152/1.152, allocations: 221.4 MB / 230.3 MB, free: 7.785 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.0009208/0.0009208, allocations: 92.72 kB / 281.2 MB, free: 5.543 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1562/0.1562, allocations: 44.15 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1781/0.3343, allocations: 68.04 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09219/0.4265, allocations: 61.91 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.182/4.608, allocations: 2.788 GB / 3.282 GB, free: 158.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/4.608, allocations: 86.83 kB / 3.282 GB, free: 158.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 289 * Number of variables: 289 Notification: Performance of Generate backend data structure: time 1.969/6.578, allocations: 0.77 GB / 4.052 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/6.578, allocations: 13.19 kB / 4.052 GB, free: 0.9805 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005007/6.583, allocations: 0.681 MB / 4.053 GB, free: 304 kB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00205/6.585, allocations: 0.9801 MB / 4.054 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.828e-05/6.585, allocations: 44 kB / 4.054 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/6.585, allocations: 67.94 kB / 4.054 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001938/6.587, allocations: 1.094 MB / 4.055 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002027/6.589, allocations: 1.321 MB / 4.056 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/6.589, allocations: 4 kB / 4.056 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/6.589, allocations: 4 kB / 4.056 GB, free: 12.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.801e-05/6.589, allocations: 49.94 kB / 4.056 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3151/6.905, allocations: 88.72 MB / 4.143 GB, free: 41.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/6.906, allocations: 0.7047 MB / 4.144 GB, free: 41.09 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005016/6.906, allocations: 414.4 kB / 4.144 GB, free: 41.08 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04238/6.949, allocations: 24.26 MB / 4.168 GB, free: 41.27 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/6.949, allocations: 49.31 kB / 4.168 GB, free: 41.23 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=86): time 2.936e-06/6.949, allocations: 0 / 4.168 GB, free: 41.23 MB / 0.5573 GB Notification: Performance of matching and sorting (n=86): time 0.005134/6.954, allocations: 1.639 MB / 4.169 GB, free: 41.16 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/6.954, allocations: 164.4 kB / 4.169 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008153/6.955, allocations: 0.7118 MB / 4.17 GB, free: 40.84 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.265e-05/6.955, allocations: 33.58 kB / 4.17 GB, free: 40.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/6.955, allocations: 489.7 kB / 4.171 GB, free: 40.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/6.955, allocations: 285 kB / 4.171 GB, free: 40.43 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.783e-05/6.955, allocations: 0 / 4.171 GB, free: 40.43 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001015/6.955, allocations: 346.9 kB / 4.171 GB, free: 40.12 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005265/6.956, allocations: 389.3 kB / 4.172 GB, free: 40.12 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006218/6.956, allocations: 0.7065 MB / 4.172 GB, free: 39.73 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/6.959, allocations: 0.6439 MB / 4.173 GB, free: 39.71 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/6.959, allocations: 0 / 4.173 GB, free: 39.71 MB / 0.5573 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.005015/6.964, allocations: 2.034 MB / 4.175 GB, free: 39.58 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008958/6.965, allocations: 3.753 MB / 4.179 GB, free: 35.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/6.965, allocations: 6.906 kB / 4.179 GB, free: 35.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/6.966, allocations: 350.6 kB / 4.179 GB, free: 35.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/6.967, allocations: 313.5 kB / 4.179 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/6.97, allocations: 1.751 MB / 4.181 GB, free: 34.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/6.971, allocations: 251 kB / 4.181 GB, free: 34.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/6.971, allocations: 70.34 kB / 4.181 GB, free: 34.53 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.512e-06/6.971, allocations: 10.22 kB / 4.181 GB, free: 34.52 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002809/6.974, allocations: 1.142 MB / 4.182 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/6.974, allocations: 12.28 kB / 4.182 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/6.974, allocations: 21.14 kB / 4.182 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0023/6.977, allocations: 480.7 kB / 4.183 GB, free: 34.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/6.977, allocations: 23.23 kB / 4.183 GB, free: 34.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/6.978, allocations: 213.2 kB / 4.183 GB, free: 34.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/6.978, allocations: 67.02 kB / 4.183 GB, free: 34.45 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 12 (sink.medium.phase,pump.heatTransfer.states[1].phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase,source.medium.phase,source1.medium.phase,valve1.state_b.phase,valve1.state_a.phase,pump1.monitoring.state_in.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 112 * 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 {3 11,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003484/6.978, allocations: 145 kB / 4.183 GB, free: 34.34 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/6.98, allocations: 0.5256 MB / 4.184 GB, free: 34.28 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005473/6.985, allocations: 4.847 MB / 4.188 GB, free: 33.88 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.67e-05/6.986, allocations: 57.06 kB / 4.189 GB, free: 33.88 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/6.986, allocations: 2.875 kB / 4.189 GB, free: 33.88 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/6.986, allocations: 3.797 kB / 4.189 GB, free: 33.88 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00683/6.992, allocations: 6.473 MB / 4.195 GB, free: 33.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/6.992, allocations: 3.875 kB / 4.195 GB, free: 33.25 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006677/6.993, allocations: 186.3 kB / 4.195 GB, free: 33.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001837/6.995, allocations: 1.06 MB / 4.196 GB, free: 33.19 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.398e-05/6.995, allocations: 25.97 kB / 4.196 GB, free: 33.19 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002555/6.998, allocations: 2.505 MB / 4.199 GB, free: 32.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/6.998, allocations: 7.156 kB / 4.199 GB, free: 32.1 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005371/7.003, allocations: 3.927 MB / 4.202 GB, free: 31.55 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005633/7.009, allocations: 4.449 MB / 4.207 GB, free: 30.63 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006343/7.009, allocations: 458.2 kB / 4.207 GB, free: 30.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/7.009, allocations: 7.422 kB / 4.207 GB, free: 30.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/7.011, allocations: 152.3 kB / 4.207 GB, free: 30.41 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/7.011, allocations: 92.84 kB / 4.207 GB, free: 30.41 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-05/7.011, allocations: 48.78 kB / 4.207 GB, free: 30.41 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0007626/7.012, allocations: 0.6649 MB / 4.208 GB, free: 30.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00744/7.019, allocations: 2.242 MB / 4.21 GB, free: 30.25 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 32 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,sink.medium.phase,pump.heatTransfer.states[1].phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {3 14,2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.005353/7.024, allocations: 2.361 MB / 4.213 GB, free: 29.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003455/7.028, allocations: 2.671 MB / 4.215 GB, free: 29.84 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/7.028, allocations: 0 / 4.215 GB, free: 29.84 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001578/7.029, allocations: 1.857 MB / 4.217 GB, free: 29.82 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/7.032, allocations: 498.9 kB / 4.218 GB, free: 29.79 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004333/7.036, allocations: 3.199 MB / 4.221 GB, free: 29.14 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/7.037, allocations: 1.576 MB / 4.222 GB, free: 44.39 MB / 0.573 GB Notification: Performance of SimCode: time 7.02e-07/7.037, allocations: 1.406 kB / 4.222 GB, free: 44.39 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe 2>&1)