Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001437/0.001437, allocations: 193.8 kB / 7.803 MB, free: 2.449 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.639/1.639, allocations: 205.2 MB / 213.4 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 98.41 kB / 261.4 MB, free: 13.52 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.238/0.238, allocations: 43.5 MB / 352.9 MB, free: 1.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2428/0.4808, allocations: 64.97 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4139/0.8948, allocations: 58.84 MB / 476.7 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.637/7.532, allocations: 2.781 GB / 3.247 GB, free: 52.54 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004031/7.532, allocations: 83.95 kB / 3.247 GB, free: 52.45 MB / 0.4948 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.842/9.375, allocations: 438.4 MB / 3.675 GB, free: 2.891 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/9.375, allocations: 12 kB / 3.675 GB, free: 2.879 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003168/9.378, allocations: 358.6 kB / 3.675 GB, free: 2.527 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002285/9.38, allocations: 0.5739 MB / 3.676 GB, free: 1.922 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.173e-05/9.38, allocations: 27.98 kB / 3.676 GB, free: 1.895 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002847/9.381, allocations: 39.91 kB / 3.676 GB, free: 1.855 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001414/9.382, allocations: 0.561 MB / 3.676 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/9.383, allocations: 0.6856 MB / 3.677 GB, free: 0.543 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/9.383, allocations: 0 / 3.677 GB, free: 0.543 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.016e-05/9.383, allocations: 4 kB / 3.677 GB, free: 0.5391 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.051e-05/9.383, allocations: 21.31 kB / 3.677 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3832/9.767, allocations: 44.37 MB / 3.721 GB, free: 70.55 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/9.768, allocations: 422 kB / 3.721 GB, free: 70.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/9.768, allocations: 206.8 kB / 3.721 GB, free: 70.51 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0499/9.818, allocations: 24.09 MB / 3.745 GB, free: 55.23 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.989e-05/9.818, allocations: 40.95 kB / 3.745 GB, free: 55.19 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=43): time 4.919e-06/9.818, allocations: 0 / 3.745 GB, free: 55.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=43): time 0.003922/9.822, allocations: 0.8524 MB / 3.746 GB, free: 55.11 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/9.822, allocations: 110.3 kB / 3.746 GB, free: 54.98 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009397/9.823, allocations: 420.3 kB / 3.746 GB, free: 54.87 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000118/9.823, allocations: 25.7 kB / 3.746 GB, free: 54.84 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003074/9.824, allocations: 299.8 kB / 3.746 GB, free: 54.67 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002316/9.824, allocations: 145.8 kB / 3.746 GB, free: 54.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/9.824, allocations: 0 / 3.746 GB, free: 54.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000151/9.824, allocations: 362.2 kB / 3.747 GB, free: 54.29 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004072/9.824, allocations: 214.9 kB / 3.747 GB, free: 54.28 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004884/9.825, allocations: 386.8 kB / 3.747 GB, free: 54.08 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/9.826, allocations: 355.2 kB / 3.748 GB, free: 54.07 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/9.826, allocations: 0 / 3.748 GB, free: 54.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003086/9.829, allocations: 1.106 MB / 3.749 GB, free: 53.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005485/9.83, allocations: 2.004 MB / 3.751 GB, free: 51.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/9.83, allocations: 3.844 kB / 3.751 GB, free: 51.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/9.831, allocations: 293.1 kB / 3.751 GB, free: 51.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006351/9.832, allocations: 155.8 kB / 3.751 GB, free: 51.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/9.834, allocations: 0.9633 MB / 3.752 GB, free: 51.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/9.836, allocations: 136.4 kB / 3.752 GB, free: 51.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/9.836, allocations: 41.14 kB / 3.752 GB, free: 51.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/9.836, allocations: 3.594 kB / 3.752 GB, free: 51.3 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00298/9.839, allocations: 0.7834 MB / 3.753 GB, free: 51.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.84e-05/9.839, allocations: 13.11 kB / 3.753 GB, free: 51.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/9.84, allocations: 177.5 kB / 3.753 GB, free: 51.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006855/9.841, allocations: 166.5 kB / 3.753 GB, free: 51.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/9.842, allocations: 0.787 MB / 3.754 GB, free: 50.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000995/9.843, allocations: 114.8 kB / 3.754 GB, free: 50.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.191e-05/9.843, allocations: 36.64 kB / 3.754 GB, free: 50.7 MB / 0.4948 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.0002878/9.843, allocations: 124.9 kB / 3.754 GB, free: 50.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008942/9.844, allocations: 271.4 kB / 3.755 GB, free: 50.56 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00395/9.848, allocations: 2.525 MB / 3.757 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/9.848, allocations: 27.33 kB / 3.757 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/9.848, allocations: 3.312 kB / 3.757 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/9.848, allocations: 2.812 kB / 3.757 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004837/9.853, allocations: 3.297 MB / 3.76 GB, free: 49.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/9.853, allocations: 5.75 kB / 3.76 GB, free: 49.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/9.854, allocations: 67.02 kB / 3.76 GB, free: 49.95 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/9.855, allocations: 0.7642 MB / 3.761 GB, free: 49.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/9.855, allocations: 13.12 kB / 3.761 GB, free: 49.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/9.857, allocations: 1.337 MB / 3.763 GB, free: 49.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/9.857, allocations: 0 / 3.763 GB, free: 49.36 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003876/9.861, allocations: 2.08 MB / 3.765 GB, free: 49.04 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004087/9.865, allocations: 2.547 MB / 3.767 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006641/9.866, allocations: 269.9 kB / 3.767 GB, free: 48.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/9.866, allocations: 0 / 3.767 GB, free: 48.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007498/9.867, allocations: 70.25 kB / 3.767 GB, free: 48.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/9.867, allocations: 48.34 kB / 3.767 GB, free: 48.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-05/9.867, allocations: 21.48 kB / 3.767 GB, free: 48.18 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0005603/9.867, allocations: 389.2 kB / 3.768 GB, free: 48.09 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009585/9.877, allocations: 1.712 MB / 3.77 GB, free: 48.07 MB / 0.4948 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.01095/9.888, allocations: 1.868 MB / 3.771 GB, free: 47.86 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003211/9.891, allocations: 1.399 MB / 3.773 GB, free: 47.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/9.891, allocations: 4.062 kB / 3.773 GB, free: 47.83 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001164/9.892, allocations: 0.9197 MB / 3.774 GB, free: 47.82 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/9.894, allocations: 253.8 kB / 3.774 GB, free: 47.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/9.897, allocations: 1.604 MB / 3.775 GB, free: 47.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007862/9.898, allocations: 1.131 MB / 3.777 GB, free: 46.73 MB / 0.4948 GB Notification: Performance of SimCode: time 5.61e-07/9.898, allocations: 0 / 3.777 GB, free: 46.73 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe 2>&1)