Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.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.TestWaterPumpDefaultCV,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV",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.001082/0.001082, allocations: 198.5 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 95.23 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2006/0.2006, allocations: 45.14 MB / 383.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2518/0.4525, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09531/0.5478, allocations: 63.25 MB / 0.5039 GB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.583/5.131, allocations: 2.788 GB / 3.292 GB, free: 130.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/5.132, allocations: 87.5 kB / 3.292 GB, free: 130.2 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 1.298/6.429, allocations: 443.1 MB / 3.725 GB, free: 57.35 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/6.429, allocations: 7.906 kB / 3.725 GB, free: 57.35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002859/6.432, allocations: 359.8 kB / 3.725 GB, free: 57.29 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001242/6.433, allocations: 0.5757 MB / 3.725 GB, free: 56.91 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.04e-05/6.433, allocations: 24.31 kB / 3.725 GB, free: 56.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/6.434, allocations: 36.47 kB / 3.726 GB, free: 56.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001058/6.435, allocations: 0.5656 MB / 3.726 GB, free: 56.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/6.436, allocations: 0.6766 MB / 3.727 GB, free: 56.33 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/6.436, allocations: 3.938 kB / 3.727 GB, free: 56.33 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.508e-05/6.436, allocations: 11.36 kB / 3.727 GB, free: 56.32 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.679e-05/6.436, allocations: 20.03 kB / 3.727 GB, free: 56.32 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08722/6.523, allocations: 49.89 MB / 3.775 GB, free: 21.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008856/6.524, allocations: 418.6 kB / 3.776 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/6.524, allocations: 206.8 kB / 3.776 GB, free: 21.35 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0527/6.577, allocations: 27.18 MB / 3.803 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/6.577, allocations: 38.56 kB / 3.803 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=43): time 2.294e-06/6.577, allocations: 4 kB / 3.803 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=43): time 0.00295/6.58, allocations: 0.8488 MB / 3.803 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/6.58, allocations: 107.6 kB / 3.804 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006644/6.581, allocations: 426.1 kB / 3.804 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.299e-05/6.581, allocations: 25.7 kB / 3.804 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/6.581, allocations: 298.8 kB / 3.804 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/6.581, allocations: 138.9 kB / 3.804 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/6.581, allocations: 0 / 3.804 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001693/6.582, allocations: 372.4 kB / 3.805 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003456/6.582, allocations: 208.1 kB / 3.805 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003945/6.582, allocations: 387.8 kB / 3.805 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/6.584, allocations: 356.8 kB / 3.806 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/6.584, allocations: 4 kB / 3.806 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003085/6.587, allocations: 1.098 MB / 3.807 GB, free: 9.457 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007205/6.587, allocations: 2.008 MB / 3.809 GB, free: 7.297 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/6.588, allocations: 8 kB / 3.809 GB, free: 7.289 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/6.589, allocations: 282 kB / 3.809 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/6.589, allocations: 154.9 kB / 3.809 GB, free: 6.949 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001932/6.591, allocations: 0.9602 MB / 3.81 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/6.592, allocations: 135.1 kB / 3.81 GB, free: 5.926 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.339e-05/6.592, allocations: 40.06 kB / 3.81 GB, free: 5.895 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/6.592, allocations: 8 kB / 3.81 GB, free: 5.887 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002692/6.595, allocations: 0.7873 MB / 3.811 GB, free: 5.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/6.595, allocations: 8 kB / 3.811 GB, free: 5.223 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008919/6.596, allocations: 171.1 kB / 3.811 GB, free: 5.094 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006168/6.597, allocations: 164 kB / 3.811 GB, free: 4.961 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/6.598, allocations: 0.7952 MB / 3.812 GB, free: 4.191 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008417/6.599, allocations: 115.3 kB / 3.812 GB, free: 4.098 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.053e-05/6.599, allocations: 37.16 kB / 3.812 GB, free: 4.066 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.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 (59): * Single equations (assignments): 58 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002397/6.599, allocations: 119.3 kB / 3.812 GB, free: 3.945 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008494/6.6, allocations: 278.3 kB / 3.813 GB, free: 3.742 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003493/6.603, allocations: 2.52 MB / 3.815 GB, free: 1.492 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.612e-05/6.604, allocations: 26.97 kB / 3.815 GB, free: 1.477 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/6.604, allocations: 0 / 3.815 GB, free: 1.477 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/6.604, allocations: 11.33 kB / 3.815 GB, free: 1.469 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006073/6.61, allocations: 3.366 MB / 3.818 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/6.61, allocations: 8.094 kB / 3.818 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/6.61, allocations: 62.22 kB / 3.819 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/6.612, allocations: 0.7658 MB / 3.819 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.921e-05/6.612, allocations: 6.906 kB / 3.819 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001716/6.613, allocations: 1.327 MB / 3.821 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/6.614, allocations: 3.703 kB / 3.821 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003595/6.617, allocations: 2.086 MB / 3.823 GB, free: 10.9 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003814/6.621, allocations: 2.542 MB / 3.825 GB, free: 8.547 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004875/6.621, allocations: 276.4 kB / 3.825 GB, free: 8.297 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/6.622, allocations: 0 / 3.825 GB, free: 8.297 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006467/6.622, allocations: 70.14 kB / 3.825 GB, free: 8.242 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/6.622, allocations: 49.61 kB / 3.825 GB, free: 8.219 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.649e-05/6.622, allocations: 27.88 kB / 3.826 GB, free: 8.195 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0005997/6.623, allocations: 389.1 kB / 3.826 GB, free: 7.844 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007874/6.631, allocations: 1.746 MB / 3.828 GB, free: 6.133 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.008914/6.64, allocations: 1.881 MB / 3.829 GB, free: 4.578 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003174/6.643, allocations: 1.407 MB / 3.831 GB, free: 3.281 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/6.643, allocations: 4 kB / 3.831 GB, free: 3.277 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00121/6.644, allocations: 0.9129 MB / 3.832 GB, free: 2.426 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/6.646, allocations: 274.7 kB / 3.832 GB, free: 2.23 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/6.649, allocations: 1.594 MB / 3.834 GB, free: 0.7539 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1978/6.847, allocations: 1.129 MB / 3.835 GB, free: 142.6 MB / 0.5573 GB Notification: Performance of SimCode: time 1.032e-06/6.847, allocations: 0 / 3.835 GB, free: 142.6 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe 2>&1)