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.00111/0.00111, allocations: 108 kB / 15.6 MB, free: 132 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.001485/0.001485, allocations: 198.2 kB / 16.54 MB, free: 6.672 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.613/1.613, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.958/1.958, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.00229/0.002291, allocations: 70 kB / 0.6715 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2744, allocations: 114.6 MB / 0.7834 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003766/0.2782, allocations: 2.46 MB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002232/0.2804, allocations: 1.484 MB / 0.7872 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002177/0.2807, allocations: 3.938 kB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009876/0.2817, allocations: 323.3 kB / 0.7875 GB, free: 9.199 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.0006118/0.2823, allocations: 219 kB / 0.7877 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006916/0.283, allocations: 231.9 kB / 0.788 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005032/0.2835, allocations: 390.8 kB / 0.7883 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.2837, allocations: 68.92 kB / 0.7884 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/0.2839, allocations: 159.3 kB / 0.7886 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001956/0.2841, allocations: 163.2 kB / 0.7887 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.96e-05/0.2842, allocations: 24 kB / 0.7887 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.2844, allocations: 71.95 kB / 0.7888 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.2846, allocations: 131.5 kB / 0.7889 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001865/0.2848, allocations: 190.6 kB / 0.7891 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005509/0.2853, allocations: 498.2 kB / 0.7896 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2853, allocations: 0 / 0.7896 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.587e-06/0.2854, allocations: 0 / 0.7896 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.365e-06/0.2854, allocations: 3.938 kB / 0.7896 GB, free: 7.09 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.001215/0.2866, allocations: 0.8335 MB / 0.7904 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.2866, allocations: 11.97 kB / 0.7904 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.2867, allocations: 60.19 kB / 0.7905 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004813/0.2872, allocations: 428.9 kB / 0.7909 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.2873, allocations: 7.938 kB / 0.7909 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.2873, allocations: 12 kB / 0.7909 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.2876, allocations: 137.8 kB / 0.791 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.2876, allocations: 0 / 0.791 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.2876, allocations: 11.98 kB / 0.791 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2876, allocations: 7.922 kB / 0.791 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.2878, allocations: 67.97 kB / 0.7911 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008442/0.2886, allocations: 0.5744 MB / 0.7917 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.289, allocations: 130.7 kB / 0.7918 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.2891, allocations: 48.78 kB / 0.7918 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.2891, allocations: 4 kB / 0.7918 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.2894, allocations: 115.3 kB / 0.792 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.2894, allocations: 0 / 0.792 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13): time 0.000491/0.2899, allocations: 233 kB / 0.7922 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/0.29, allocations: 81.11 kB / 0.7923 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.2907, allocations: 0.6837 MB / 0.7929 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.2907, allocations: 33.7 kB / 0.793 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.2909, allocations: 268.3 kB / 0.7932 GB, free: 3.152 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.365e-05/0.291, allocations: 31.56 kB / 0.7932 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.835e-05/0.2911, allocations: 61.69 kB / 0.7933 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.2912, allocations: 370.8 kB / 0.7937 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.2914, allocations: 67.97 kB / 0.7937 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.2916, allocations: 132.9 kB / 0.7938 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/0.2918, allocations: 133.5 kB / 0.794 GB, free: 2.336 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.2918, allocations: 7.938 kB / 0.794 GB, free: 2.328 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004327/0.2923, allocations: 268.8 kB / 0.7942 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.2923, allocations: 4 kB / 0.7942 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2923, allocations: 0 / 0.7942 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.2923, allocations: 4.062 kB / 0.7942 GB, free: 2.051 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.2925, allocations: 35.92 kB / 0.7943 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.2925, allocations: 7.984 kB / 0.7943 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.2927, allocations: 19.89 kB / 0.7943 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.2927, allocations: 12 kB / 0.7943 GB, free: 1.977 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.0002157/0.2929, allocations: 211.5 kB / 0.7945 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.894e-05/0.293, allocations: 55.28 kB / 0.7946 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.613e-05/0.2931, allocations: 57.05 kB / 0.7946 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2931, allocations: 7.938 kB / 0.7946 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2931, allocations: 4 kB / 0.7946 GB, free: 1.633 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2931, allocations: 0 / 0.7946 GB, free: 1.633 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003223/0.2935, allocations: 377.2 kB / 0.795 GB, free: 1.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2935, allocations: 3.938 kB / 0.795 GB, free: 1.211 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.832e-05/0.2935, allocations: 11.98 kB / 0.795 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2935, allocations: 0 / 0.795 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.2935, allocations: 0 / 0.795 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.2936, allocations: 0 / 0.795 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2936, allocations: 7.938 kB / 0.795 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.2939, allocations: 223.2 kB / 0.7952 GB, free: 0.957 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.294, allocations: 132.3 kB / 0.7954 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.64e-05/0.2941, allocations: 11.98 kB / 0.7954 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.2942, allocations: 11.98 kB / 0.7954 GB, free: 0.7852 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.851e-05/0.2943, allocations: 11.98 kB / 0.7954 GB, free: 0.7734 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.2943, allocations: 12 kB / 0.7954 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004793/0.2948, allocations: 467 kB / 0.7959 GB, free: 316 kB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2948, allocations: 4 kB / 0.7959 GB, free: 312 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003029/0.2951, allocations: 67.92 kB / 0.7959 GB, free: 244 kB / 0.6075 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.0009433/0.2961, allocations: 426.4 kB / 0.7963 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003558/0.2964, allocations: 151.8 kB / 0.7965 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2964, allocations: 0 / 0.7965 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.2966, allocations: 64.03 kB / 0.7965 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005062/0.2971, allocations: 104.3 kB / 0.7966 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001174/0.2983, allocations: 0.8483 MB / 0.7975 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005415/0.2988, allocations: 0.8622 MB / 0.7983 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001303/0.299, allocations: 42.95 kB / 0.7983 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.049e-05/0.2991, allocations: 31.42 kB / 0.7984 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of SimCode: time 3.01e-07/0.2991, allocations: 4 kB / 0.7984 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of Templates: time 0.009401/0.3085, allocations: 4.353 MB / 0.8026 GB, free: 9.523 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)