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.001718/0.001718, allocations: 107.8 kB / 16.36 MB, free: 5.961 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.002241/0.002241, allocations: 193.8 kB / 17.3 MB, free: 5.574 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.424/1.424, allocations: 205.1 MB / 223.2 MB, free: 12.28 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.791/1.791, allocations: 292.3 MB / 0.5496 GB, free: 17.61 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.001433/0.001433, allocations: 71.91 kB / 0.6729 GB, free: 5.859 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.237, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004131/0.2412, allocations: 2.456 MB / 0.7872 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3644/0.6056, allocations: 1.47 MB / 0.7886 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.6059, allocations: 4.875 kB / 0.7886 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0008546/0.6068, allocations: 324.2 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.0003972/0.6072, allocations: 216.8 kB / 0.7891 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000494/0.6077, allocations: 235.1 kB / 0.7894 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003344/0.608, allocations: 389 kB / 0.7897 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.6082, allocations: 74.19 kB / 0.7898 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.6084, allocations: 162.1 kB / 0.79 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.6085, allocations: 162.7 kB / 0.7901 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.6086, allocations: 18.38 kB / 0.7901 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.6088, allocations: 83.72 kB / 0.7902 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.6089, allocations: 129.5 kB / 0.7903 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.609, allocations: 199.7 kB / 0.7905 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003904/0.6094, allocations: 0.4901 MB / 0.791 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.6094, allocations: 3.938 kB / 0.791 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of FrontEnd: time 9.82e-07/0.6094, allocations: 0 / 0.791 GB, free: 46.2 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.198e-05/0.6094, allocations: 0.5 kB / 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.00106/0.6105, allocations: 0.8284 MB / 0.7918 GB, free: 45.57 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.6106, allocations: 10.5 kB / 0.7918 GB, free: 45.57 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.998e-05/0.6107, allocations: 61.09 kB / 0.7919 GB, free: 45.54 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000459/0.6111, allocations: 435.8 kB / 0.7923 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.6111, allocations: 13.92 kB / 0.7923 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/0.6112, allocations: 12.84 kB / 0.7923 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.6114, allocations: 136.9 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.6115, allocations: 0 / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.6115, allocations: 6.812 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.6115, allocations: 6.562 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.6117, allocations: 68.69 kB / 0.7925 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007422/0.6124, allocations: 0.5641 MB / 0.7931 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002801/0.6127, allocations: 125.2 kB / 0.7932 GB, free: 44.91 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.587e-05/0.6128, allocations: 52.56 kB / 0.7933 GB, free: 44.9 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.6128, allocations: 0 / 0.7933 GB, free: 44.9 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/0.6131, allocations: 116.6 kB / 0.7934 GB, free: 44.85 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=13): time 2.595e-06/0.6131, allocations: 0 / 0.7934 GB, free: 44.85 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13): time 0.0004593/0.6135, allocations: 242.1 kB / 0.7936 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.6136, allocations: 80.61 kB / 0.7937 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006144/0.6142, allocations: 0.6881 MB / 0.7944 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.6143, allocations: 32.08 kB / 0.7944 GB, free: 44.52 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.6144, allocations: 260.2 kB / 0.7946 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.6145, allocations: 34.62 kB / 0.7947 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-05/0.6146, allocations: 61.83 kB / 0.7947 GB, free: 44.39 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.891e-05/0.6146, allocations: 370.8 kB / 0.7951 GB, free: 44.08 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.6148, allocations: 71.77 kB / 0.7951 GB, free: 44.08 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.6149, allocations: 121.4 kB / 0.7953 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.6152, allocations: 137.7 kB / 0.7954 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6152, 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.0003538/0.6155, allocations: 266.6 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.6155, allocations: 7.688 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.6156, allocations: 3.5 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.6156, allocations: 3.406 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.6157, allocations: 27.8 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.6157, allocations: 3.406 kB / 0.7957 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.6159, allocations: 25.23 kB / 0.7957 GB, free: 43.94 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.6159, allocations: 10.22 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.0001796/0.6161, allocations: 214.6 kB / 0.7959 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.338e-05/0.6162, allocations: 59.41 kB / 0.796 GB, free: 43.79 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.476e-05/0.6163, allocations: 63.16 kB / 0.7961 GB, free: 43.77 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.6163, allocations: 3.406 kB / 0.7961 GB, free: 43.77 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.6163, allocations: 2.562 kB / 0.7961 GB, free: 43.77 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.6163, allocations: 2.953 kB / 0.7961 GB, free: 43.77 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.6165, allocations: 362.3 kB / 0.7964 GB, free: 43.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.6165, allocations: 7.406 kB / 0.7964 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.398e-05/0.6166, allocations: 13.19 kB / 0.7964 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.6166, allocations: 3.312 kB / 0.7964 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.6166, allocations: 0 / 0.7964 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.6166, allocations: 0 / 0.7964 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.6166, allocations: 7.094 kB / 0.7964 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002935/0.6169, allocations: 231.1 kB / 0.7967 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.43e-05/0.617, allocations: 133.1 kB / 0.7968 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.827e-05/0.6171, allocations: 3.75 kB / 0.7968 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.6172, allocations: 13.92 kB / 0.7968 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.196e-05/0.6173, allocations: 13.69 kB / 0.7968 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.6173, allocations: 13.48 kB / 0.7968 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0004098/0.6177, allocations: 468.3 kB / 0.7973 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.102e-06/0.6177, allocations: 0 / 0.7973 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002969/0.618, allocations: 70.88 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.0009599/0.619, allocations: 421.7 kB / 0.7977 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000321/0.6193, allocations: 153.5 kB / 0.7979 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.6193, allocations: 128 / 0.7979 GB, free: 43.14 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.6194, allocations: 56.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.0004433/0.6199, allocations: 93.47 kB / 0.798 GB, free: 43.13 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009381/0.6208, allocations: 0.8328 MB / 0.7988 GB, free: 42.76 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.6211, allocations: 0.8623 MB / 0.7997 GB, free: 42.06 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001261/0.6213, allocations: 49.89 kB / 0.7997 GB, free: 42.06 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.044e-05/0.6213, allocations: 34.75 kB / 0.7998 GB, free: 42.05 MB / 0.6544 GB Notification: Performance of SimCode: time 2.5e-07/0.6213, allocations: 0 / 0.7998 GB, free: 42.05 MB / 0.6544 GB Notification: Performance of Templates: time 0.01051/0.6319, allocations: 4.345 MB / 0.804 GB, free: 41.82 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1)