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.001185/0.001185, allocations: 106.1 kB / 15.99 MB, free: 6.359 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.001289/0.001289, allocations: 194.7 kB / 16.91 MB, free: 6.195 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.206/1.206, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001952/0.001952, allocations: 277.2 kB / 291 MB, free: 14.7 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8667/0.8667, allocations: 169.2 MB / 0.4985 GB, free: 4.715 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 97.72 kB / 0.5953 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.142, allocations: 86.98 MB / 0.6803 GB, free: 8.562 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.2669/0.4089, allocations: 29.1 MB / 0.7087 GB, free: 1.301 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.4202, allocations: 6.831 MB / 0.7154 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.4219, allocations: 51.72 kB / 0.7154 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00193/0.4239, allocations: 0.6078 MB / 0.716 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004376/0.4283, allocations: 1.355 MB / 0.7173 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003351/0.4316, allocations: 1.062 MB / 0.7184 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004178/0.4358, allocations: 2.487 MB / 0.7208 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0017/0.4375, allocations: 0.7968 MB / 0.7216 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002323/0.4399, allocations: 1.039 MB / 0.7226 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001515/0.4414, allocations: 0.8465 MB / 0.7234 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002608/0.4417, allocations: 66.31 kB / 0.7235 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002295/0.444, allocations: 0.8347 MB / 0.7243 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004477/0.4445, allocations: 285 kB / 0.7246 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.4455, allocations: 0.5491 MB / 0.7251 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002084/0.4476, allocations: 1.164 MB / 0.7262 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.4477, allocations: 0 / 0.7262 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.695e-06/0.4477, allocations: 3.859 kB / 0.7262 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.374e-05/0.4477, allocations: 0 / 0.7262 GB, free: 7.449 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.003618/0.4513, allocations: 1.565 MB / 0.7278 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4514, allocations: 17.66 kB / 0.7278 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003448/0.4549, allocations: 0.5903 MB / 0.7284 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.4564, allocations: 0.8067 MB / 0.7291 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.781e-05/0.4565, allocations: 56.56 kB / 0.7292 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.4567, allocations: 77.88 kB / 0.7293 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002517/0.4592, allocations: 1.103 MB / 0.7304 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.4592, allocations: 1.25 kB / 0.7304 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.333e-05/0.4593, allocations: 36.64 kB / 0.7304 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.4594, allocations: 18.22 kB / 0.7304 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002945/0.4623, allocations: 1.001 MB / 0.7314 GB, free: 4.406 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.006216/0.4686, allocations: 4.947 MB / 0.7362 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002802/0.4714, allocations: 0.9041 MB / 0.7371 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001383/0.4728, allocations: 493.4 kB / 0.7376 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001388/0.4742, allocations: 1.585 MB / 0.7391 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001629/0.4758, allocations: 0.5748 MB / 0.7397 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 3.847e-06/0.4758, allocations: 0 / 0.7397 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.004612/0.4805, allocations: 1.482 MB / 0.7411 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.4805, allocations: 65.91 kB / 0.7412 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/0.4822, allocations: 1.114 MB / 0.7423 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.152e-05/0.4823, allocations: 38.67 kB / 0.7423 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004624/0.4828, allocations: 0.5507 MB / 0.7429 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.483, allocations: 205.8 kB / 0.743 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.4832, allocations: 164 kB / 0.7432 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.4833, allocations: 337.5 kB / 0.7435 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.4847, allocations: 456.1 kB / 0.744 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/0.4863, allocations: 0.71 MB / 0.7447 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002912/0.4892, allocations: 1.125 MB / 0.7458 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.4892, allocations: 2.781 kB / 0.7458 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003605/0.4929, allocations: 1.266 MB / 0.747 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.4929, allocations: 9.844 kB / 0.747 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.4929, allocations: 11.94 kB / 0.747 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.71e-05/0.4929, allocations: 12.62 kB / 0.747 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.4941, allocations: 265.6 kB / 0.7473 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.347e-05/0.4941, allocations: 14.81 kB / 0.7473 GB, free: 8.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.4955, allocations: 204.2 kB / 0.7475 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.771e-05/0.4956, allocations: 44.62 kB / 0.7475 GB, free: 8.293 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.0004836/0.4961, allocations: 294.4 kB / 0.7478 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.4963, allocations: 122.1 kB / 0.7479 GB, free: 8.012 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/0.4998, allocations: 1.361 MB / 0.7493 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/0.4998, allocations: 16.25 kB / 0.7493 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.4998, allocations: 0.9375 kB / 0.7493 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.4999, allocations: 8.078 kB / 0.7493 GB, free: 7.285 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004676/0.5045, allocations: 2.364 MB / 0.7516 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.026e-06/0.5046, allocations: 4 kB / 0.7516 GB, free: 5.652 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009734/0.5055, allocations: 183.9 kB / 0.7518 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.5056, allocations: 4 kB / 0.7518 GB, free: 5.469 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-05/0.5056, allocations: 31.97 kB / 0.7518 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.135e-06/0.5056, allocations: 7.438 kB / 0.7518 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.5056, allocations: 3.938 kB / 0.7518 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004725/0.5104, allocations: 1.981 MB / 0.7537 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004625/0.5109, allocations: 275.3 kB / 0.754 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.511, allocations: 19.98 kB / 0.754 GB, free: 3.102 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009577/0.512, allocations: 123.8 kB / 0.7541 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5121, allocations: 56.38 kB / 0.7542 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.342e-05/0.5122, allocations: 35.97 kB / 0.7542 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008868/0.5131, allocations: 0.7638 MB / 0.755 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5131, allocations: 0 / 0.755 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001083/0.5142, allocations: 343.6 kB / 0.7553 GB, free: 1.785 MB / 0.5137 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.001404/0.5156, allocations: 0.6579 MB / 0.756 GB, free: 1.289 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003338/0.5189, allocations: 1.181 MB / 0.7571 GB, free: 112 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5189, allocations: 4 kB / 0.7571 GB, free: 108 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.5204, allocations: 0.5697 MB / 0.7577 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/0.5223, allocations: 456.7 kB / 0.7581 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.5271, allocations: 2.777 MB / 0.7608 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005786/0.5277, allocations: 1.104 MB / 0.7619 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004062/0.5281, allocations: 115.4 kB / 0.762 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of SimCode: time 4.71e-07/0.5281, allocations: 0 / 0.762 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of Templates: time 0.02478/0.5529, allocations: 19.03 MB / 0.7806 GB, free: 8.211 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)