Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001594/0.001594, allocations: 176 kB / 8.151 MB, free: 2.211 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.776/1.776, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.001298/0.001298, allocations: 89.98 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.011e-05/1.021e-05, allocations: 4 kB / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2409, allocations: 47.55 MB / 361.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.054/6.295, allocations: 2.792 GB / 3.146 GB, free: 81.57 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/6.295, allocations: 78.08 kB / 3.146 GB, free: 81.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.165/9.46, allocations: 0.701 GB / 3.847 GB, free: 27.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001614/9.46, allocations: 40.52 kB / 3.847 GB, free: 27.74 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.01407/9.474, allocations: 2.733 MB / 3.849 GB, free: 26.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/9.474, allocations: 11.66 kB / 3.849 GB, free: 26.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007084/9.481, allocations: 0.6046 MB / 3.85 GB, free: 26.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004015/9.485, allocations: 0.9831 MB / 3.851 GB, free: 25.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002485/9.486, allocations: 151.5 kB / 3.851 GB, free: 25.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005708/9.486, allocations: 67.41 kB / 3.851 GB, free: 25.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004855/9.491, allocations: 1.427 MB / 3.853 GB, free: 24.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005515/9.497, allocations: 1.639 MB / 3.854 GB, free: 24.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-05/9.497, allocations: 5.688 kB / 3.854 GB, free: 24.15 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002779/9.497, allocations: 7.781 kB / 3.854 GB, free: 24.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/9.497, allocations: 87.88 kB / 3.854 GB, free: 24.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6576/10.15, allocations: 133.5 MB / 3.985 GB, free: 31.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/10.16, allocations: 0.7496 MB / 3.985 GB, free: 31.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/10.16, allocations: 0.5932 MB / 3.986 GB, free: 31.58 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2298/10.39, allocations: 63.48 MB / 4.048 GB, free: 22.68 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002263/10.39, allocations: 0.7472 MB / 4.049 GB, free: 22.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 4.749e-06/10.39, allocations: 3.531 kB / 4.049 GB, free: 22.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=107): time 0.02901/10.42, allocations: 5.477 MB / 4.054 GB, free: 22.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/10.42, allocations: 191.3 kB / 4.054 GB, free: 21.85 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/10.42, allocations: 0.7355 MB / 4.055 GB, free: 21.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003848/10.42, allocations: 28.98 kB / 4.055 GB, free: 21.67 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004973/10.42, allocations: 0.5293 MB / 4.055 GB, free: 21.34 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005302/10.42, allocations: 351.4 kB / 4.056 GB, free: 21.17 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/10.42, allocations: 0 / 4.056 GB, free: 21.17 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001963/10.42, allocations: 366.9 kB / 4.056 GB, free: 20.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001792/10.43, allocations: 0.6449 MB / 4.057 GB, free: 20.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002053/10.43, allocations: 1.044 MB / 4.058 GB, free: 20.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01139/10.44, allocations: 1.649 MB / 4.059 GB, free: 20.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.278e-05/10.44, allocations: 3.625 kB / 4.059 GB, free: 20.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.01829/10.46, allocations: 3.395 MB / 4.063 GB, free: 20.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001803/10.46, allocations: 4.354 MB / 4.067 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.551e-05/10.46, allocations: 9.688 kB / 4.067 GB, free: 15.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/10.46, allocations: 0.7 MB / 4.068 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002566/10.47, allocations: 290.7 kB / 4.068 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2302/10.7, allocations: 5.809 MB / 4.074 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002518/10.7, allocations: 96.77 kB / 4.074 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/10.7, allocations: 75.03 kB / 4.074 GB, free: 111.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/10.7, allocations: 4.906 kB / 4.074 GB, free: 111.9 MB / 490.7 MB [/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.01201/10.71, allocations: 1.633 MB / 4.075 GB, free: 111.9 MB / 490.7 MB Error: post-optimization module replaceHomotopyWithSimplified (initialization) failed. Error: No system for the symbolic initialization was generated