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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001601/0.001601, allocations: 180.3 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.3 MB / 214.4 MB, free: 1.742 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.0009524/0.0009527, allocations: 86.23 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.029e-05/2.021e-05, allocations: 8 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0883/0.08834, allocations: 47.59 MB / 363.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.111/7.2, allocations: 2.793 GB / 3.147 GB, free: 4.703 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/7.2, allocations: 75.03 kB / 3.147 GB, free: 4.672 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.403/10.6, allocations: 0.6983 GB / 3.846 GB, free: 37.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.713e-06/10.6, allocations: 0 / 3.846 GB, free: 37.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00011/10.6, allocations: 34.77 kB / 3.846 GB, free: 37.59 MB / 458.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.01582/10.62, allocations: 2.718 MB / 3.848 GB, free: 36.54 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/10.62, allocations: 11.69 kB / 3.848 GB, free: 36.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004757/10.62, allocations: 0.568 MB / 3.849 GB, free: 36.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0037/10.63, allocations: 0.9849 MB / 3.85 GB, free: 36.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/10.63, allocations: 143.3 kB / 3.85 GB, free: 36.05 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006087/10.63, allocations: 73.59 kB / 3.85 GB, free: 36.04 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00343/10.63, allocations: 1.4 MB / 3.851 GB, free: 36.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00381/10.64, allocations: 1.61 MB / 3.853 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.383e-05/10.64, allocations: 2.719 kB / 3.853 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001912/10.64, allocations: 6.781 kB / 3.853 GB, free: 35.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/10.64, allocations: 85.62 kB / 3.853 GB, free: 35.67 MB / 458.7 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.2592/10.9, allocations: 133.8 MB / 3.984 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/10.9, allocations: 1.071 MB / 3.985 GB, free: 16.47 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006922/10.9, allocations: 0.5821 MB / 3.985 GB, free: 16.46 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.48/11.38, allocations: 63.61 MB / 4.047 GB, free: 68.96 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001796/11.38, allocations: 0.725 MB / 4.048 GB, free: 68.88 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=96): time 3.256e-06/11.38, allocations: 0 / 4.048 GB, free: 68.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=107): time 0.01933/11.4, allocations: 5.742 MB / 4.054 GB, free: 68.38 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/11.4, allocations: 198.9 kB / 4.054 GB, free: 68.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/11.4, allocations: 0.7063 MB / 4.055 GB, free: 68.03 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001203/11.4, allocations: 29.48 kB / 4.055 GB, free: 68 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005675/11.4, allocations: 0.6212 MB / 4.055 GB, free: 67.73 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003672/11.4, allocations: 357.7 kB / 4.056 GB, free: 67.55 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.539e-05/11.4, allocations: 0 / 4.056 GB, free: 67.55 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001211/11.4, allocations: 362.5 kB / 4.056 GB, free: 67.25 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000852/11.4, allocations: 0.5875 MB / 4.056 GB, free: 67.24 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/11.4, allocations: 0.9754 MB / 4.057 GB, free: 66.79 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006849/11.41, allocations: 1.693 MB / 4.059 GB, free: 66.74 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.396e-05/11.41, allocations: 3.125 kB / 4.059 GB, free: 66.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.009192/11.42, allocations: 3 MB / 4.062 GB, free: 66.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001187/11.42, allocations: 4.366 MB / 4.066 GB, free: 61.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/11.42, allocations: 10.94 kB / 4.066 GB, free: 61.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001636/11.42, allocations: 0.6981 MB / 4.067 GB, free: 61.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/11.42, allocations: 281.9 kB / 4.067 GB, free: 61.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006583/11.43, allocations: 5.899 MB / 4.073 GB, free: 57.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/11.43, allocations: 102.2 kB / 4.073 GB, free: 57.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/11.43, allocations: 76.16 kB / 4.073 GB, free: 57.46 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/11.43, allocations: 3.25 kB / 4.073 GB, free: 57.46 MB / 0.5105 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.006799/11.44, allocations: 1.655 MB / 4.075 GB, free: 57.42 MB / 0.5105 GB Error: post-optimization module replaceHomotopyWithSimplified (initialization) failed. Error: No system for the symbolic initialization was generated