Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 81.95 kB / 21.47 MB, free: 3.031 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 167.7 kB / 24.87 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9069/0.9069, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.906/1.906, allocations: 377.9 MB / 0.6247 GB, free: 8.426 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 0.8128 GB, free: 1.438 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.532e-05, allocations: 2.312 kB / 0.8128 GB, free: 1.434 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004015/0.004041, allocations: 2.493 MB / 0.8152 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.002469/0.00651, allocations: 1.666 MB / 0.8169 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.006667, allocations: 3.938 kB / 0.8169 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.007849, allocations: 316.3 kB / 0.8172 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0005591/0.008408, allocations: 280.7 kB / 0.8174 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.008875, allocations: 213 kB / 0.8176 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004163/0.009292, allocations: 418.5 kB / 0.818 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.009412, allocations: 46.17 kB / 0.8181 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005728/0.009985, allocations: 261.3 kB / 0.8183 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.01018, allocations: 139.6 kB / 0.8185 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.275e-05/0.01022, allocations: 20.84 kB / 0.8185 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002009/0.01043, allocations: 87.81 kB / 0.8186 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.01057, allocations: 132.7 kB / 0.8187 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.01069, allocations: 95.59 kB / 0.8188 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0005316/0.01122, allocations: 370.4 kB / 0.8191 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.01122, allocations: 1.344 kB / 0.8191 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.422e-06/0.01123, allocations: 0 / 0.8191 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.01123, allocations: 0 / 0.8191 GB, free: 10.98 MB / 0.7761 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.001031/0.01226, allocations: 0.9022 MB / 0.82 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.0123, allocations: 8.031 kB / 0.82 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.01241, allocations: 72.45 kB / 0.8201 GB, free: 9.953 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.01285, allocations: 380.8 kB / 0.8205 GB, free: 9.555 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.01287, allocations: 12.55 kB / 0.8205 GB, free: 9.543 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.01289, allocations: 12.38 kB / 0.8205 GB, free: 9.531 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001781/0.01307, allocations: 111.5 kB / 0.8206 GB, free: 9.41 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.01308, allocations: 7.938 kB / 0.8206 GB, free: 9.402 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.01309, allocations: 3.938 kB / 0.8206 GB, free: 9.398 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.01309, allocations: 0 / 0.8206 GB, free: 9.398 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.51e-05/0.01318, allocations: 34.91 kB / 0.8206 GB, free: 9.367 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007166/0.0139, allocations: 472.5 kB / 0.8211 GB, free: 8.879 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.01404, allocations: 73.22 kB / 0.8211 GB, free: 8.797 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.119e-05/0.01409, allocations: 39.58 kB / 0.8212 GB, free: 8.754 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.01411, allocations: 4 kB / 0.8212 GB, free: 8.75 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.01428, allocations: 119.4 kB / 0.8213 GB, free: 8.613 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=13): time 1.693e-06/0.01429, allocations: 0.6562 kB / 0.8213 GB, free: 8.613 MB / 0.7761 GB Notification: Performance of matching and sorting (n=13): time 0.0003551/0.01464, allocations: 180 kB / 0.8215 GB, free: 8.434 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.01468, allocations: 59.34 kB / 0.8215 GB, free: 8.363 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006477/0.01533, allocations: 0.6359 MB / 0.8222 GB, free: 7.707 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.01536, allocations: 37.69 kB / 0.8222 GB, free: 7.664 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.01563, allocations: 335.1 kB / 0.8225 GB, free: 7.332 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.833e-05/0.01567, allocations: 43.67 kB / 0.8226 GB, free: 7.289 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.12e-05/0.01577, allocations: 63.31 kB / 0.8226 GB, free: 7.219 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002322/0.016, allocations: 0.5767 MB / 0.8232 GB, free: 6.633 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.86e-05/0.01606, allocations: 19.98 kB / 0.8232 GB, free: 6.613 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.01617, allocations: 129.8 kB / 0.8233 GB, free: 6.453 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.01631, allocations: 82.97 kB / 0.8234 GB, free: 6.359 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.01631, allocations: 0 / 0.8234 GB, free: 6.359 MB / 0.7761 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002286/0.01654, allocations: 196.3 kB / 0.8236 GB, free: 6.164 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.01655, allocations: 7.094 kB / 0.8236 GB, free: 6.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.01656, allocations: 3.938 kB / 0.8236 GB, free: 6.156 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.01657, allocations: 4 kB / 0.8236 GB, free: 6.152 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.01671, allocations: 41 kB / 0.8236 GB, free: 6.113 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.01672, allocations: 4 kB / 0.8236 GB, free: 6.109 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.01685, allocations: 20.95 kB / 0.8237 GB, free: 6.09 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.01688, allocations: 11.98 kB / 0.8237 GB, free: 6.078 MB / 0.7761 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.0001429/0.01702, allocations: 167.6 kB / 0.8238 GB, free: 5.906 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.851e-05/0.0171, allocations: 67.58 kB / 0.8239 GB, free: 5.84 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000295/0.01739, allocations: 166.8 kB / 0.8241 GB, free: 5.664 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.0174, allocations: 5.656 kB / 0.8241 GB, free: 5.66 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.0174, allocations: 0 / 0.8241 GB, free: 5.66 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.0174, allocations: 3.984 kB / 0.8241 GB, free: 5.656 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.01772, allocations: 249 kB / 0.8243 GB, free: 5.387 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.01772, allocations: 0.5 kB / 0.8243 GB, free: 5.387 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.276e-05/0.01777, allocations: 13.3 kB / 0.8243 GB, free: 5.375 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.01778, allocations: 0 / 0.8243 GB, free: 5.375 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.01779, allocations: 8 kB / 0.8243 GB, free: 5.367 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.01779, allocations: 0 / 0.8243 GB, free: 5.367 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01779, allocations: 0.875 kB / 0.8243 GB, free: 5.367 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.01806, allocations: 226.3 kB / 0.8245 GB, free: 5.125 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.774e-05/0.01813, allocations: 48.97 kB / 0.8246 GB, free: 5.078 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.738e-05/0.01818, allocations: 8 kB / 0.8246 GB, free: 5.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.586e-05/0.01827, allocations: 7.984 kB / 0.8246 GB, free: 5.062 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.311e-05/0.01834, allocations: 20.88 kB / 0.8246 GB, free: 5.043 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.01836, allocations: 8 kB / 0.8246 GB, free: 5.035 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003904/0.01875, allocations: 382.9 kB / 0.825 GB, free: 4.668 MB / 0.7761 GB Notification: Performance of sort global known variables: time 3e-07/0.01875, allocations: 1.531 kB / 0.825 GB, free: 4.668 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002587/0.019, allocations: 71.89 kB / 0.8251 GB, free: 4.598 MB / 0.7761 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 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * 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 (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.001304/0.02031, allocations: 413.6 kB / 0.8255 GB, free: 4.332 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002172/0.02053, allocations: 107.4 kB / 0.8256 GB, free: 4.223 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.02053, allocations: 0 / 0.8256 GB, free: 4.223 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 7.189e-05/0.0206, allocations: 38.48 kB / 0.8256 GB, free: 4.184 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.02106, allocations: 107.9 kB / 0.8257 GB, free: 4.09 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.02234, allocations: 0.735 MB / 0.8264 GB, free: 3.32 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.02246, allocations: 144 kB / 0.8266 GB, free: 3.16 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001256/0.02258, allocations: 46.94 kB / 0.8266 GB, free: 3.109 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.02278, allocations: 134.2 kB / 0.8267 GB, free: 2.977 MB / 0.7761 GB Notification: Performance of SimCode: time 7.11e-07/0.02278, allocations: 0 / 0.8267 GB, free: 2.977 MB / 0.7761 GB Notification: Performance of Templates: time 0.009712/0.03249, allocations: 5.077 MB / 0.8317 GB, free: 14 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.27736610500142]