Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001381, allocations: 104.5 kB / 16.36 MB, free: 6.305 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.001409/0.00141, allocations: 189.1 kB / 17.29 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.765/1.765, allocations: 292.3 MB / 0.5496 GB, free: 17.58 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 67.91 kB / 0.6729 GB, free: 5.844 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2264, allocations: 114.5 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004285/0.2308, allocations: 2.474 MB / 0.7872 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.327/0.5578, allocations: 1.471 MB / 0.7886 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002336/0.558, allocations: 4.75 kB / 0.7886 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0008816/0.559, allocations: 320.6 kB / 0.7889 GB, free: 46.5 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004007/0.5594, allocations: 224.2 kB / 0.7892 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004985/0.5599, allocations: 234 kB / 0.7894 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.5602, allocations: 385.2 kB / 0.7897 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.5604, allocations: 66.48 kB / 0.7898 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.5605, allocations: 168.4 kB / 0.79 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.5607, allocations: 162.3 kB / 0.7901 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.696e-05/0.5607, allocations: 19.38 kB / 0.7901 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.5609, allocations: 77.22 kB / 0.7902 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.858e-05/0.561, allocations: 130.7 kB / 0.7903 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.5612, allocations: 193.9 kB / 0.7905 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.5616, allocations: 0.4962 MB / 0.791 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.5616, allocations: 0 / 0.791 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5616, allocations: 0.5938 kB / 0.791 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.5616, allocations: 0 / 0.791 GB, free: 46.2 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0009793/0.5626, allocations: 0.8332 MB / 0.7918 GB, free: 45.57 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.5626, allocations: 10.22 kB / 0.7918 GB, free: 45.57 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.598e-05/0.5627, allocations: 60.78 kB / 0.7919 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.5631, allocations: 439.8 kB / 0.7923 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.5632, allocations: 10.81 kB / 0.7923 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.258e-05/0.5632, allocations: 11.81 kB / 0.7923 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.5634, allocations: 136.4 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.5635, allocations: 2.375 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.5635, allocations: 6.25 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.5635, allocations: 5.531 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.5637, allocations: 70.28 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.5644, allocations: 0.5653 MB / 0.7931 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002822/0.5646, allocations: 127.1 kB / 0.7932 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.631e-05/0.5647, allocations: 48.91 kB / 0.7933 GB, free: 44.9 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.5648, allocations: 3.25 kB / 0.7933 GB, free: 44.9 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/0.565, allocations: 115.5 kB / 0.7934 GB, free: 44.85 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=13): time 2.174e-06/0.565, allocations: 0 / 0.7934 GB, free: 44.85 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13): time 0.0004291/0.5654, allocations: 241.2 kB / 0.7936 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.5655, allocations: 77.11 kB / 0.7937 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005865/0.5661, allocations: 0.6861 MB / 0.7944 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.5661, allocations: 32.17 kB / 0.7944 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.5662, allocations: 262.6 kB / 0.7946 GB, free: 44.44 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.5663, allocations: 37.91 kB / 0.7947 GB, free: 44.42 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.212e-05/0.5664, allocations: 57.97 kB / 0.7947 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.176e-05/0.5665, allocations: 374 kB / 0.7951 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.5666, allocations: 66 kB / 0.7951 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.5667, allocations: 131.2 kB / 0.7953 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001986/0.5669, allocations: 135.2 kB / 0.7954 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.567, allocations: 3.938 kB / 0.7954 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000349/0.5673, allocations: 268.1 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.5673, allocations: 6.75 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.5673, allocations: 3.328 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.5674, allocations: 0 / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.5675, allocations: 33.98 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.5675, allocations: 3.5 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.5677, allocations: 24.86 kB / 0.7957 GB, free: 43.94 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.5677, allocations: 11.69 kB / 0.7957 GB, free: 43.94 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001556/0.5679, allocations: 208.8 kB / 0.7959 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.513e-05/0.5679, allocations: 62.62 kB / 0.796 GB, free: 43.79 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.021e-05/0.568, allocations: 58.38 kB / 0.7961 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.568, allocations: 3.953 kB / 0.7961 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.568, allocations: 0 / 0.7961 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.568, allocations: 0 / 0.7961 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002468/0.5683, allocations: 373.2 kB / 0.7964 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5683, allocations: 4.781 kB / 0.7964 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.693e-05/0.5684, allocations: 13.31 kB / 0.7964 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.5684, allocations: 0 / 0.7964 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.5684, allocations: 7.969 kB / 0.7964 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.5684, allocations: 0 / 0.7964 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.5684, allocations: 4.438 kB / 0.7964 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.5687, allocations: 220.3 kB / 0.7967 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.061e-05/0.5688, allocations: 135.3 kB / 0.7968 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/0.5688, allocations: 6.781 kB / 0.7968 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.5689, allocations: 14.7 kB / 0.7968 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.937e-05/0.569, allocations: 15.58 kB / 0.7968 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.569, allocations: 7.078 kB / 0.7968 GB, free: 43.36 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003847/0.5694, allocations: 475.2 kB / 0.7973 GB, free: 43.26 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5694, allocations: 0 / 0.7973 GB, free: 43.26 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003154/0.5697, allocations: 59.84 kB / 0.7973 GB, free: 43.25 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0009237/0.5707, allocations: 428 kB / 0.7977 GB, free: 43.15 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003171/0.571, allocations: 153.1 kB / 0.7979 GB, free: 43.15 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.571, allocations: 0 / 0.7979 GB, free: 43.15 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.5711, allocations: 63.23 kB / 0.7979 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004615/0.5716, allocations: 98.8 kB / 0.798 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.5726, allocations: 0.8716 MB / 0.7989 GB, free: 42.74 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.5729, allocations: 0.8713 MB / 0.7997 GB, free: 42.04 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.532e-05/0.573, allocations: 27.72 kB / 0.7998 GB, free: 42.03 MB / 0.6544 GB Notification: Performance of SimCode: time 4.1e-07/0.573, allocations: 0 / 0.7998 GB, free: 42.03 MB / 0.6544 GB Notification: Performance of Templates: time 0.01116/0.5842, allocations: 5.723 MB / 0.8054 GB, free: 41.29 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1)