Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.PumpingSystem.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) 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: translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.PumpingSystem") translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.PumpingSystem") [: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.001004/0.001004, allocations: 184.5 kB / 8.48 MB, free: 1.879 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.297/1.297, allocations: 205.2 MB / 214.1 MB, free: 5.148 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009852/0.0009853, allocations: 86.36 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/8.125e-06, allocations: 4 kB / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07304/0.07306, allocations: 47.58 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.848/5.922, allocations: 2.792 GB / 3.146 GB, free: 109.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/5.922, allocations: 78.19 kB / 3.146 GB, free: 109.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.849/8.771, allocations: 0.701 GB / 3.847 GB, free: 29.33 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001924/8.771, allocations: 31.45 kB / 3.847 GB, free: 29.32 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 0.01466/8.786, allocations: 2.737 MB / 3.85 GB, free: 27.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/8.786, allocations: 8.906 kB / 3.85 GB, free: 27.95 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005535/8.791, allocations: 0.6054 MB / 3.851 GB, free: 27.87 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003891/8.795, allocations: 0.9912 MB / 3.852 GB, free: 27.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000275/8.795, allocations: 143.6 kB / 3.852 GB, free: 27.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007245/8.796, allocations: 70.03 kB / 3.852 GB, free: 27.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003687/8.8, allocations: 1.436 MB / 3.853 GB, free: 27.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004189/8.804, allocations: 1.629 MB / 3.855 GB, free: 27.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.477e-05/8.804, allocations: 7.344 kB / 3.855 GB, free: 27.04 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003272/8.805, allocations: 9.422 kB / 3.855 GB, free: 27.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/8.805, allocations: 84.34 kB / 3.855 GB, free: 27.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5738/9.378, allocations: 133.5 MB / 3.985 GB, free: 55.86 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/9.38, allocations: 0.7546 MB / 3.986 GB, free: 55.83 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/9.382, allocations: 0.5911 MB / 3.987 GB, free: 55.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1349/9.517, allocations: 63.48 MB / 4.049 GB, free: 30.92 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001994/9.519, allocations: 0.7482 MB / 4.049 GB, free: 30.84 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 5.31e-06/9.519, allocations: 3.422 kB / 4.049 GB, free: 30.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=107): time 0.0189/9.538, allocations: 5.472 MB / 4.055 GB, free: 30.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/9.538, allocations: 191.4 kB / 4.055 GB, free: 30.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00161/9.539, allocations: 0.7387 MB / 4.056 GB, free: 29.96 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/9.54, allocations: 31.17 kB / 4.056 GB, free: 29.93 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004815/9.54, allocations: 0.5076 MB / 4.056 GB, free: 29.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003942/9.54, allocations: 357.1 kB / 4.056 GB, free: 29.49 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.984e-05/9.541, allocations: 0 / 4.056 GB, free: 29.49 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/9.541, allocations: 363 kB / 4.057 GB, free: 29.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009832/9.542, allocations: 0.6462 MB / 4.057 GB, free: 29.18 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/9.543, allocations: 1.04 MB / 4.058 GB, free: 28.73 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006202/9.549, allocations: 1.647 MB / 4.06 GB, free: 28.67 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/9.549, allocations: 2.781 kB / 4.06 GB, free: 28.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.01112/9.56, allocations: 3.45 MB / 4.063 GB, free: 28.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002411/9.563, allocations: 4.351 MB / 4.068 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-05/9.563, allocations: 12.12 kB / 4.068 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002635/9.565, allocations: 0.7023 MB / 4.068 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00237/9.568, allocations: 291 kB / 4.069 GB, free: 39.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/9.578, allocations: 5.829 MB / 4.074 GB, free: 35.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003182/9.582, allocations: 107.2 kB / 4.074 GB, free: 35.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003946/9.582, allocations: 73.16 kB / 4.075 GB, free: 35.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/9.582, allocations: 3.875 kB / 4.075 GB, free: 35.4 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Continuous.mo:409:7-409:18:writable] Error: Initialization problem is structurally singular, error found sorting equations 8: PT1.y = PT1.y_start; 90: pumps.N = max(PT1.y, 0.001); 87: pumps.head = pumps.N * Modelica.Fluid.Machines.PrescribedPump$pumps.flowCharacteristic(0.0, {0.0, 0.25, 0.5}, {100.0, 60.0, 0.0}) / pumps.N_nominal; 94: pumps.dp_pump = pumps.medium.p - source.p; 93: pumps.head = pumps.dp_pump / (pumps.g * pumps.rho); 4: pumps.medium.p = pumps.p_start; 11: pumps.rho = Modelica.Media.Water.IF97_Utilities.rho_props_pT(pumps.medium.p, pumps.medium.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_pT(pumps.medium.p, pumps.medium.T, 0)); 3: pumps.medium.T = pumps.T_start; for variables $whenCondition2(122), pumps.Hb_flow(91), pumps.head(87), userValve.state_b.d(14), sink.medium.u(13), pipe.flowModel.states[1].h(118), $DER.pumps.U(125), pipe.flowModel.states[1].T(117), pipe.flowModel.dimensions[2](3) Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009677/9.592, allocations: 1.631 MB / 4.076 GB, free: 35.35 MB / 0.4948 GB Error: post-optimization module replaceHomotopyWithSimplified (initialization) failed. Error: No system for the symbolic initialization was generated