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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.001439/0.001439, allocations: 102.1 kB / 16.35 MB, free: 5.875 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.001676/0.001676, allocations: 199.2 kB / 17.3 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7908/0.7908, allocations: 132.2 MB / 423.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.91 kB / 0.5032 GB, free: 10.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3828, allocations: 80.18 MB / 0.5815 GB, free: 27.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02174/0.4045, allocations: 29.35 MB / 0.6101 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009763/0.4143, allocations: 6.87 MB / 0.6169 GB, free: 9.953 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.4156, allocations: 47.69 kB / 0.6169 GB, free: 9.906 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.4172, allocations: 0.6914 MB / 0.6176 GB, free: 9.211 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00354/0.4208, allocations: 1.453 MB / 0.619 GB, free: 7.754 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002821/0.4237, allocations: 1.16 MB / 0.6201 GB, free: 6.602 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003026/0.4267, allocations: 2.473 MB / 0.6225 GB, free: 4.121 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.428, allocations: 0.7961 MB / 0.6233 GB, free: 3.309 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002059/0.43, allocations: 1.012 MB / 0.6243 GB, free: 2.293 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.4312, allocations: 0.8092 MB / 0.6251 GB, free: 1.48 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.4314, allocations: 68 kB / 0.6252 GB, free: 1.414 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002176/0.4335, allocations: 0.8187 MB / 0.626 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002986/0.4339, allocations: 278.9 kB / 0.6262 GB, free: 328 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006182/0.4345, allocations: 0.5477 MB / 0.6268 GB, free: 15.77 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002154/0.4366, allocations: 1.631 MB / 0.6284 GB, free: 14.14 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4367, allocations: 0 / 0.6284 GB, free: 14.14 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4367, allocations: 0 / 0.6284 GB, free: 14.14 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.4367, allocations: 4 kB / 0.6284 GB, free: 14.13 MB / 478.1 MB 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.002536/0.4392, allocations: 1.57 MB / 0.6299 GB, free: 12.51 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.4393, allocations: 11.97 kB / 0.6299 GB, free: 12.5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003283/0.4426, allocations: 0.5924 MB / 0.6305 GB, free: 11.9 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/0.444, allocations: 0.8755 MB / 0.6313 GB, free: 10.97 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.875e-05/0.4441, allocations: 58 kB / 0.6314 GB, free: 10.91 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.4442, allocations: 71.98 kB / 0.6315 GB, free: 10.84 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002203/0.4464, allocations: 1.096 MB / 0.6325 GB, free: 9.672 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.4464, allocations: 11.98 kB / 0.6325 GB, free: 9.66 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.982e-05/0.4465, allocations: 28 kB / 0.6326 GB, free: 9.633 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.4465, allocations: 16 kB / 0.6326 GB, free: 9.617 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002814/0.4493, allocations: 1.008 MB / 0.6336 GB, free: 8.609 MB / 478.1 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.005549/0.4549, allocations: 4.924 MB / 0.6384 GB, free: 3.398 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002736/0.4577, allocations: 0.9002 MB / 0.6393 GB, free: 2.488 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.459, allocations: 0.4906 MB / 0.6397 GB, free: 1.996 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001331/0.4603, allocations: 1.587 MB / 0.6413 GB, free: 60 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00159/0.462, allocations: 0.5728 MB / 0.6418 GB, free: 15.47 MB / 494.1 MB Notification: Performance of pre-optimization done (n=61): time 2.665e-06/0.462, allocations: 0 / 0.6418 GB, free: 15.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=61): time 0.004408/0.4664, allocations: 1.485 MB / 0.6433 GB, free: 13.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.4664, allocations: 59.97 kB / 0.6434 GB, free: 13.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.4677, allocations: 1.116 MB / 0.6444 GB, free: 12.78 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.949e-05/0.4678, allocations: 45.69 kB / 0.6445 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004006/0.4682, allocations: 0.5434 MB / 0.645 GB, free: 12.18 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.4683, allocations: 209.1 kB / 0.6452 GB, free: 11.97 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/0.4686, allocations: 166.5 kB / 0.6454 GB, free: 11.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.4687, allocations: 337.9 kB / 0.6457 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.4701, allocations: 445.6 kB / 0.6461 GB, free: 11.03 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/0.4717, allocations: 0.7203 MB / 0.6468 GB, free: 10.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002831/0.4745, allocations: 1.12 MB / 0.6479 GB, free: 8.973 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.4745, allocations: 7.938 kB / 0.6479 GB, free: 8.965 MB / 494.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003462/0.478, allocations: 1.267 MB / 0.6492 GB, free: 7.688 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.478, allocations: 8 kB / 0.6492 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.4781, allocations: 8 kB / 0.6492 GB, free: 7.672 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.4781, allocations: 12 kB / 0.6492 GB, free: 7.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.4793, allocations: 271.8 kB / 0.6494 GB, free: 7.395 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.042e-05/0.4793, allocations: 23.92 kB / 0.6495 GB, free: 7.371 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.4804, allocations: 174.9 kB / 0.6496 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.766e-05/0.4805, allocations: 51.97 kB / 0.6497 GB, free: 7.148 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.setHeaHigPow.nextTimeEvent,$whenCondition3,$PRE.setCooLimPow.nextTimeEvent,$whenCondition2,$PRE.setHeaCooUnl.nextTimeEvent,$whenCondition1,setHeaCooUnl.nextTimeEventScaled,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEventScaled,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004231/0.481, allocations: 291.7 kB / 0.65 GB, free: 6.855 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.4811, allocations: 118.6 kB / 0.6501 GB, free: 6.738 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/0.4849, allocations: 1.361 MB / 0.6514 GB, free: 5.379 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.4849, allocations: 11.94 kB / 0.6514 GB, free: 5.367 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4849, allocations: 0 / 0.6514 GB, free: 5.367 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.4849, allocations: 3.984 kB / 0.6514 GB, free: 5.363 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/0.4898, allocations: 2.37 MB / 0.6537 GB, free: 2.922 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.4898, allocations: 8.188 kB / 0.6537 GB, free: 2.914 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009885/0.4908, allocations: 183.7 kB / 0.6539 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/0.4908, allocations: 4 kB / 0.6539 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-05/0.4909, allocations: 27.97 kB / 0.654 GB, free: 2.703 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.044e-05/0.4909, allocations: 15.88 kB / 0.654 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4909, allocations: 3.984 kB / 0.654 GB, free: 2.684 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004811/0.4957, allocations: 1.973 MB / 0.6559 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004444/0.4962, allocations: 283.3 kB / 0.6562 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.4964, allocations: 12 kB / 0.6562 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00088/0.4972, allocations: 111.8 kB / 0.6563 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.4974, allocations: 44.5 kB / 0.6563 GB, free: 220 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.453e-05/0.4974, allocations: 39.97 kB / 0.6564 GB, free: 180 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008721/0.4983, allocations: 0.7677 MB / 0.6571 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4983, allocations: 0 / 0.6571 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001008/0.4993, allocations: 339.6 kB / 0.6574 GB, free: 15.07 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001411/0.5008, allocations: 0.6661 MB / 0.6581 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003087/0.5039, allocations: 1.107 MB / 0.6592 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5039, allocations: 0 / 0.6592 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.5054, allocations: 0.5775 MB / 0.6597 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001783/0.5072, allocations: 456.6 kB / 0.6602 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004324/0.5115, allocations: 2.338 MB / 0.6625 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006192/0.5122, allocations: 1.104 MB / 0.6635 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0007777/0.5129, allocations: 251.7 kB / 0.6638 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/0.5133, allocations: 107.4 kB / 0.6639 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of SimCode: time 7.01e-07/0.5133, allocations: 0 / 0.6639 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of Templates: time 0.03188/0.5451, allocations: 19.86 MB / 0.6833 GB, free: 5.035 MB / 0.5137 GB make -j1 -f IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (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 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)