Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.PumpingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 93 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 35.94 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2968, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.07248/0.3693, allocations: 66.5 MB / 466 MB, free: 14.64 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04845/0.4179, allocations: 29.21 MB / 495.2 MB, free: 1.34 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002391/0.4203, allocations: 43.69 kB / 495.2 MB, free: 1.297 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002544/0.4229, allocations: 0.6295 MB / 495.9 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02293/0.4458, allocations: 5.409 MB / 0.4895 GB, free: 11.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01433/0.4602, allocations: 3.552 MB / 0.493 GB, free: 7.711 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007934/0.4682, allocations: 4.9 MB / 0.4978 GB, free: 2.801 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002295/0.4705, allocations: 0.9302 MB / 0.4987 GB, free: 1.855 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2827/0.7532, allocations: 6.156 MB / 0.5047 GB, free: 9.855 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01869/0.772, allocations: 9.317 MB / 0.5138 GB, free: 7.449 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005926/0.7726, allocations: 78.78 kB / 0.5139 GB, free: 7.449 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01763/0.7902, allocations: 8.771 MB / 0.5224 GB, free: 7.414 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009049/0.7912, allocations: 439.2 kB / 0.5228 GB, free: 7.414 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.7927, allocations: 0.7791 MB / 0.5236 GB, free: 7.414 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01884/0.8115, allocations: 6.987 MB / 0.5304 GB, free: 6.754 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.8116, allocations: 5.531 kB / 0.5304 GB, free: 6.754 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.8116, allocations: 4 kB / 0.5304 GB, free: 6.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.871e-05/0.8116, allocations: 0 / 0.5304 GB, free: 6.75 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.0107/0.8224, allocations: 2.646 MB / 0.533 GB, free: 5.238 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.8224, allocations: 11.03 kB / 0.533 GB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003257/0.8257, allocations: 489.5 kB / 0.5335 GB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001728/0.8274, allocations: 0.8874 MB / 0.5344 GB, free: 4.582 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.8276, allocations: 183 kB / 0.5345 GB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001893/0.8278, allocations: 116.1 kB / 0.5347 GB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003593/0.8314, allocations: 2.014 MB / 0.5366 GB, free: 3.711 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.765e-05/0.8315, allocations: 7 kB / 0.5366 GB, free: 3.711 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001697/0.8317, allocations: 54.28 kB / 0.5367 GB, free: 3.707 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.507e-05/0.8318, allocations: 81.23 kB / 0.5368 GB, free: 3.691 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00319/0.835, allocations: 1.778 MB / 0.5385 GB, free: 3.352 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.01212/0.8471, allocations: 9.257 MB / 0.5475 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003126/0.8503, allocations: 1.491 MB / 0.549 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.8514, allocations: 0.7036 MB / 0.5497 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1313/0.9827, allocations: 63.72 MB / 0.6119 GB, free: 5.367 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00274/0.9855, allocations: 1.062 MB / 0.6129 GB, free: 4.555 MB / 458.7 MB Notification: Performance of pre-optimization done (n=110): time 3.075e-06/0.9856, allocations: 0 / 0.6129 GB, free: 4.555 MB / 458.7 MB Notification: Performance of matching and sorting (n=121): time 0.0171/1.003, allocations: 6.523 MB / 0.6193 GB, free: 15.36 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/1.003, allocations: 295.7 kB / 0.6196 GB, free: 15.01 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/1.004, allocations: 1.045 MB / 0.6206 GB, free: 14.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/1.004, allocations: 52.02 kB / 0.6207 GB, free: 14.16 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003915/1.005, allocations: 0.5734 MB / 0.6212 GB, free: 13.79 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003342/1.005, allocations: 411 kB / 0.6216 GB, free: 13.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004473/1.005, allocations: 297 kB / 0.6219 GB, free: 13.26 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.22e-05/1.006, allocations: 305.1 kB / 0.6222 GB, free: 12.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/1.007, allocations: 0.6443 MB / 0.6228 GB, free: 12.54 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/1.008, allocations: 1.06 MB / 0.6238 GB, free: 11.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/1.011, allocations: 1.676 MB / 0.6255 GB, free: 10.01 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/1.011, allocations: 4 kB / 0.6255 GB, free: 10.01 MB / 474.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.004194/1.015, allocations: 2.188 MB / 0.6276 GB, free: 7.883 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/1.015, allocations: 8 kB / 0.6276 GB, free: 7.875 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/1.015, allocations: 12.78 kB / 0.6276 GB, free: 7.863 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006395/1.022, allocations: 1.007 MB / 0.6286 GB, free: 6.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/1.023, allocations: 301.9 kB / 0.6289 GB, free: 6.562 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003396/1.026, allocations: 4.037 MB / 0.6329 GB, free: 2.395 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/1.028, allocations: 115.9 kB / 0.633 GB, free: 2.281 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/1.028, allocations: 75.97 kB / 0.633 GB, free: 2.207 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001523/1.029, allocations: 0.8903 MB / 0.6339 GB, free: 1.316 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001309/1.031, allocations: 1.044 MB / 0.6349 GB, free: 116 kB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00237/1.033, allocations: 1.644 MB / 0.6365 GB, free: 14.36 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.504e-06/1.033, allocations: 4 kB / 0.6365 GB, free: 14.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=183) (initialization_lambda0): time 0.003908/1.037, allocations: 2.098 MB / 0.6386 GB, free: 12.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/1.037, allocations: 12 kB / 0.6386 GB, free: 12.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/1.037, allocations: 15.94 kB / 0.6386 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00575/1.043, allocations: 0.8847 MB / 0.6395 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/1.044, allocations: 307.9 kB / 0.6398 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/1.047, allocations: 3.363 MB / 0.6431 GB, free: 7.621 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/1.048, allocations: 123.8 kB / 0.6432 GB, free: 7.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/1.048, allocations: 75.91 kB / 0.6433 GB, free: 7.426 MB / 490.7 MB 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.0005107/1.049, allocations: 280.9 kB / 0.6435 GB, free: 7.164 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002684/1.049, allocations: 130.5 kB / 0.6436 GB, free: 7.035 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006408/1.056, allocations: 4.919 MB / 0.6484 GB, free: 2.086 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.827e-05/1.056, allocations: 51.92 kB / 0.6485 GB, free: 2.035 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/1.056, allocations: 0 / 0.6485 GB, free: 2.035 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-05/1.056, allocations: 7.984 kB / 0.6485 GB, free: 2.027 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008536/1.064, allocations: 6.754 MB / 0.6551 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/1.064, allocations: 0 / 0.6551 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008032/1.065, allocations: 175.9 kB / 0.6553 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004365/1.069, allocations: 1.379 MB / 0.6566 GB, free: 9.645 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/1.07, allocations: 31.98 kB / 0.6566 GB, free: 9.613 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003917/1.074, allocations: 4.474 MB / 0.661 GB, free: 5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/1.074, allocations: 0 / 0.661 GB, free: 5 MB / 0.4948 GB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5731/1.647, allocations: 115.9 MB / 0.7742 GB, free: 153.3 MB / 0.5105 GB Error: post-optimization module symbolicJacobian (simulation) failed.