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.000974/0.000974, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006086/0.006086, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.41/1.41, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001703/0.001703, allocations: 281.4 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9479/0.9479, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004114/0.0004115, allocations: 13.91 kB / 0.5986 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1621, allocations: 88.54 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.02821/0.1904, allocations: 28.43 MB / 0.7129 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01085/0.2013, allocations: 6.832 MB / 0.7196 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.2027, allocations: 39.69 kB / 0.7196 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001634/0.2044, allocations: 0.5988 MB / 0.7202 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003897/0.2083, allocations: 1.338 MB / 0.7215 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002799/0.2111, allocations: 1.049 MB / 0.7225 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003529/0.2146, allocations: 3.222 MB / 0.7257 GB, free: 5.477 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.2157, allocations: 0.714 MB / 0.7264 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001519/0.2172, allocations: 0.9178 MB / 0.7272 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009512/0.2182, allocations: 0.8168 MB / 0.728 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.799e-05/0.2183, allocations: 36 kB / 0.7281 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.2198, allocations: 0.7561 MB / 0.7288 GB, free: 2.215 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002403/0.2201, allocations: 254.9 kB / 0.7291 GB, free: 1.965 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004819/0.2206, allocations: 0.553 MB / 0.7296 GB, free: 1.402 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00165/0.2222, allocations: 1.545 MB / 0.7311 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2222, allocations: 4 kB / 0.7311 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2222, allocations: 0 / 0.7311 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.2223, allocations: 0 / 0.7311 GB, free: 15.85 MB / 0.5294 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.002273/0.2245, allocations: 1.358 MB / 0.7324 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2246, allocations: 8.031 kB / 0.7324 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003518/0.2281, allocations: 0.6314 MB / 0.7331 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.2293, allocations: 0.8133 MB / 0.7339 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.251e-05/0.2293, allocations: 58.36 kB / 0.7339 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.2295, allocations: 79.92 kB / 0.734 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.2319, allocations: 1.111 MB / 0.7351 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.2319, allocations: 3.938 kB / 0.7351 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.982e-05/0.232, allocations: 32 kB / 0.7351 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.232, allocations: 20 kB / 0.7351 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003114/0.2351, allocations: 1.024 MB / 0.7361 GB, free: 10.53 MB / 0.5294 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.00534/0.2405, allocations: 4.974 MB / 0.741 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002979/0.2435, allocations: 0.9465 MB / 0.7419 GB, free: 4.309 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.245, allocations: 0.4972 MB / 0.7424 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001364/0.2463, allocations: 1.603 MB / 0.744 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00168/0.248, allocations: 0.5846 MB / 0.7445 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 2.484e-06/0.248, allocations: 0 / 0.7445 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.004723/0.2528, allocations: 1.516 MB / 0.746 GB, free: 15.73 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.2528, allocations: 67.91 kB / 0.7461 GB, free: 15.66 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.2541, allocations: 1.116 MB / 0.7472 GB, free: 14.53 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.938e-05/0.2542, allocations: 37.7 kB / 0.7472 GB, free: 14.48 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004308/0.2546, allocations: 0.5434 MB / 0.7477 GB, free: 13.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.2548, allocations: 213 kB / 0.7479 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.985e-05/0.2549, allocations: 65.67 kB / 0.748 GB, free: 13.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.255, allocations: 334 kB / 0.7483 GB, free: 13.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/0.2565, allocations: 465.6 kB / 0.7488 GB, free: 12.87 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.2581, allocations: 0.7245 MB / 0.7495 GB, free: 12.03 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/0.2611, allocations: 1.144 MB / 0.7506 GB, free: 10.78 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.2611, allocations: 0 / 0.7506 GB, free: 10.78 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003593/0.2647, allocations: 1.305 MB / 0.7519 GB, free: 9.469 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.2648, allocations: 8.938 kB / 0.7519 GB, free: 9.461 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.2648, allocations: 8 kB / 0.7519 GB, free: 9.453 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.2648, allocations: 12 kB / 0.7519 GB, free: 9.441 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.266, allocations: 279.6 kB / 0.7522 GB, free: 9.168 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/0.266, allocations: 19.92 kB / 0.7522 GB, free: 9.148 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.2672, allocations: 199 kB / 0.7524 GB, free: 8.953 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.2674, allocations: 51.97 kB / 0.7524 GB, free: 8.902 MB / 0.545 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.0004554/0.2678, allocations: 300.4 kB / 0.7527 GB, free: 8.602 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.268, allocations: 122.4 kB / 0.7528 GB, free: 8.48 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003793/0.2718, allocations: 1.379 MB / 0.7542 GB, free: 7.098 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/0.2718, allocations: 11.98 kB / 0.7542 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2718, allocations: 0 / 0.7542 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.2718, allocations: 3.984 kB / 0.7542 GB, free: 7.082 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004933/0.2768, allocations: 2.393 MB / 0.7565 GB, free: 4.613 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.2768, allocations: 3.984 kB / 0.7565 GB, free: 4.609 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009826/0.2778, allocations: 191.9 kB / 0.7567 GB, free: 4.422 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.2778, allocations: 4 kB / 0.7567 GB, free: 4.418 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.062e-05/0.2779, allocations: 27.97 kB / 0.7567 GB, free: 4.391 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2779, allocations: 4 kB / 0.7567 GB, free: 4.387 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2779, allocations: 4 kB / 0.7567 GB, free: 4.383 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004998/0.2829, allocations: 2.016 MB / 0.7587 GB, free: 2.328 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000392/0.2833, allocations: 279.4 kB / 0.759 GB, free: 2.035 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.2835, allocations: 16 kB / 0.759 GB, free: 2.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009792/0.2844, allocations: 131.8 kB / 0.7591 GB, free: 1.891 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.2846, allocations: 56.44 kB / 0.7592 GB, free: 1.836 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.121e-05/0.2847, allocations: 35.91 kB / 0.7592 GB, free: 1.801 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009593/0.2856, allocations: 0.7638 MB / 0.76 GB, free: 1.031 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2856, allocations: 3.938 kB / 0.76 GB, free: 1.027 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001078/0.2867, allocations: 339.6 kB / 0.7603 GB, free: 0.6953 MB / 0.545 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.001525/0.2882, allocations: 0.6621 MB / 0.7609 GB, free: 204 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003336/0.2916, allocations: 1.134 MB / 0.762 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2916, allocations: 3.938 kB / 0.762 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.2932, allocations: 0.5893 MB / 0.7626 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.2955, allocations: 426.2 kB / 0.763 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004906/0.3004, allocations: 2.811 MB / 0.7658 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006501/0.3011, allocations: 1.104 MB / 0.7668 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009837/0.3021, allocations: 247.5 kB / 0.7671 GB, free: 9.828 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002947/0.3024, allocations: 107.4 kB / 0.7672 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of SimCode: time 8.72e-07/0.3024, allocations: 0 / 0.7672 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of Templates: time 0.3333/0.6357, allocations: 18.94 MB / 0.7857 GB, free: 90.6 MB / 0.5606 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)