Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",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.001082/0.001081, allocations: 174.8 kB / 8.518 MB, free: 1.832 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.327/1.327, allocations: 221.4 MB / 230.3 MB, free: 7.746 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.0009753/0.0009753, allocations: 88.67 kB / 281.2 MB, free: 5.48 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.1982/0.1982, allocations: 44.15 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2094/0.4076, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.5187, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.861/5.38, allocations: 2.786 GB / 3.281 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/5.38, allocations: 87.7 kB / 3.281 GB, free: 156.4 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 1.259/6.64, allocations: 442.2 MB / 3.713 GB, free: 63.65 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/6.64, allocations: 18.75 kB / 3.713 GB, free: 63.64 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002769/6.642, allocations: 347.9 kB / 3.713 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/6.644, allocations: 0.5715 MB / 3.713 GB, free: 63.35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.512e-05/6.644, allocations: 21.25 kB / 3.713 GB, free: 63.35 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/6.644, allocations: 39.94 kB / 3.714 GB, free: 63.34 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009233/6.645, allocations: 0.5446 MB / 3.714 GB, free: 63.34 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009314/6.646, allocations: 0.6566 MB / 3.715 GB, free: 63.15 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/6.646, allocations: 9.312 kB / 3.715 GB, free: 63.15 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.08e-05/6.646, allocations: 3.875 kB / 3.715 GB, free: 63.15 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.113e-05/6.646, allocations: 22.12 kB / 3.715 GB, free: 63.15 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01902/6.665, allocations: 12.11 MB / 3.727 GB, free: 55.31 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005949/6.666, allocations: 336.3 kB / 3.727 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003361/6.666, allocations: 224.5 kB / 3.727 GB, free: 55.28 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09972/6.766, allocations: 55.71 MB / 3.781 GB, free: 20.23 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/6.766, allocations: 41.95 kB / 3.782 GB, free: 20.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=47): time 2.745e-06/6.766, allocations: 4 kB / 3.782 GB, free: 20.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=51): time 0.006274/6.772, allocations: 1.832 MB / 3.783 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/6.772, allocations: 110.2 kB / 3.783 GB, free: 19.66 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004801/6.773, allocations: 389.2 kB / 3.784 GB, free: 19.54 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.495e-05/6.773, allocations: 25.7 kB / 3.784 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/6.773, allocations: 271.2 kB / 3.784 GB, free: 19.32 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/6.773, allocations: 172.5 kB / 3.784 GB, free: 19.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.524e-05/6.773, allocations: 0 / 3.784 GB, free: 19.21 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.996e-05/6.773, allocations: 362.5 kB / 3.785 GB, free: 18.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/6.773, allocations: 221.6 kB / 3.785 GB, free: 18.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003678/6.774, allocations: 375 kB / 3.785 GB, free: 18.72 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/6.775, allocations: 359.4 kB / 3.785 GB, free: 18.71 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/6.775, allocations: 0 / 3.785 GB, free: 18.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00317/6.778, allocations: 1.113 MB / 3.787 GB, free: 18.62 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004199/6.779, allocations: 1.745 MB / 3.788 GB, free: 32.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/6.779, allocations: 8 kB / 3.788 GB, free: 32.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/6.78, allocations: 300.4 kB / 3.789 GB, free: 32.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000538/6.78, allocations: 143.7 kB / 3.789 GB, free: 32.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/6.782, allocations: 1.032 MB / 3.79 GB, free: 32.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008675/6.783, allocations: 94.8 kB / 3.79 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.83e-05/6.783, allocations: 41.39 kB / 3.79 GB, free: 32.22 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/6.783, allocations: 3.969 kB / 3.79 GB, free: 32.22 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002187/6.785, allocations: 0.7441 MB / 3.791 GB, free: 32.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/6.786, allocations: 4.25 kB / 3.791 GB, free: 32.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/6.787, allocations: 291.3 kB / 3.791 GB, free: 32.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005243/6.787, allocations: 143 kB / 3.791 GB, free: 32.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001366/6.789, allocations: 0.9249 MB / 3.792 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007553/6.79, allocations: 82.31 kB / 3.792 GB, free: 31.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.708e-05/6.79, allocations: 33.72 kB / 3.792 GB, free: 31.64 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].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 (55): * Single equations (assignments): 54 * 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 20} Notification: Performance of prepare postOptimizeDAE: time 0.0002028/6.79, allocations: 128.8 kB / 3.792 GB, free: 31.52 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007946/6.791, allocations: 269.1 kB / 3.792 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003405/6.794, allocations: 2.585 MB / 3.795 GB, free: 31.24 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.587e-05/6.794, allocations: 28.47 kB / 3.795 GB, free: 31.24 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/6.794, allocations: 6.203 kB / 3.795 GB, free: 31.24 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/6.794, allocations: 8.734 kB / 3.795 GB, free: 31.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004268/6.798, allocations: 3.458 MB / 3.798 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/6.798, allocations: 1.125 kB / 3.798 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007362/6.799, allocations: 158.6 kB / 3.798 GB, free: 30.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002278/6.799, allocations: 65.53 kB / 3.799 GB, free: 30.84 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.695e-05/6.799, allocations: 20.12 kB / 3.799 GB, free: 30.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006818/6.8, allocations: 1.206 MB / 3.8 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/6.8, allocations: 1.156 kB / 3.8 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003734/6.804, allocations: 2.7 MB / 3.802 GB, free: 29.42 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004765/6.809, allocations: 3.74 MB / 3.806 GB, free: 28.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/6.809, allocations: 268.4 kB / 3.806 GB, free: 28.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/6.809, allocations: 5.344 kB / 3.806 GB, free: 28.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006542/6.81, allocations: 73.69 kB / 3.806 GB, free: 28.57 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/6.81, allocations: 61.48 kB / 3.806 GB, free: 28.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.406e-05/6.81, allocations: 28.05 kB / 3.806 GB, free: 28.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.000516/6.811, allocations: 335.2 kB / 3.807 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007753/6.818, allocations: 1.654 MB / 3.808 GB, free: 28.29 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008772/6.827, allocations: 1.897 MB / 3.81 GB, free: 27.88 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002843/6.83, allocations: 1.562 MB / 3.812 GB, free: 27.34 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/6.83, allocations: 0 / 3.812 GB, free: 27.34 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/6.831, allocations: 1.11 MB / 3.813 GB, free: 26.63 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/6.833, allocations: 273 kB / 3.813 GB, free: 26.43 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/6.836, allocations: 1.878 MB / 3.815 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007156/6.836, allocations: 1.16 MB / 3.816 GB, free: 23.69 MB / 0.5261 GB Notification: Performance of SimCode: time 4.71e-07/6.836, allocations: 4 kB / 3.816 GB, free: 23.68 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe 2>&1)