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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001455/0.001455, allocations: 177.8 kB / 8.36 MB, free: 0.7148 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.919/1.919, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001072/0.001072, allocations: 89 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.234e-05/2.249e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3277, allocations: 47.58 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.204/8.532, allocations: 2.792 GB / 3.146 GB, free: 81.52 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/8.532, allocations: 76.94 kB / 3.146 GB, free: 81.52 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.679/12.21, allocations: 0.6983 GB / 3.845 GB, free: 33.25 MB / 443.1 MB Notification: Performance of FrontEnd: time 2.895e-06/12.21, allocations: 0 / 3.845 GB, free: 33.25 MB / 443.1 MB Notification: Performance of Transformations before backend: time 0.0002291/12.21, allocations: 37.59 kB / 3.845 GB, free: 33.24 MB / 443.1 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.01775/12.23, allocations: 2.712 MB / 3.847 GB, free: 31.7 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.264e-05/12.23, allocations: 7.688 kB / 3.847 GB, free: 31.7 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008422/12.24, allocations: 0.5764 MB / 3.848 GB, free: 31.58 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005521/12.24, allocations: 0.9741 MB / 3.849 GB, free: 31.04 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002766/12.24, allocations: 148 kB / 3.849 GB, free: 30.94 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007316/12.24, allocations: 74.48 kB / 3.849 GB, free: 30.93 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0049/12.25, allocations: 1.395 MB / 3.85 GB, free: 30.45 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007149/12.26, allocations: 1.611 MB / 3.852 GB, free: 29.65 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.715e-05/12.26, allocations: 10.19 kB / 3.852 GB, free: 29.65 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002583/12.26, allocations: 5.406 kB / 3.852 GB, free: 29.65 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001496/12.26, allocations: 81.73 kB / 3.852 GB, free: 29.64 MB / 443.1 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8174/13.07, allocations: 133.8 MB / 3.983 GB, free: 16.89 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003993/13.08, allocations: 1.072 MB / 3.984 GB, free: 16.86 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002049/13.08, allocations: 0.5835 MB / 3.984 GB, free: 16.84 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2107/13.29, allocations: 63.6 MB / 4.046 GB, free: 24.38 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001961/13.29, allocations: 0.7261 MB / 4.047 GB, free: 24.29 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=96): time 4.118e-06/13.29, allocations: 0 / 4.047 GB, free: 24.29 MB / 0.5108 GB Notification: Performance of matching and sorting (n=107): time 0.02964/13.32, allocations: 5.752 MB / 4.053 GB, free: 23.74 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/13.32, allocations: 195.6 kB / 4.053 GB, free: 23.52 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0015/13.33, allocations: 0.7116 MB / 4.054 GB, free: 23.39 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.000345/13.33, allocations: 26.77 kB / 4.054 GB, free: 23.36 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006047/13.33, allocations: 0.6397 MB / 4.054 GB, free: 23.04 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005041/13.33, allocations: 356.3 kB / 4.055 GB, free: 22.86 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/13.33, allocations: 3.438 kB / 4.055 GB, free: 22.86 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001992/13.33, allocations: 374 kB / 4.055 GB, free: 22.54 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/13.33, allocations: 0.5846 MB / 4.056 GB, free: 22.54 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/13.33, allocations: 0.9679 MB / 4.056 GB, free: 22.08 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01128/13.34, allocations: 1.696 MB / 4.058 GB, free: 22.03 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.957e-05/13.34, allocations: 2.875 kB / 4.058 GB, free: 22.03 MB / 0.5108 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.01545/13.36, allocations: 2.944 MB / 4.061 GB, free: 20.5 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.001809/13.36, allocations: 4.358 MB / 4.065 GB, free: 15.9 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-05/13.36, allocations: 16 kB / 4.065 GB, free: 15.89 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002644/13.36, allocations: 0.694 MB / 4.066 GB, free: 15.46 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/13.36, allocations: 282.8 kB / 4.066 GB, free: 15.25 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/13.37, allocations: 5.902 MB / 4.072 GB, free: 9.938 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/13.38, allocations: 95.62 kB / 4.072 GB, free: 9.867 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002752/13.38, allocations: 77.5 kB / 4.072 GB, free: 9.812 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/13.38, allocations: 0 / 4.072 GB, free: 9.812 MB / 0.5108 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.waterBaseProp_pT(pumps.medium.p, pumps.medium.T, 0).rho; 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.01167/13.39, allocations: 1.657 MB / 4.074 GB, free: 8.867 MB / 0.5108 GB Error: post-optimization module replaceHomotopyWithSimplified (initialization) failed. Error: No system for the symbolic initialization was generated