Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001043/0.001043, allocations: 197.3 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009485/0.0009486, allocations: 93.02 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1791/0.1791, allocations: 45.14 MB / 383.3 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2294/0.4085, allocations: 69.38 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.5129, allocations: 63.23 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.513/5.026, allocations: 2.789 GB / 3.293 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/5.027, allocations: 84.16 kB / 3.293 GB, free: 121.7 MB / 0.5261 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 2.287/7.314, allocations: 0.7701 GB / 4.063 GB, free: 47.31 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/7.314, allocations: 11.28 kB / 4.063 GB, free: 47.31 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005456/7.319, allocations: 0.7107 MB / 4.064 GB, free: 47.23 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00216/7.321, allocations: 0.9806 MB / 4.065 GB, free: 46.91 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.832e-05/7.321, allocations: 51.25 kB / 4.065 GB, free: 46.91 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/7.322, allocations: 67.91 kB / 4.065 GB, free: 46.91 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001878/7.323, allocations: 1.093 MB / 4.066 GB, free: 46.9 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/7.325, allocations: 1.321 MB / 4.067 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/7.325, allocations: 6.75 kB / 4.067 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/7.325, allocations: 3.094 kB / 4.067 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/7.326, allocations: 44.45 kB / 4.067 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1683/7.494, allocations: 99.72 MB / 4.164 GB, free: 29.2 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/7.495, allocations: 0.6998 MB / 4.165 GB, free: 29.17 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006101/7.496, allocations: 422.7 kB / 4.166 GB, free: 29.16 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05146/7.547, allocations: 27.35 MB / 4.192 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/7.547, allocations: 43 kB / 4.192 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=86): time 3.436e-06/7.548, allocations: 3.75 kB / 4.192 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of matching and sorting (n=86): time 0.00594/7.553, allocations: 1.642 MB / 4.194 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.977e-05/7.554, allocations: 164.2 kB / 4.194 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001405/7.555, allocations: 0.7118 MB / 4.195 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001536/7.555, allocations: 25.7 kB / 4.195 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/7.555, allocations: 491.6 kB / 4.195 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/7.556, allocations: 286 kB / 4.196 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.918e-05/7.556, allocations: 0 / 4.196 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001575/7.556, allocations: 344.4 kB / 4.196 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006997/7.557, allocations: 395.9 kB / 4.196 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007571/7.558, allocations: 0.7063 MB / 4.197 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002516/7.56, allocations: 0.6378 MB / 4.198 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/7.56, allocations: 3.125 kB / 4.198 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.006105/7.566, allocations: 2.035 MB / 4.2 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001484/7.568, allocations: 3.74 MB / 4.203 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.498e-05/7.568, allocations: 11.97 kB / 4.203 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00136/7.569, allocations: 346.7 kB / 4.204 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/7.57, allocations: 310.2 kB / 4.204 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003344/7.574, allocations: 1.753 MB / 4.206 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/7.576, allocations: 259.5 kB / 4.206 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/7.576, allocations: 67.5 kB / 4.206 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/7.576, allocations: 3.812 kB / 4.206 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003292/7.579, allocations: 1.148 MB / 4.207 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/7.579, allocations: 9.125 kB / 4.207 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/7.579, allocations: 15.78 kB / 4.207 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002378/7.582, allocations: 476.3 kB / 4.207 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.741e-05/7.582, allocations: 26.5 kB / 4.207 GB, free: 19.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/7.583, allocations: 219 kB / 4.208 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/7.583, allocations: 68.55 kB / 4.208 GB, free: 19.54 MB / 0.6198 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.0003334/7.584, allocations: 138.2 kB / 4.208 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001641/7.585, allocations: 0.5236 MB / 4.208 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006227/7.592, allocations: 4.858 MB / 4.213 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.949e-05/7.592, allocations: 53.45 kB / 4.213 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/7.592, allocations: 0 / 4.213 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/7.592, allocations: 6.984 kB / 4.213 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00915/7.601, allocations: 6.493 MB / 4.22 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/7.601, allocations: 0 / 4.22 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006847/7.602, allocations: 177.6 kB / 4.22 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/7.604, allocations: 1.069 MB / 4.221 GB, free: 18.25 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.892e-05/7.604, allocations: 19.27 kB / 4.221 GB, free: 18.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002992/7.607, allocations: 2.507 MB / 4.223 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/7.607, allocations: 2.094 kB / 4.223 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007136/7.614, allocations: 3.927 MB / 4.227 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00694/7.621, allocations: 4.459 MB / 4.231 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009701/7.622, allocations: 461.3 kB / 4.232 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000243/7.622, allocations: 2.656 kB / 4.232 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/7.623, allocations: 153 kB / 4.232 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/7.624, allocations: 98.41 kB / 4.232 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.372e-05/7.624, allocations: 48.34 kB / 4.232 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0009253/7.625, allocations: 0.66 MB / 4.233 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.009227/7.634, allocations: 2.27 MB / 4.235 GB, free: 15.04 MB / 0.6198 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.008351/7.642, allocations: 2.371 MB / 4.237 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.004007/7.646, allocations: 2.665 MB / 4.24 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/7.646, allocations: 3.844 kB / 4.24 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001787/7.648, allocations: 1.865 MB / 4.242 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/7.651, allocations: 493.7 kB / 4.242 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004939/7.656, allocations: 3.182 MB / 4.245 GB, free: 13.12 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001199/7.657, allocations: 1.583 MB / 4.247 GB, free: 11.83 MB / 0.6198 GB Notification: Performance of SimCode: time 1.783e-06/7.657, allocations: 4 kB / 4.247 GB, free: 11.82 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe 2>&1)