Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.006788/0.006788, allocations: 95.98 kB / 15.73 MB, free: 6.039 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.001283/0.001283, allocations: 196.8 kB / 16.68 MB, free: 5.969 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.672/1.672, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.59/1.59, allocations: 251.7 MB / 0.5094 GB, free: 3.008 MB / 414.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.001419/0.001419, allocations: 74.06 kB / 0.7258 GB, free: 9 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2645, allocations: 104.7 MB / 0.8281 GB, free: 196 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004041/0.2685, allocations: 2.47 MB / 0.8305 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002159/0.2707, allocations: 1.362 MB / 0.8318 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.2709, allocations: 4 kB / 0.8318 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0009502/0.2718, allocations: 314.8 kB / 0.8321 GB, free: 12.03 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.0004871/0.2723, allocations: 223.1 kB / 0.8323 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000585/0.2729, allocations: 212.1 kB / 0.8325 GB, free: 11.61 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004916/0.2734, allocations: 378.8 kB / 0.8329 GB, free: 11.23 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.2737, allocations: 64.72 kB / 0.8329 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.2739, allocations: 155.3 kB / 0.8331 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/0.2741, allocations: 159.2 kB / 0.8332 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.131e-05/0.2742, allocations: 20 kB / 0.8333 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.2744, allocations: 67.89 kB / 0.8333 GB, free: 10.77 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.2746, allocations: 119.6 kB / 0.8334 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002117/0.2748, allocations: 194.5 kB / 0.8336 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0006806/0.2755, allocations: 485.7 kB / 0.8341 GB, free: 9.988 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.2755, allocations: 0 / 0.8341 GB, free: 9.988 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.244e-06/0.2755, allocations: 4 kB / 0.8341 GB, free: 9.984 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.102e-05/0.2755, allocations: 0 / 0.8341 GB, free: 9.984 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.001642/0.2772, allocations: 0.8412 MB / 0.8349 GB, free: 9.086 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/0.2773, allocations: 8.031 kB / 0.8349 GB, free: 9.078 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.2774, allocations: 64.52 kB / 0.835 GB, free: 9.016 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006276/0.278, allocations: 437.2 kB / 0.8354 GB, free: 8.551 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.2781, allocations: 16.12 kB / 0.8354 GB, free: 8.535 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.749e-05/0.2781, allocations: 12 kB / 0.8354 GB, free: 8.523 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003422/0.2784, allocations: 137.8 kB / 0.8356 GB, free: 8.379 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2785, allocations: 0 / 0.8356 GB, free: 8.379 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.2785, allocations: 7.984 kB / 0.8356 GB, free: 8.371 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.2785, allocations: 4 kB / 0.8356 GB, free: 8.367 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.2787, allocations: 63.91 kB / 0.8356 GB, free: 8.305 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009649/0.2797, allocations: 0.5784 MB / 0.8362 GB, free: 7.676 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.28, allocations: 122.7 kB / 0.8363 GB, free: 7.547 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.2801, allocations: 48.84 kB / 0.8364 GB, free: 7.496 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.2802, allocations: 11.92 kB / 0.8364 GB, free: 7.484 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002826/0.2805, allocations: 103.4 kB / 0.8365 GB, free: 7.371 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=13): time 3.376e-06/0.2805, allocations: 0 / 0.8365 GB, free: 7.371 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13): time 0.0006085/0.2811, allocations: 247.8 kB / 0.8367 GB, free: 7.125 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.383e-05/0.2812, allocations: 81.09 kB / 0.8368 GB, free: 7.027 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008616/0.282, allocations: 0.672 MB / 0.8374 GB, free: 6.344 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.551e-05/0.2821, allocations: 37.7 kB / 0.8375 GB, free: 6.301 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.2824, allocations: 260.5 kB / 0.8377 GB, free: 6.043 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.305e-05/0.2825, allocations: 39.69 kB / 0.8378 GB, free: 6.004 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.2826, allocations: 53.7 kB / 0.8378 GB, free: 5.945 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0002414/0.2828, allocations: 370.8 kB / 0.8382 GB, free: 5.574 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.283, allocations: 67.97 kB / 0.8382 GB, free: 5.508 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.2832, allocations: 126.9 kB / 0.8384 GB, free: 5.367 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.2835, allocations: 137.3 kB / 0.8385 GB, free: 5.227 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2835, allocations: 0 / 0.8385 GB, free: 5.227 MB / 0.6544 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004618/0.2839, allocations: 265.1 kB / 0.8387 GB, free: 4.961 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.284, allocations: 12.06 kB / 0.8387 GB, free: 4.949 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.284, allocations: 0 / 0.8387 GB, free: 4.949 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.284, allocations: 0 / 0.8387 GB, free: 4.949 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.2842, allocations: 47.91 kB / 0.8388 GB, free: 4.902 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.2843, allocations: 0 / 0.8388 GB, free: 4.902 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.2844, allocations: 27.88 kB / 0.8388 GB, free: 4.875 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.2845, allocations: 4 kB / 0.8388 GB, free: 4.871 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.0002655/0.2847, allocations: 211.5 kB / 0.839 GB, free: 4.656 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.181e-05/0.2848, allocations: 63.56 kB / 0.8391 GB, free: 4.594 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.2849, allocations: 57.05 kB / 0.8391 GB, free: 4.535 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.2849, allocations: 4 kB / 0.8391 GB, free: 4.531 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.285, allocations: 0 / 0.8391 GB, free: 4.531 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.285, allocations: 0 / 0.8391 GB, free: 4.531 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004353/0.2854, allocations: 369.4 kB / 0.8395 GB, free: 4.121 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2854, allocations: 0 / 0.8395 GB, free: 4.121 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.835e-05/0.2855, allocations: 11.94 kB / 0.8395 GB, free: 4.109 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2855, allocations: 0 / 0.8395 GB, free: 4.109 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.2855, allocations: 3.984 kB / 0.8395 GB, free: 4.105 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.346e-06/0.2855, allocations: 4 kB / 0.8395 GB, free: 4.102 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2855, allocations: 7.938 kB / 0.8395 GB, free: 4.094 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003922/0.2859, allocations: 224.6 kB / 0.8397 GB, free: 3.855 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.286, allocations: 132.6 kB / 0.8399 GB, free: 3.707 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.602e-05/0.2861, allocations: 8 kB / 0.8399 GB, free: 3.699 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.2862, allocations: 11.98 kB / 0.8399 GB, free: 3.688 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/0.2863, allocations: 15.97 kB / 0.8399 GB, free: 3.672 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.2863, allocations: 12 kB / 0.8399 GB, free: 3.66 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0005108/0.2869, allocations: 467 kB / 0.8404 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2869, allocations: 0 / 0.8404 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000299/0.2872, allocations: 59.94 kB / 0.8404 GB, free: 3.148 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.001117/0.2883, allocations: 419.2 kB / 0.8408 GB, free: 2.883 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003731/0.2887, allocations: 155.6 kB / 0.841 GB, free: 2.734 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.2887, allocations: 4.125 kB / 0.841 GB, free: 2.73 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.2888, allocations: 51.98 kB / 0.841 GB, free: 2.68 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.2894, allocations: 108.7 kB / 0.8411 GB, free: 2.578 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.2907, allocations: 0.8279 MB / 0.8419 GB, free: 1.719 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005319/0.2912, allocations: 0.8726 MB / 0.8428 GB, free: 0.8203 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001656/0.2914, allocations: 42.25 kB / 0.8428 GB, free: 0.7812 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.2915, allocations: 35.42 kB / 0.8429 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of SimCode: time 4.71e-07/0.2915, allocations: 4 kB / 0.8429 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of Templates: time 0.01013/0.3017, allocations: 4.21 MB / 0.847 GB, free: 12.58 MB / 0.67 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1)