Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.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) 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(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_PumpingSystem",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.00167/0.00167, allocations: 188.5 kB / 8.137 MB, free: 2.215 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.145/1.145, allocations: 221.4 MB / 229.9 MB, free: 3.238 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.0008861/0.000886, allocations: 79.17 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09706/0.09797, allocations: 55.82 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.2719, allocations: 50.39 MB / 387 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.911/4.183, allocations: 2.797 GB / 3.175 GB, free: 12.21 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001803/4.183, allocations: 83.91 kB / 3.175 GB, free: 12.13 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 2.149/6.332, allocations: 0.712 GB / 3.887 GB, free: 40.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/6.333, allocations: 10.36 kB / 3.887 GB, free: 40.32 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004065/6.337, allocations: 0.5998 MB / 3.888 GB, free: 40.24 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/6.339, allocations: 1.001 MB / 3.889 GB, free: 39.92 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/6.339, allocations: 144.5 kB / 3.889 GB, free: 39.82 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/6.339, allocations: 69.47 kB / 3.889 GB, free: 39.82 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002247/6.341, allocations: 1.427 MB / 3.89 GB, free: 39.81 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002349/6.343, allocations: 1.639 MB / 3.892 GB, free: 39.45 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.564e-05/6.344, allocations: 5.5 kB / 3.892 GB, free: 39.45 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001533/6.344, allocations: 3.312 kB / 3.892 GB, free: 39.45 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.748e-05/6.344, allocations: 84.09 kB / 3.892 GB, free: 39.45 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2312/6.575, allocations: 133.5 MB / 4.022 GB, free: 19.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/6.576, allocations: 0.7595 MB / 4.023 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006875/6.577, allocations: 0.5914 MB / 4.024 GB, free: 19.55 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2554/6.832, allocations: 64.04 MB / 4.086 GB, free: 137.8 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/6.833, allocations: 0.7387 MB / 4.087 GB, free: 137.7 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 2.434e-06/6.833, allocations: 0 / 4.087 GB, free: 137.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=107): time 0.01486/6.848, allocations: 5.46 MB / 4.092 GB, free: 137.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/6.848, allocations: 196.9 kB / 4.093 GB, free: 137.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009448/6.849, allocations: 0.7344 MB / 4.093 GB, free: 137 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.386e-05/6.849, allocations: 25.7 kB / 4.093 GB, free: 136.9 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003334/6.85, allocations: 0.5219 MB / 4.094 GB, free: 136.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/6.85, allocations: 351.8 kB / 4.094 GB, free: 136.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/6.85, allocations: 0 / 4.094 GB, free: 136.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.738e-05/6.85, allocations: 365.6 kB / 4.094 GB, free: 136.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008687/6.851, allocations: 0.6396 MB / 4.095 GB, free: 136.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/6.852, allocations: 1.043 MB / 4.096 GB, free: 135.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00362/6.856, allocations: 1.307 MB / 4.097 GB, free: 135.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/6.856, allocations: 4.906 kB / 4.097 GB, free: 135.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.007186/6.863, allocations: 3.104 MB / 4.1 GB, free: 135.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005338/6.864, allocations: 4.362 MB / 4.105 GB, free: 131 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/6.864, allocations: 13.19 kB / 4.105 GB, free: 131 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/6.865, allocations: 0.7009 MB / 4.105 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/6.866, allocations: 292.4 kB / 4.106 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004804/6.871, allocations: 5.824 MB / 4.111 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/6.872, allocations: 103.2 kB / 4.111 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/6.872, allocations: 74.95 kB / 4.112 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.412e-06/6.873, allocations: 6.906 kB / 4.112 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005632/6.878, allocations: 2.449 MB / 4.114 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/6.878, allocations: 11.06 kB / 4.114 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/6.879, allocations: 0.6278 MB / 4.115 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/6.88, allocations: 294.3 kB / 4.115 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003871/6.884, allocations: 5.067 MB / 4.12 GB, free: 122.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/6.886, allocations: 92.06 kB / 4.12 GB, free: 122.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/6.886, allocations: 71.66 kB / 4.12 GB, free: 122.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 150 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 1,1 6,2 7,1 1,2 3,1 2,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002978/6.886, allocations: 155.6 kB / 4.12 GB, free: 122.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/6.887, allocations: 413.6 kB / 4.12 GB, free: 122.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006467/6.893, allocations: 4.65 MB / 4.125 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.904e-05/6.894, allocations: 43.64 kB / 4.125 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/6.894, allocations: 3.906 kB / 4.125 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/6.894, allocations: 11.16 kB / 4.125 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007785/6.901, allocations: 6.322 MB / 4.131 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/6.901, allocations: 3.906 kB / 4.131 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007052/6.902, allocations: 161.6 kB / 4.131 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/6.904, allocations: 1.064 MB / 4.132 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.97e-05/6.904, allocations: 24.92 kB / 4.132 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004101/6.908, allocations: 4.871 MB / 4.137 GB, free: 118.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/6.908, allocations: 3.906 kB / 4.137 GB, free: 118.4 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007219/6.915, allocations: 5.441 MB / 4.143 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009011/6.924, allocations: 7.37 MB / 4.15 GB, free: 117.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007295/6.925, allocations: 410.7 kB / 4.15 GB, free: 117 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002434/6.925, allocations: 7.156 kB / 4.15 GB, free: 117 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009948/6.926, allocations: 88.09 kB / 4.15 GB, free: 117 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/6.927, allocations: 98.89 kB / 4.15 GB, free: 117 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/6.927, allocations: 45.39 kB / 4.15 GB, free: 117 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0006265/6.927, allocations: 0.5319 MB / 4.151 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008216/6.936, allocations: 2.39 MB / 4.153 GB, free: 116.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 32 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 9,1 1,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006384/6.942, allocations: 2.554 MB / 4.156 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005272/6.947, allocations: 3.648 MB / 4.159 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/6.947, allocations: 4.156 kB / 4.159 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002194/6.949, allocations: 1.854 MB / 4.161 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/6.952, allocations: 446 kB / 4.162 GB, free: 116.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005616/6.957, allocations: 3.416 MB / 4.165 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/6.958, allocations: 1.561 MB / 4.166 GB, free: 115 MB / 0.5417 GB Notification: Performance of SimCode: time 4.7e-07/6.958, allocations: 6.516 kB / 4.166 GB, free: 115 MB / 0.5417 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_PumpingSystem_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_PumpingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1)