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.001014/0.001014, allocations: 187 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.208/1.208, allocations: 205.1 MB / 223.7 MB, free: 8.484 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.0009559/0.0009558, allocations: 110 kB / 271.2 MB, free: 8.449 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007331/0.0007332, allocations: 43.94 kB / 327.2 MB, free: 348 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2079, allocations: 46.62 MB / 373.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.04518/0.2532, allocations: 66.49 MB / 440.3 MB, free: 14.84 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03245/0.2857, allocations: 29.16 MB / 469.5 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001972/0.2877, allocations: 47.62 kB / 469.5 MB, free: 1.543 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.2895, allocations: 0.6296 MB / 470.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01623/0.3058, allocations: 5.411 MB / 475.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009584/0.3154, allocations: 3.516 MB / 479.1 MB, free: 7.969 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005346/0.3208, allocations: 4.888 MB / 484 MB, free: 3.07 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001415/0.3222, allocations: 0.934 MB / 484.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01314/0.3354, allocations: 6.159 MB / 491.1 MB, free: 11.88 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01749/0.3529, allocations: 9.247 MB / 0.4886 GB, free: 2.492 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003941/0.3533, allocations: 84 kB / 0.4887 GB, free: 2.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2022/0.5555, allocations: 8.757 MB / 0.4972 GB, free: 25.36 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005789/0.5561, allocations: 434.4 kB / 0.4976 GB, free: 25.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001253/0.5574, allocations: 0.7887 MB / 0.4984 GB, free: 25.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01731/0.5747, allocations: 6.985 MB / 0.5052 GB, free: 25.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.5747, allocations: 0.8125 kB / 0.5052 GB, free: 25.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.5748, allocations: 2.094 kB / 0.5052 GB, free: 25.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.232e-05/0.5748, allocations: 0 / 0.5052 GB, free: 25.25 MB / 378.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.008387/0.5832, allocations: 2.655 MB / 0.5078 GB, free: 24.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.5833, allocations: 9.375 kB / 0.5078 GB, free: 24.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003091/0.5864, allocations: 491.2 kB / 0.5083 GB, free: 23.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001523/0.5879, allocations: 0.9069 MB / 0.5092 GB, free: 23.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.588, allocations: 183.5 kB / 0.5093 GB, free: 23.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/0.5882, allocations: 114.3 kB / 0.5095 GB, free: 23.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003211/0.5914, allocations: 2.01 MB / 0.5114 GB, free: 23.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.5915, allocations: 3 kB / 0.5114 GB, free: 23.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.5916, allocations: 53.11 kB / 0.5115 GB, free: 23.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.789e-05/0.5917, allocations: 78.97 kB / 0.5115 GB, free: 23.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003186/0.5949, allocations: 1.781 MB / 0.5133 GB, free: 23.2 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.01036/0.6053, allocations: 9.249 MB / 0.5223 GB, free: 18.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00268/0.608, allocations: 1.498 MB / 0.5238 GB, free: 17.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009316/0.6089, allocations: 0.6978 MB / 0.5245 GB, free: 17.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1215/0.7304, allocations: 63.71 MB / 0.5867 GB, free: 1.375 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002527/0.733, allocations: 1.065 MB / 0.5877 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 3.176e-06/0.733, allocations: 0 / 0.5877 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of matching and sorting (n=121): time 0.01618/0.7492, allocations: 6.504 MB / 0.5941 GB, free: 11.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.7493, allocations: 303.2 kB / 0.5944 GB, free: 11.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.7505, allocations: 1.043 MB / 0.5954 GB, free: 10.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.647e-05/0.7506, allocations: 51.39 kB / 0.5954 GB, free: 10.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000352/0.751, allocations: 0.569 MB / 0.596 GB, free: 9.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.7513, allocations: 419.3 kB / 0.5964 GB, free: 9.473 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000436/0.7517, allocations: 299.2 kB / 0.5967 GB, free: 9.281 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.7518, allocations: 301.1 kB / 0.597 GB, free: 8.984 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009972/0.7528, allocations: 0.6525 MB / 0.5976 GB, free: 8.566 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.7541, allocations: 1.052 MB / 0.5986 GB, free: 7.617 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00222/0.7563, allocations: 1.676 MB / 0.6003 GB, free: 6.375 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.7564, allocations: 8 kB / 0.6003 GB, free: 6.367 MB / 442.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.004916/0.7613, allocations: 2.187 MB / 0.6024 GB, free: 4.879 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.7613, allocations: 8 kB / 0.6024 GB, free: 4.871 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.7613, allocations: 16.03 kB / 0.6024 GB, free: 4.855 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005981/0.7673, allocations: 1.024 MB / 0.6034 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.7685, allocations: 289.4 kB / 0.6037 GB, free: 3.734 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003198/0.7717, allocations: 4.039 MB / 0.6076 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.7731, allocations: 121.9 kB / 0.6078 GB, free: 15.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.7732, allocations: 71.05 kB / 0.6078 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001461/0.7747, allocations: 0.8946 MB / 0.6087 GB, free: 15.17 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001229/0.7759, allocations: 1.043 MB / 0.6097 GB, free: 14.22 MB / 458.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02512/0.8011, allocations: 5.221 MB / 0.6148 GB, free: 9.695 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.027e-05/0.8011, allocations: 8 kB / 0.6148 GB, free: 9.688 MB / 458.7 MB Notification: Performance of matching and sorting (n=183) (initialization_lambda0): time 0.003652/0.8048, allocations: 2.106 MB / 0.6169 GB, free: 7.633 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.8048, allocations: 8 kB / 0.6169 GB, free: 7.625 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.8048, allocations: 15.94 kB / 0.6169 GB, free: 7.609 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005358/0.8102, allocations: 0.8893 MB / 0.6178 GB, free: 6.711 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.8113, allocations: 314.3 kB / 0.6181 GB, free: 6.422 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003289/0.8146, allocations: 4.656 MB / 0.6226 GB, free: 1.527 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.816, allocations: 111.8 kB / 0.6227 GB, free: 1.418 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.8162, allocations: 79.98 kB / 0.6228 GB, free: 1.34 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: pumps.s:VARIABLE(start = 0.0 fixed = true ) "Curvilinear abscissa for the flow curve in parametric form (either mass flow rate or head)" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: PT1.y = PT1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,PumpRPMGenerator.T,PumpRPMGenerator.rate,PumpRPMGenerator.endValue,controller.y,$PRE.controller.y,reservoir.inFlow[3],reservoir.inFlow[2],reservoir.inFlow[1],reservoir.regularFlow[3],reservoir.regularFlow[2],reservoir.regularFlow[1],$whenCondition1,$whenCondition2,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(2,1), (1,6), (2,7), (1,1), (2,3), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004933/0.8167, allocations: 297.3 kB / 0.6231 GB, free: 1.062 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.8169, allocations: 134.4 kB / 0.6232 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005943/0.8229, allocations: 4.906 MB / 0.628 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.695e-05/0.8229, allocations: 47.94 kB / 0.6281 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.8229, allocations: 3.938 kB / 0.6281 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.8229, allocations: 11.97 kB / 0.6281 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007695/0.8306, allocations: 6.757 MB / 0.6347 GB, free: 5.113 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.8307, allocations: 0 / 0.6347 GB, free: 5.113 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007112/0.8314, allocations: 177.5 kB / 0.6348 GB, free: 4.949 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003967/0.8354, allocations: 1.385 MB / 0.6362 GB, free: 3.551 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.82e-05/0.8355, allocations: 35.97 kB / 0.6362 GB, free: 3.512 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003275/0.8388, allocations: 4.461 MB / 0.6406 GB, free: 14.91 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.8388, allocations: 11.53 kB / 0.6406 GB, free: 14.9 MB / 490.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4977/1.337, allocations: 115.8 MB / 0.7537 GB, free: 161 MB / 0.4948 GB Error: post-optimization module symbolicJacobian (simulation) failed.