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.004748/0.004748, allocations: 108.9 kB / 15.74 MB, free: 6.449 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.001124/0.001125, allocations: 197 kB / 16.67 MB, free: 6.355 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002/0.002, allocations: 282.8 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9437/0.9437, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 91.86 kB / 0.6815 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1605, allocations: 86.98 MB / 0.7664 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water): time 0.3309/0.4914, allocations: 29.31 MB / 0.795 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01002/0.5015, allocations: 6.873 MB / 0.8018 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.5031, allocations: 50.91 kB / 0.8018 GB, free: 9.121 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.5048, allocations: 0.6946 MB / 0.8025 GB, free: 8.785 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003773/0.5086, allocations: 1.452 MB / 0.8039 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003067/0.5117, allocations: 1.152 MB / 0.805 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00323/0.515, allocations: 2.478 MB / 0.8074 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001264/0.5162, allocations: 0.8 MB / 0.8082 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002233/0.5185, allocations: 1.034 MB / 0.8092 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001256/0.5197, allocations: 0.8194 MB / 0.81 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001771/0.5199, allocations: 65.34 kB / 0.8101 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002261/0.5222, allocations: 0.8297 MB / 0.8109 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003197/0.5225, allocations: 269.9 kB / 0.8112 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005939/0.5231, allocations: 0.5496 MB / 0.8117 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002365/0.5255, allocations: 1.633 MB / 0.8133 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.5255, allocations: 5.922 kB / 0.8133 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5255, allocations: 0 / 0.8133 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.447e-05/0.5256, allocations: 3.938 kB / 0.8133 GB, free: 3.789 MB / 0.5762 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.002759/0.5283, allocations: 1.564 MB / 0.8148 GB, free: 2.727 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.5284, allocations: 8.5 kB / 0.8148 GB, free: 2.727 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00333/0.5317, allocations: 0.5895 MB / 0.8154 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.5332, allocations: 0.8682 MB / 0.8163 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.082e-05/0.5332, allocations: 61.84 kB / 0.8163 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.5334, allocations: 73.52 kB / 0.8164 GB, free: 2.051 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002543/0.5359, allocations: 1.093 MB / 0.8175 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.5359, allocations: 5.156 kB / 0.8175 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.182e-05/0.536, allocations: 33.27 kB / 0.8175 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.536, allocations: 18.73 kB / 0.8175 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.5391, allocations: 1.005 MB / 0.8185 GB, free: 1.238 MB / 0.5762 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.005604/0.5447, allocations: 4.946 MB / 0.8233 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002876/0.5476, allocations: 0.8941 MB / 0.8242 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.549, allocations: 491.3 kB / 0.8247 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001228/0.5502, allocations: 1.598 MB / 0.8262 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001626/0.5519, allocations: 0.5676 MB / 0.8268 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=61): time 3.166e-06/0.5519, allocations: 3.938 kB / 0.8268 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61): time 0.005179/0.5571, allocations: 1.491 MB / 0.8283 GB, free: 9.672 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.5572, allocations: 58.06 kB / 0.8283 GB, free: 9.609 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/0.559, allocations: 1.117 MB / 0.8294 GB, free: 9.031 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.876e-05/0.5591, allocations: 47.16 kB / 0.8294 GB, free: 8.984 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004635/0.5595, allocations: 0.5395 MB / 0.83 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.5597, allocations: 213 kB / 0.8302 GB, free: 8.324 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002856/0.56, allocations: 165.2 kB / 0.8303 GB, free: 8.227 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5602, allocations: 341 kB / 0.8307 GB, free: 7.895 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.5616, allocations: 448.2 kB / 0.8311 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/0.5634, allocations: 0.7098 MB / 0.8318 GB, free: 7.145 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/0.5665, allocations: 1.122 MB / 0.8329 GB, free: 6.402 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.276e-05/0.5665, allocations: 2.531 kB / 0.8329 GB, free: 6.402 MB / 0.5919 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003859/0.5703, allocations: 1.269 MB / 0.8341 GB, free: 5.781 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.5704, allocations: 8.375 kB / 0.8341 GB, free: 5.781 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.5704, allocations: 8.156 kB / 0.8341 GB, free: 5.781 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.936e-05/0.5704, allocations: 11.47 kB / 0.8341 GB, free: 5.781 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.5716, allocations: 273.2 kB / 0.8344 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-05/0.5717, allocations: 19.95 kB / 0.8344 GB, free: 5.688 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.573, allocations: 180.2 kB / 0.8346 GB, free: 5.59 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.5732, allocations: 49 kB / 0.8346 GB, free: 5.574 MB / 0.5919 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.0005757/0.5737, allocations: 286.9 kB / 0.8349 GB, free: 5.367 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003169/0.5741, allocations: 130.3 kB / 0.835 GB, free: 5.293 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003904/0.578, allocations: 1.356 MB / 0.8364 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.38e-05/0.578, allocations: 7.875 kB / 0.8364 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.578, allocations: 3.938 kB / 0.8364 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.578, allocations: 5.141 kB / 0.8364 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005309/0.5834, allocations: 2.367 MB / 0.8387 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.5834, allocations: 5.125 kB / 0.8387 GB, free: 3.051 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009987/0.5844, allocations: 194.3 kB / 0.8389 GB, free: 2.98 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.24e-05/0.5844, allocations: 4.438 kB / 0.8389 GB, free: 2.98 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.897e-05/0.5845, allocations: 24.84 kB / 0.8389 GB, free: 2.965 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.5845, allocations: 4.656 kB / 0.8389 GB, free: 2.965 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.5845, allocations: 7.453 kB / 0.8389 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005202/0.5897, allocations: 1.972 MB / 0.8408 GB, free: 1.883 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000545/0.5903, allocations: 281.7 kB / 0.8411 GB, free: 1.637 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/0.5905, allocations: 13.78 kB / 0.8411 GB, free: 1.629 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.5916, allocations: 104.9 kB / 0.8412 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.5917, allocations: 51.81 kB / 0.8413 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/0.5918, allocations: 34.5 kB / 0.8413 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001104/0.5929, allocations: 0.7713 MB / 0.8421 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.543e-06/0.5929, allocations: 0 / 0.8421 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001319/0.5942, allocations: 339.4 kB / 0.8424 GB, free: 1.055 MB / 0.5919 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.001625/0.5959, allocations: 0.6621 MB / 0.843 GB, free: 0.7344 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003418/0.5993, allocations: 1.12 MB / 0.8441 GB, free: 236 kB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5993, allocations: 0 / 0.8441 GB, free: 236 kB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001687/0.601, allocations: 0.572 MB / 0.8447 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.6032, allocations: 460.9 kB / 0.8451 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005016/0.6083, allocations: 2.324 MB / 0.8474 GB, free: 14.37 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007514/0.609, allocations: 1.111 MB / 0.8485 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0009492/0.61, allocations: 240.5 kB / 0.8487 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003441/0.6103, allocations: 106.8 kB / 0.8488 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of SimCode: time 6.72e-07/0.6103, allocations: 1.344 kB / 0.8488 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of Templates: time 0.03673/0.6471, allocations: 20.37 MB / 0.8687 GB, free: 9.629 MB / 0.6231 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)