Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008162/0.0008162, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008395/0.0008396, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8642/0.8642, allocations: 135.2 MB / 426.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003176/0.0003178, allocations: 16 kB / 0.5068 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1623, allocations: 82.3 MB / 0.5872 GB, free: 3.105 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.2748/0.4371, allocations: 24.55 MB / 0.6112 GB, free: 35.28 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006781/0.4439, allocations: 5.956 MB / 0.617 GB, free: 35.18 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000684/0.4446, allocations: 39.53 kB / 0.617 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.4458, allocations: 0.6421 MB / 0.6176 GB, free: 35.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00219/0.448, allocations: 1.203 MB / 0.6188 GB, free: 34.99 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002552/0.4506, allocations: 1.311 MB / 0.6201 GB, free: 34.95 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001653/0.4522, allocations: 1.573 MB / 0.6216 GB, free: 34.86 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000694/0.4529, allocations: 0.6726 MB / 0.6223 GB, free: 34.7 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009871/0.4539, allocations: 0.8322 MB / 0.6231 GB, free: 34.37 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004975/0.4544, allocations: 0.5643 MB / 0.6237 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.508e-05/0.4545, allocations: 35.78 kB / 0.6237 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001145/0.4557, allocations: 0.5326 MB / 0.6242 GB, free: 34.05 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.4558, allocations: 234.2 kB / 0.6244 GB, free: 33.96 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.456, allocations: 231.1 kB / 0.6247 GB, free: 33.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008231/0.4568, allocations: 1.02 MB / 0.6256 GB, free: 33.62 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.4568, allocations: 0 / 0.6256 GB, free: 33.62 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.253e-06/0.4568, allocations: 0 / 0.6256 GB, free: 33.62 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.251e-05/0.4569, allocations: 0 / 0.6256 GB, free: 33.62 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.001848/0.4587, allocations: 1.363 MB / 0.627 GB, free: 32.7 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.4588, allocations: 8.625 kB / 0.627 GB, free: 32.7 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00307/0.4618, allocations: 0.6332 MB / 0.6276 GB, free: 32.6 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009868/0.4628, allocations: 0.7722 MB / 0.6284 GB, free: 32.15 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.111e-05/0.4629, allocations: 54.34 kB / 0.6284 GB, free: 32.12 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.995e-05/0.463, allocations: 75.81 kB / 0.6285 GB, free: 32.1 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.4649, allocations: 1.099 MB / 0.6296 GB, free: 31.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.4649, allocations: 14.69 kB / 0.6296 GB, free: 31.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.709e-05/0.465, allocations: 28.44 kB / 0.6296 GB, free: 31.55 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.465, allocations: 18.56 kB / 0.6296 GB, free: 31.55 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002537/0.4675, allocations: 1.018 MB / 0.6306 GB, free: 31.3 MB / 0.4981 GB 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.004099/0.4717, allocations: 4.978 MB / 0.6355 GB, free: 27.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002481/0.4741, allocations: 0.9527 MB / 0.6364 GB, free: 27.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009793/0.4751, allocations: 1.594 MB / 0.638 GB, free: 25.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001393/0.4765, allocations: 0.5839 MB / 0.6385 GB, free: 25.25 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=61): time 2.464e-06/0.4766, allocations: 4 kB / 0.6385 GB, free: 25.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=61): time 0.004008/0.4806, allocations: 1.512 MB / 0.64 GB, free: 24.83 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.4806, allocations: 57.28 kB / 0.6401 GB, free: 24.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.4817, allocations: 1.113 MB / 0.6412 GB, free: 24.35 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.139e-05/0.4817, allocations: 38.95 kB / 0.6412 GB, free: 24.31 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003242/0.4821, allocations: 0.545 MB / 0.6417 GB, free: 23.88 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.4822, allocations: 209 kB / 0.6419 GB, free: 23.72 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.241e-05/0.4823, allocations: 18.62 kB / 0.6419 GB, free: 23.7 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.274e-05/0.4823, allocations: 335.7 kB / 0.6423 GB, free: 23.39 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.4836, allocations: 456.8 kB / 0.6427 GB, free: 23.28 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.4849, allocations: 0.7203 MB / 0.6434 GB, free: 22.85 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.4862, allocations: 0.4913 MB / 0.6439 GB, free: 22.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.4862, allocations: 2.719 kB / 0.6439 GB, free: 22.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002927/0.4892, allocations: 1.286 MB / 0.6451 GB, free: 22.29 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.4892, allocations: 8.938 kB / 0.6451 GB, free: 22.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.4892, allocations: 8.062 kB / 0.6452 GB, free: 22.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.4892, allocations: 18.44 kB / 0.6452 GB, free: 22.28 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.4903, allocations: 272.5 kB / 0.6454 GB, free: 22.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.005e-05/0.4903, allocations: 16.41 kB / 0.6454 GB, free: 22.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.4914, allocations: 205.8 kB / 0.6456 GB, free: 22.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.4915, allocations: 46.31 kB / 0.6457 GB, free: 22.18 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003669/0.4919, allocations: 300.2 kB / 0.646 GB, free: 21.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.492, allocations: 122.6 kB / 0.6461 GB, free: 21.91 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003471/0.4955, allocations: 1.38 MB / 0.6474 GB, free: 21.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.4955, allocations: 10.88 kB / 0.6474 GB, free: 21.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4956, allocations: 0 / 0.6474 GB, free: 21.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4956, allocations: 4.266 kB / 0.6475 GB, free: 21.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004435/0.5, allocations: 2.387 MB / 0.6498 GB, free: 20.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.5, allocations: 1.469 kB / 0.6498 GB, free: 20.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.501, allocations: 192.6 kB / 0.65 GB, free: 20.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.5011, allocations: 5.531 kB / 0.65 GB, free: 20.49 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.367e-05/0.5011, allocations: 41.09 kB / 0.65 GB, free: 20.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.5011, allocations: 4.578 kB / 0.65 GB, free: 20.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5011, allocations: 2.797 kB / 0.65 GB, free: 20.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004844/0.506, allocations: 2.076 MB / 0.652 GB, free: 19.61 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004513/0.5065, allocations: 284.5 kB / 0.6523 GB, free: 19.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.5066, allocations: 22.98 kB / 0.6523 GB, free: 19.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009568/0.5076, allocations: 128 kB / 0.6525 GB, free: 19.37 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.5077, allocations: 46.47 kB / 0.6525 GB, free: 19.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.646e-05/0.5078, allocations: 37.47 kB / 0.6525 GB, free: 19.36 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009064/0.5087, allocations: 0.7552 MB / 0.6533 GB, free: 19.07 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.81e-07/0.5087, allocations: 4 kB / 0.6533 GB, free: 19.07 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001034/0.5097, allocations: 343.7 kB / 0.6536 GB, free: 18.99 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001224/0.511, allocations: 0.6433 MB / 0.6542 GB, free: 18.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003169/0.5141, allocations: 1.129 MB / 0.6553 GB, free: 18.45 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.5142, allocations: 3.938 kB / 0.6553 GB, free: 18.45 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001546/0.5157, allocations: 0.5828 MB / 0.6559 GB, free: 18.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.5176, allocations: 432 kB / 0.6563 GB, free: 18.18 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004762/0.5224, allocations: 2.69 MB / 0.659 GB, free: 16.77 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006519/0.5231, allocations: 1.128 MB / 0.6601 GB, free: 16.04 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001058/0.5241, allocations: 248.7 kB / 0.6603 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002745/0.5244, allocations: 106.2 kB / 0.6604 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of SimCode: time 7.01e-07/0.5244, allocations: 1.375 kB / 0.6604 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of Templates: time 0.03046/0.5549, allocations: 18.42 MB / 0.6784 GB, free: 10.39 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile Environment - environmentSimulation: (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1) Environment - environmentSimulation: