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.001635/0.001635, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.001374/0.001374, allocations: 191 kB / 16.25 MB, free: 6.586 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.418/1.418, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00269/0.00269, allocations: 290.8 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.066/1.066, allocations: 178.6 MB / 0.507 GB, free: 4.738 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002795/0.002795, allocations: 101.4 kB / 0.6059 GB, free: 25.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.183, allocations: 89.14 MB / 0.693 GB, free: 4.699 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.03202/0.2151, allocations: 29.11 MB / 0.7214 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01119/0.2263, allocations: 6.847 MB / 0.7281 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.2281, allocations: 47.62 kB / 0.7281 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.23, allocations: 0.6105 MB / 0.7287 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00418/0.2342, allocations: 1.361 MB / 0.7301 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003349/0.2375, allocations: 1.054 MB / 0.7311 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.003988/0.2415, allocations: 2.492 MB / 0.7335 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001284/0.2428, allocations: 0.8022 MB / 0.7343 GB, free: 10.24 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002184/0.245, allocations: 1.035 MB / 0.7353 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001184/0.2462, allocations: 0.8441 MB / 0.7361 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.2464, allocations: 68 kB / 0.7362 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002094/0.2485, allocations: 0.8303 MB / 0.737 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003496/0.2488, allocations: 282.9 kB / 0.7373 GB, free: 7.176 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0007274/0.2496, allocations: 0.5553 MB / 0.7378 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002703/0.2523, allocations: 1.593 MB / 0.7394 GB, free: 5.02 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.2523, allocations: 4 kB / 0.7394 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.888e-06/0.2523, allocations: 0 / 0.7394 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.745e-05/0.2523, allocations: 3.938 kB / 0.7394 GB, free: 5.012 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.002903/0.2552, allocations: 1.559 MB / 0.7409 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.2553, allocations: 11.97 kB / 0.7409 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003571/0.2589, allocations: 0.5923 MB / 0.7415 GB, free: 2.793 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.2602, allocations: 0.8017 MB / 0.7423 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.021e-05/0.2602, allocations: 62.36 kB / 0.7423 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.2604, allocations: 75.94 kB / 0.7424 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002576/0.263, allocations: 1.096 MB / 0.7435 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.263, allocations: 7.938 kB / 0.7435 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.038e-05/0.2631, allocations: 32 kB / 0.7435 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.2631, allocations: 16 kB / 0.7435 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003149/0.2663, allocations: 0.9924 MB / 0.7445 GB, free: 15.57 MB / 0.545 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.006186/0.2725, allocations: 4.943 MB / 0.7493 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003015/0.2755, allocations: 0.9028 MB / 0.7502 GB, free: 9.434 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/0.277, allocations: 487.1 kB / 0.7507 GB, free: 8.957 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00158/0.2786, allocations: 1.591 MB / 0.7522 GB, free: 7.016 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001717/0.2803, allocations: 0.5766 MB / 0.7528 GB, free: 6.426 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 2.916e-06/0.2804, allocations: 4 kB / 0.7528 GB, free: 6.422 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.005039/0.2854, allocations: 1.477 MB / 0.7542 GB, free: 4.941 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.2855, allocations: 59.97 kB / 0.7543 GB, free: 4.871 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001705/0.2872, allocations: 1.12 MB / 0.7554 GB, free: 3.738 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 9.526e-05/0.2873, allocations: 41.7 kB / 0.7554 GB, free: 3.691 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005864/0.2879, allocations: 0.5473 MB / 0.756 GB, free: 3.137 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002496/0.2881, allocations: 209 kB / 0.7562 GB, free: 2.93 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003472/0.2885, allocations: 166.5 kB / 0.7563 GB, free: 2.762 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002004/0.2887, allocations: 337.9 kB / 0.7567 GB, free: 2.426 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.2903, allocations: 453.6 kB / 0.7571 GB, free: 1.984 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.2921, allocations: 0.7211 MB / 0.7578 GB, free: 1.156 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3067/0.5988, allocations: 1.105 MB / 0.7589 GB, free: 68.07 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.621e-05/0.5988, allocations: 2.594 kB / 0.7589 GB, free: 68.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00465/0.6035, allocations: 1.275 MB / 0.7601 GB, free: 68.01 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.574e-05/0.6036, allocations: 9.703 kB / 0.7601 GB, free: 68.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/0.6036, allocations: 7.188 kB / 0.7601 GB, free: 68.01 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.753e-05/0.6036, allocations: 12.91 kB / 0.7601 GB, free: 68.01 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001454/0.6051, allocations: 271.4 kB / 0.7604 GB, free: 68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.34e-05/0.6051, allocations: 16.89 kB / 0.7604 GB, free: 68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.6067, allocations: 195.3 kB / 0.7606 GB, free: 68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.6069, allocations: 46.45 kB / 0.7606 GB, free: 68 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.0006393/0.6075, allocations: 296.2 kB / 0.7609 GB, free: 67.87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002562/0.6078, allocations: 122.1 kB / 0.761 GB, free: 67.87 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004161/0.6119, allocations: 1.365 MB / 0.7624 GB, free: 67.58 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-05/0.612, allocations: 13.14 kB / 0.7624 GB, free: 67.57 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.612, allocations: 1.328 kB / 0.7624 GB, free: 67.57 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.612, allocations: 3.281 kB / 0.7624 GB, free: 67.57 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005014/0.617, allocations: 2.363 MB / 0.7647 GB, free: 66.63 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/0.6171, allocations: 1.938 kB / 0.7647 GB, free: 66.63 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.6181, allocations: 190.4 kB / 0.7649 GB, free: 66.62 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.6181, allocations: 14.14 kB / 0.7649 GB, free: 66.62 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.357e-05/0.6182, allocations: 24.2 kB / 0.7649 GB, free: 66.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.737e-06/0.6182, allocations: 4 kB / 0.7649 GB, free: 66.61 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6182, allocations: 1.969 kB / 0.7649 GB, free: 66.61 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004922/0.6232, allocations: 1.977 MB / 0.7669 GB, free: 65.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004815/0.6237, allocations: 280.7 kB / 0.7671 GB, free: 65.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.6238, allocations: 18.53 kB / 0.7671 GB, free: 65.69 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000953/0.6248, allocations: 124.2 kB / 0.7673 GB, free: 65.68 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.6249, allocations: 49.52 kB / 0.7673 GB, free: 65.67 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.092e-05/0.625, allocations: 32.59 kB / 0.7673 GB, free: 65.67 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009402/0.626, allocations: 0.7654 MB / 0.7681 GB, free: 65.38 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.626, allocations: 0 / 0.7681 GB, free: 65.38 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001181/0.6272, allocations: 345.4 kB / 0.7684 GB, free: 65.34 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.002086/0.6292, allocations: 0.6675 MB / 0.7691 GB, free: 65.15 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003812/0.6331, allocations: 1.177 MB / 0.7702 GB, free: 64.85 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.6331, allocations: 0.9688 kB / 0.7702 GB, free: 64.85 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.6347, allocations: 0.5783 MB / 0.7708 GB, free: 64.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/0.6369, allocations: 460.2 kB / 0.7712 GB, free: 64.55 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/0.6415, allocations: 2.73 MB / 0.7739 GB, free: 63.07 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005752/0.6421, allocations: 1.108 MB / 0.775 GB, free: 62.34 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001109/0.6432, allocations: 246.8 kB / 0.7752 GB, free: 62.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.6436, allocations: 111.3 kB / 0.7753 GB, free: 62.25 MB / 0.545 GB Notification: Performance of SimCode: time 6.21e-07/0.6436, allocations: 0 / 0.7753 GB, free: 62.25 MB / 0.545 GB Notification: Performance of Templates: time 0.03532/0.6789, allocations: 19.74 MB / 0.7946 GB, free: 54.39 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)