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.001551/0.001551, allocations: 109.4 kB / 15.69 MB, free: 124 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 189.3 kB / 16.62 MB, free: 6.613 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.814/1.814, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.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.807/1.807, allocations: 292.3 MB / 0.5489 GB, free: 12.72 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.001412/0.001412, allocations: 73.8 kB / 0.6723 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2517, allocations: 114.5 MB / 0.7841 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004693/0.2565, allocations: 2.467 MB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002376/0.2589, allocations: 1.484 MB / 0.788 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.2591, allocations: 7.875 kB / 0.788 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009879/0.2601, allocations: 319.3 kB / 0.7883 GB, free: 8.41 MB / 0.6075 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.0004636/0.2606, allocations: 215.1 kB / 0.7885 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005937/0.2612, allocations: 233.6 kB / 0.7887 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000418/0.2617, allocations: 394.8 kB / 0.7891 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.2618, allocations: 68.64 kB / 0.7892 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.262, allocations: 155.3 kB / 0.7893 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.2623, allocations: 171.2 kB / 0.7895 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.277e-05/0.2623, allocations: 20 kB / 0.7895 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.2625, allocations: 75.95 kB / 0.7896 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.2627, allocations: 131.5 kB / 0.7897 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.2629, allocations: 190.6 kB / 0.7899 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005318/0.2634, allocations: 0.4903 MB / 0.7903 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2634, allocations: 0 / 0.7903 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.335e-06/0.2634, allocations: 0 / 0.7903 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.407e-05/0.2634, allocations: 0 / 0.7903 GB, free: 6.297 MB / 0.6075 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.001288/0.2647, allocations: 0.8374 MB / 0.7912 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.2648, allocations: 12.03 kB / 0.7912 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.2649, allocations: 64.17 kB / 0.7912 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005441/0.2654, allocations: 428.8 kB / 0.7916 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.2655, allocations: 15.94 kB / 0.7917 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.2655, allocations: 12 kB / 0.7917 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000317/0.2658, allocations: 137.8 kB / 0.7918 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2659, allocations: 3.938 kB / 0.7918 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.2659, allocations: 4 kB / 0.7918 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.2659, allocations: 7.938 kB / 0.7918 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.2661, allocations: 67.95 kB / 0.7919 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008649/0.2669, allocations: 0.5744 MB / 0.7924 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.2672, allocations: 122.8 kB / 0.7926 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.2674, allocations: 48.77 kB / 0.7926 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.2674, allocations: 4 kB / 0.7926 GB, free: 3.809 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.2676, allocations: 111.3 kB / 0.7927 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.2676, allocations: 0 / 0.7927 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.0004926/0.2681, allocations: 241 kB / 0.793 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.2682, allocations: 77.11 kB / 0.793 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007475/0.269, allocations: 0.6837 MB / 0.7937 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.269, allocations: 37.64 kB / 0.7937 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002119/0.2692, allocations: 260.4 kB / 0.794 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.081e-05/0.2693, allocations: 39.53 kB / 0.794 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.2694, allocations: 61.69 kB / 0.7941 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001973/0.2696, allocations: 366.8 kB / 0.7944 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.2697, allocations: 75.95 kB / 0.7945 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.27, allocations: 128.5 kB / 0.7946 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/0.2702, allocations: 145.6 kB / 0.7948 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.2702, allocations: 3.938 kB / 0.7948 GB, free: 1.52 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004467/0.2707, allocations: 264.8 kB / 0.795 GB, free: 1.254 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.2707, allocations: 4 kB / 0.795 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.2707, allocations: 4 kB / 0.795 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.2708, allocations: 0 / 0.795 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.2709, allocations: 35.98 kB / 0.7951 GB, free: 1.211 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.2709, allocations: 11.98 kB / 0.7951 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.2711, allocations: 23.89 kB / 0.7951 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.2711, allocations: 4 kB / 0.7951 GB, free: 1.172 MB / 0.6075 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.0002457/0.2714, allocations: 207.6 kB / 0.7953 GB, free: 0.9609 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.229e-05/0.2715, allocations: 63.25 kB / 0.7954 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.2716, allocations: 57.05 kB / 0.7954 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2716, allocations: 4 kB / 0.7954 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2716, allocations: 4 kB / 0.7954 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2716, allocations: 0 / 0.7954 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003478/0.272, allocations: 369.3 kB / 0.7958 GB, free: 428 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.272, allocations: 3.938 kB / 0.7958 GB, free: 424 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.788e-05/0.272, allocations: 11.94 kB / 0.7958 GB, free: 412 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.272, allocations: 0 / 0.7958 GB, free: 412 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.2721, allocations: 11.98 kB / 0.7958 GB, free: 400 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2721, allocations: 0 / 0.7958 GB, free: 400 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2721, allocations: 0 / 0.7958 GB, free: 400 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.2724, allocations: 215.8 kB / 0.796 GB, free: 168 kB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.931e-05/0.2725, allocations: 132.3 kB / 0.7961 GB, free: 16 kB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.224e-05/0.2726, allocations: 8 kB / 0.7961 GB, free: 8 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.2727, allocations: 16.03 kB / 0.7961 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.2728, allocations: 19.92 kB / 0.7962 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.2728, allocations: 4 kB / 0.7962 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000514/0.2733, allocations: 471 kB / 0.7966 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2734, allocations: 0 / 0.7966 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003353/0.2737, allocations: 71.92 kB / 0.7967 GB, free: 15.44 MB / 0.6231 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.00101/0.2747, allocations: 416.9 kB / 0.7971 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003545/0.2751, allocations: 155.9 kB / 0.7972 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2751, allocations: 4 kB / 0.7972 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.2752, allocations: 55.91 kB / 0.7973 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004605/0.2757, allocations: 105.6 kB / 0.7974 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.277, allocations: 0.8365 MB / 0.7982 GB, free: 14.01 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.2774, allocations: 0.8583 MB / 0.799 GB, free: 13.13 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001496/0.2776, allocations: 54.92 kB / 0.7991 GB, free: 13.08 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.811e-05/0.2777, allocations: 31.42 kB / 0.7991 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of SimCode: time 5.01e-07/0.2777, allocations: 0 / 0.7991 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of Templates: time 0.008969/0.2867, allocations: 4.339 MB / 0.8034 GB, free: 8.75 MB / 0.6231 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)