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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.744/1.744, allocations: 289.9 MB / 297.4 MB, free: 6.395 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 180.8 kB / 366.7 MB, free: 1.68 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.81/1.81, allocations: 205.2 MB / 0.626 GB, free: 7.184 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000807/0.0008071, allocations: 85.69 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.25e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6166/0.6167, allocations: 116.3 MB / 0.9733 GB, free: 76.23 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1842/0.8009, allocations: 144.5 MB / 1.114 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.8013, allocations: 83.95 kB / 1.115 GB, free: 5.48 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.03694/0.8382, allocations: 13.67 MB / 1.128 GB, free: 7.805 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.392e-06/0.8383, allocations: 0 / 1.128 GB, free: 7.805 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.173e-05/0.8383, allocations: 8 kB / 1.128 GB, free: 7.797 MB / 0.7292 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.001003/0.8393, allocations: 0.6983 MB / 1.129 GB, free: 7.043 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.8394, allocations: 8.031 kB / 1.129 GB, free: 7.035 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.8395, allocations: 59.25 kB / 1.129 GB, free: 6.977 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007288/0.8403, allocations: 439.8 kB / 1.129 GB, free: 6.508 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.8403, allocations: 4 kB / 1.129 GB, free: 6.504 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.8403, allocations: 7.984 kB / 1.129 GB, free: 6.496 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000161/0.8405, allocations: 61.77 kB / 1.129 GB, free: 6.438 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.8407, allocations: 135.5 kB / 1.129 GB, free: 6.297 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.034e-06/0.8407, allocations: 0 / 1.129 GB, free: 6.297 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.8408, allocations: 0 / 1.129 GB, free: 6.297 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.8408, allocations: 0 / 1.129 GB, free: 6.297 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000907/0.8417, allocations: 0.5639 MB / 1.13 GB, free: 5.695 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001818/0.8419, allocations: 106.7 kB / 1.13 GB, free: 5.582 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.138e-05/0.842, allocations: 48.84 kB / 1.13 GB, free: 5.531 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.842, allocations: 4 kB / 1.13 GB, free: 5.527 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001654/0.8422, allocations: 103.4 kB / 1.13 GB, free: 5.414 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.8422, allocations: 0 / 1.13 GB, free: 5.414 MB / 0.7292 GB Notification: Performance of matching and sorting (n=13): time 0.000327/0.8425, allocations: 186.8 kB / 1.13 GB, free: 5.227 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.8426, allocations: 83.83 kB / 1.13 GB, free: 5.129 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006886/0.8433, allocations: 0.5776 MB / 1.131 GB, free: 4.547 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.8433, allocations: 25.7 kB / 1.131 GB, free: 4.516 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/0.8435, allocations: 272.3 kB / 1.131 GB, free: 4.246 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.8436, allocations: 27.61 kB / 1.131 GB, free: 4.219 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.433e-05/0.8436, allocations: 4 kB / 1.131 GB, free: 4.215 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001886/0.8438, allocations: 370.8 kB / 1.132 GB, free: 3.844 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.8439, allocations: 72.41 kB / 1.132 GB, free: 3.773 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.8441, allocations: 127.2 kB / 1.132 GB, free: 3.633 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.8444, allocations: 90.58 kB / 1.132 GB, free: 3.547 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.8444, allocations: 0 / 1.132 GB, free: 3.547 MB / 0.7292 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004719/0.8449, allocations: 280.7 kB / 1.132 GB, free: 3.266 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.8449, allocations: 4 kB / 1.132 GB, free: 3.262 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.8449, allocations: 0 / 1.132 GB, free: 3.262 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.8449, allocations: 4 kB / 1.132 GB, free: 3.258 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.8451, allocations: 39.86 kB / 1.132 GB, free: 3.219 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.8451, allocations: 8.062 kB / 1.132 GB, free: 3.211 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.8453, allocations: 23.83 kB / 1.132 GB, free: 3.188 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.496e-05/0.8454, allocations: 12 kB / 1.132 GB, free: 3.176 MB / 0.7292 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 ($whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,assWatMas.runSig,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.888e-05/0.8455, allocations: 118.3 kB / 1.132 GB, free: 3.059 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002688/0.8457, allocations: 181 kB / 1.132 GB, free: 2.875 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-05/0.8458, allocations: 59.25 kB / 1.133 GB, free: 2.816 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003323/0.8462, allocations: 210.6 kB / 1.133 GB, free: 2.59 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.8462, allocations: 4 kB / 1.133 GB, free: 2.586 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.8462, allocations: 0 / 1.133 GB, free: 2.586 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.8462, allocations: 0 / 1.133 GB, free: 2.586 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003517/0.8465, allocations: 346 kB / 1.133 GB, free: 2.211 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.8466, allocations: 4 kB / 1.133 GB, free: 2.207 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.244e-05/0.8466, allocations: 8 kB / 1.133 GB, free: 2.199 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.8466, allocations: 1.312 kB / 1.133 GB, free: 2.199 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.8466, allocations: 3.984 kB / 1.133 GB, free: 2.195 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.8467, allocations: 4 kB / 1.133 GB, free: 2.191 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.8467, allocations: 7.953 kB / 1.133 GB, free: 2.184 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003015/0.847, allocations: 222 kB / 1.133 GB, free: 1.949 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.8471, allocations: 136.4 kB / 1.133 GB, free: 1.797 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.64e-05/0.8472, allocations: 3.984 kB / 1.133 GB, free: 1.793 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.8473, allocations: 11.98 kB / 1.133 GB, free: 1.781 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/0.8474, allocations: 19.94 kB / 1.133 GB, free: 1.762 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.8474, allocations: 11.98 kB / 1.133 GB, free: 1.75 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.000479/0.8479, allocations: 435.1 kB / 1.134 GB, free: 1.328 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8479, allocations: 0 / 1.134 GB, free: 1.328 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003418/0.8482, allocations: 79.84 kB / 1.134 GB, free: 1.25 MB / 0.7292 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.runSig,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001377/0.8496, allocations: 1.056 MB / 1.135 GB, free: 316 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000289/0.8499, allocations: 150.5 kB / 1.135 GB, free: 168 kB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.8499, allocations: 4.125 kB / 1.135 GB, free: 164 kB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 9.439e-05/0.85, allocations: 55.94 kB / 1.135 GB, free: 108 kB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004408/0.8505, allocations: 71.81 kB / 1.135 GB, free: 40 kB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.8518, allocations: 0.729 MB / 1.136 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004875/0.8523, allocations: 0.8787 MB / 1.137 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001611/0.8525, allocations: 49.95 kB / 1.137 GB, free: 14.32 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.8527, allocations: 167.4 kB / 1.137 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of SimCode: time 4.71e-07/0.8527, allocations: 0 / 1.137 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.8838, allocations: 9.113 MB / 1.146 GB, free: 5.203 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002154/0.8841, allocations: 183.1 kB / 1.146 GB, free: 5.004 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.925, allocations: 0.875 kB / 1.146 GB, free: 5.004 MB / 0.7448 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1)