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: "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.000997/0.0009971, allocations: 176 kB / 8.474 MB, free: 1.852 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.042/1.042, allocations: 205.2 MB / 214.1 MB, free: 5.082 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.0008763/0.0008764, allocations: 86.25 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1447/0.1456, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0593/0.2049, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.782/3.987, allocations: 2.792 GB / 3.146 GB, free: 102.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001698/3.987, allocations: 81.3 kB / 3.146 GB, free: 102.2 MB / 426.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.114/6.101, allocations: 0.7037 GB / 3.85 GB, free: 26.63 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/6.101, allocations: 6.531 kB / 3.85 GB, free: 26.63 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004752/6.106, allocations: 0.599 MB / 3.851 GB, free: 26.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002869/6.109, allocations: 0.9954 MB / 3.852 GB, free: 25.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001902/6.109, allocations: 141.3 kB / 3.852 GB, free: 25.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004741/6.11, allocations: 78.36 kB / 3.852 GB, free: 25.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002893/6.112, allocations: 1.429 MB / 3.853 GB, free: 25.37 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00324/6.116, allocations: 1.632 MB / 3.855 GB, free: 24.58 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.316e-05/6.116, allocations: 7.75 kB / 3.855 GB, free: 24.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002474/6.116, allocations: 9.844 kB / 3.855 GB, free: 24.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.491e-05/6.116, allocations: 81.38 kB / 3.855 GB, free: 24.56 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4445/6.561, allocations: 133.5 MB / 3.985 GB, free: 53.97 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/6.562, allocations: 0.7491 MB / 3.986 GB, free: 53.95 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/6.563, allocations: 0.5895 MB / 3.987 GB, free: 53.94 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1235/6.687, allocations: 63.49 MB / 4.049 GB, free: 29.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00168/6.689, allocations: 0.7366 MB / 4.049 GB, free: 28.94 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 3.747e-06/6.689, allocations: 0 / 4.049 GB, free: 28.94 MB / 490.7 MB Notification: Performance of matching and sorting (n=107): time 0.01807/6.707, allocations: 5.47 MB / 4.055 GB, free: 28.42 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/6.707, allocations: 194.5 kB / 4.055 GB, free: 28.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/6.708, allocations: 0.7339 MB / 4.056 GB, free: 28.05 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/6.709, allocations: 28.8 kB / 4.056 GB, free: 28.02 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005132/6.709, allocations: 0.5165 MB / 4.056 GB, free: 27.76 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003991/6.709, allocations: 356.9 kB / 4.057 GB, free: 27.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/6.71, allocations: 0 / 4.057 GB, free: 27.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002/6.71, allocations: 367.2 kB / 4.057 GB, free: 27.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/6.711, allocations: 0.6466 MB / 4.058 GB, free: 27.27 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/6.712, allocations: 1.033 MB / 4.059 GB, free: 26.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006438/6.719, allocations: 1.649 MB / 4.06 GB, free: 26.77 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/6.719, allocations: 3.719 kB / 4.06 GB, free: 26.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.01069/6.729, allocations: 3.45 MB / 4.064 GB, free: 26.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1857/6.915, allocations: 4.35 MB / 4.068 GB, free: 109.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.499e-05/6.915, allocations: 11 kB / 4.068 GB, free: 109.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001793/6.917, allocations: 0.713 MB / 4.068 GB, free: 109.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/6.918, allocations: 290.5 kB / 4.069 GB, free: 109.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005227/6.924, allocations: 5.814 MB / 4.074 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/6.925, allocations: 106.4 kB / 4.075 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/6.926, allocations: 74.94 kB / 4.075 GB, free: 104.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.034e-06/6.926, allocations: 3.375 kB / 4.075 GB, free: 104.8 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.006007/6.932, allocations: 1.637 MB / 4.076 GB, free: 104.8 MB / 490.7 MB Error: post-optimization module replaceHomotopyWithSimplified (initialization) failed. Error: No system for the symbolic initialization was generated Error: Internal error SimCode: The model Modelica.Fluid.Examples.PumpingSystem could not be translated to FMU