Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water") translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001337/0.001337, allocations: 102.7 kB / 16.35 MB, free: 6.285 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.001161/0.001161, allocations: 196.2 kB / 17.29 MB, free: 5.863 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.295/1.295, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00209/0.00209, allocations: 289.1 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9245/0.9245, allocations: 169.3 MB / 0.4989 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 98.3 kB / 0.5967 GB, free: 14.42 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1575, allocations: 86.97 MB / 0.6816 GB, free: 7.438 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.2682/0.4257, allocations: 29.32 MB / 0.7102 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.4363, allocations: 6.869 MB / 0.7169 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.4378, allocations: 50.97 kB / 0.717 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.4395, allocations: 0.691 MB / 0.7177 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004185/0.4437, allocations: 1.454 MB / 0.7191 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003501/0.4472, allocations: 1.157 MB / 0.7202 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00435/0.4516, allocations: 2.47 MB / 0.7226 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/0.4531, allocations: 0.7988 MB / 0.7234 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002728/0.4559, allocations: 1.013 MB / 0.7244 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/0.4577, allocations: 0.8153 MB / 0.7252 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001748/0.4579, allocations: 66.25 kB / 0.7252 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002347/0.4602, allocations: 0.8202 MB / 0.726 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003296/0.4606, allocations: 275.8 kB / 0.7263 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007404/0.4613, allocations: 0.5485 MB / 0.7268 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003103/0.4644, allocations: 1.632 MB / 0.7284 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.4644, allocations: 1.594 kB / 0.7284 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.794e-06/0.4644, allocations: 0 / 0.7284 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.82e-05/0.4645, allocations: 4 kB / 0.7284 GB, free: 6.406 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.002892/0.4674, allocations: 1.563 MB / 0.73 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.4674, allocations: 9.438 kB / 0.73 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003577/0.471, allocations: 0.5906 MB / 0.7306 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.4727, allocations: 0.8713 MB / 0.7314 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.554e-05/0.4728, allocations: 57.72 kB / 0.7315 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.4729, allocations: 72.81 kB / 0.7315 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002456/0.4754, allocations: 1.111 MB / 0.7326 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.4754, allocations: 1.844 kB / 0.7326 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.878e-05/0.4755, allocations: 28.16 kB / 0.7326 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.4755, allocations: 18.12 kB / 0.7327 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003087/0.4786, allocations: 1.008 MB / 0.7336 GB, free: 2.914 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.006245/0.4849, allocations: 4.94 MB / 0.7385 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002921/0.4878, allocations: 0.9082 MB / 0.7394 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.4892, allocations: 491.3 kB / 0.7398 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001323/0.4906, allocations: 1.589 MB / 0.7414 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001644/0.4922, allocations: 0.5659 MB / 0.7419 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 3.116e-06/0.4923, allocations: 0 / 0.7419 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.004768/0.497, allocations: 1.491 MB / 0.7434 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.4971, allocations: 57.53 kB / 0.7434 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.4985, allocations: 1.113 MB / 0.7445 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.273e-05/0.4986, allocations: 42.89 kB / 0.7446 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004141/0.499, allocations: 0.5517 MB / 0.7451 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.4992, allocations: 209.3 kB / 0.7453 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002662/0.4994, allocations: 168.5 kB / 0.7455 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.4996, allocations: 332.8 kB / 0.7458 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.501, allocations: 456.2 kB / 0.7462 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.5026, allocations: 0.7112 MB / 0.7469 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/0.5055, allocations: 1.124 MB / 0.748 GB, free: 7.641 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.5055, allocations: 6.219 kB / 0.748 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003526/0.509, allocations: 1.264 MB / 0.7493 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.5091, allocations: 6.75 kB / 0.7493 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.5091, allocations: 7.594 kB / 0.7493 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.5091, allocations: 12.12 kB / 0.7493 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.5103, allocations: 273.2 kB / 0.7495 GB, free: 6.934 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.848e-05/0.5103, allocations: 16.19 kB / 0.7496 GB, free: 6.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.5116, allocations: 191.1 kB / 0.7497 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.913e-05/0.5117, allocations: 48.12 kB / 0.7498 GB, free: 6.805 MB / 0.5137 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 ($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.0004789/0.5122, allocations: 286.4 kB / 0.7501 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.5124, allocations: 117.8 kB / 0.7502 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00375/0.5162, allocations: 1.361 MB / 0.7515 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/0.5162, allocations: 10.58 kB / 0.7515 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.5163, allocations: 1.125 kB / 0.7515 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.5163, allocations: 3.984 kB / 0.7515 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005133/0.5214, allocations: 2.381 MB / 0.7538 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.5214, allocations: 0 / 0.7538 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.5225, allocations: 187.9 kB / 0.754 GB, free: 3.559 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.5225, allocations: 4 kB / 0.754 GB, free: 3.555 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-05/0.5226, allocations: 27.97 kB / 0.754 GB, free: 3.527 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.277e-06/0.5226, allocations: 4.875 kB / 0.7541 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.5226, allocations: 7.938 kB / 0.7541 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005001/0.5276, allocations: 1.973 MB / 0.756 GB, free: 1.508 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005449/0.5281, allocations: 279.4 kB / 0.7563 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.5283, allocations: 19.98 kB / 0.7563 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009522/0.5293, allocations: 103.9 kB / 0.7564 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.5294, allocations: 56.38 kB / 0.7564 GB, free: 1.039 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.149e-05/0.5295, allocations: 35.97 kB / 0.7565 GB, free: 1.004 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001074/0.5306, allocations: 0.7716 MB / 0.7572 GB, free: 232 kB / 0.5137 GB Notification: Performance of sort global known variables: time 3.41e-07/0.5306, allocations: 0 / 0.7572 GB, free: 232 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001221/0.5318, allocations: 343.6 kB / 0.7575 GB, free: 15.89 MB / 0.5294 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.001534/0.5334, allocations: 0.6598 MB / 0.7582 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003269/0.5366, allocations: 1.114 MB / 0.7593 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5366, allocations: 0 / 0.7593 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.5382, allocations: 0.5736 MB / 0.7598 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/0.5401, allocations: 457.5 kB / 0.7603 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00453/0.5447, allocations: 2.338 MB / 0.7626 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000591/0.5453, allocations: 1.108 MB / 0.7636 GB, free: 9.754 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0008288/0.5461, allocations: 240.1 kB / 0.7639 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002961/0.5464, allocations: 111.4 kB / 0.764 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of SimCode: time 1.643e-06/0.5464, allocations: 0 / 0.764 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of Templates: time 0.03199/0.5784, allocations: 19.88 MB / 0.7834 GB, free: 5.848 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)