Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001165/0.001165, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001147/0.001147, allocations: 177 kB / 23.36 MB, free: 1.133 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.936/0.936, allocations: 177.1 MB / 203.8 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.46/2.46, allocations: 438.8 MB / 0.6826 GB, free: 13.62 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 7.765e-06/8.867e-06, allocations: 2.312 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.002566/0.002574, allocations: 2.499 MB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001848/0.004422, allocations: 1.716 MB / 0.8427 GB, free: 9.992 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.00453, allocations: 4 kB / 0.8427 GB, free: 9.988 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0005821/0.005112, allocations: 310.6 kB / 0.843 GB, free: 9.684 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0003531/0.005465, allocations: 286.6 kB / 0.8433 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.005774, allocations: 207.3 kB / 0.8435 GB, free: 9.199 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.006075, allocations: 418.5 kB / 0.8439 GB, free: 8.789 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 8.965e-05/0.006164, allocations: 46.88 kB / 0.8439 GB, free: 8.746 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004599/0.006624, allocations: 267.2 kB / 0.8442 GB, free: 8.504 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.006757, allocations: 139.6 kB / 0.8443 GB, free: 8.367 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.006783, allocations: 20 kB / 0.8443 GB, free: 8.348 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.006898, allocations: 83.88 kB / 0.8444 GB, free: 8.266 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.00029/0.007188, allocations: 139.5 kB / 0.8445 GB, free: 8.129 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.973e-05/0.007258, allocations: 91.59 kB / 0.8446 GB, free: 8.039 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0003095/0.007567, allocations: 354.5 kB / 0.845 GB, free: 7.691 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.423e-06/0.007569, allocations: 4 kB / 0.845 GB, free: 7.688 MB / 0.8073 GB Notification: Performance of FrontEnd: time 4.91e-07/0.007569, allocations: 0 / 0.845 GB, free: 7.688 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.007573, allocations: 0 / 0.845 GB, free: 7.688 MB / 0.8073 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.0006054/0.008178, allocations: 0.7486 MB / 0.8457 GB, free: 6.906 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.407e-05/0.008202, allocations: 12.61 kB / 0.8457 GB, free: 6.895 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.33e-05/0.008255, allocations: 44.89 kB / 0.8457 GB, free: 6.852 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.008545, allocations: 351.1 kB / 0.8461 GB, free: 6.48 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.008561, allocations: 8.562 kB / 0.8461 GB, free: 6.473 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.008577, allocations: 12.38 kB / 0.8461 GB, free: 6.461 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.008708, allocations: 120.3 kB / 0.8462 GB, free: 6.332 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.008714, allocations: 3.984 kB / 0.8462 GB, free: 6.328 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.008724, allocations: 12 kB / 0.8462 GB, free: 6.316 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.008728, allocations: 0 / 0.8462 GB, free: 6.316 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.188e-05/0.00877, allocations: 31.92 kB / 0.8463 GB, free: 6.285 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003537/0.009124, allocations: 297.7 kB / 0.8465 GB, free: 5.977 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.009229, allocations: 121.2 kB / 0.8467 GB, free: 5.848 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.712e-05/0.009257, allocations: 16.86 kB / 0.8467 GB, free: 5.828 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.748e-06/0.009266, allocations: 0 / 0.8467 GB, free: 5.828 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/0.009368, allocations: 119.8 kB / 0.8468 GB, free: 5.691 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=13): time 8.72e-07/0.009369, allocations: 4 kB / 0.8468 GB, free: 5.688 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13): time 0.000155/0.009524, allocations: 129.2 kB / 0.8469 GB, free: 5.559 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.986e-05/0.009544, allocations: 51.41 kB / 0.847 GB, free: 5.496 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.009878, allocations: 0.5563 MB / 0.8475 GB, free: 4.926 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.009897, allocations: 37.69 kB / 0.8476 GB, free: 4.883 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.645e-05/0.009974, allocations: 174.4 kB / 0.8477 GB, free: 4.707 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.01, allocations: 35.72 kB / 0.8478 GB, free: 4.672 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.243e-05/0.01005, allocations: 53.66 kB / 0.8478 GB, free: 4.613 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.01015, allocations: 378.6 kB / 0.8482 GB, free: 4.234 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.333e-05/0.01018, allocations: 22.81 kB / 0.8482 GB, free: 4.211 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.227e-05/0.01024, allocations: 119.6 kB / 0.8483 GB, free: 4.066 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.437e-05/0.01032, allocations: 81.98 kB / 0.8484 GB, free: 3.977 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.01032, allocations: 0 / 0.8484 GB, free: 3.977 MB / 0.8073 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001346/0.01045, allocations: 142.4 kB / 0.8485 GB, free: 3.832 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/0.01046, allocations: 6.344 kB / 0.8485 GB, free: 3.828 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.01047, allocations: 0 / 0.8485 GB, free: 3.828 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.01048, allocations: 4 kB / 0.8485 GB, free: 3.824 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.991e-05/0.01056, allocations: 32.02 kB / 0.8486 GB, free: 3.793 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-06/0.01056, allocations: 4 kB / 0.8486 GB, free: 3.789 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.896e-05/0.01063, allocations: 27.88 kB / 0.8486 GB, free: 3.762 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.01064, allocations: 8 kB / 0.8486 GB, free: 3.754 MB / 0.8073 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 8.986e-05/0.01073, allocations: 134.5 kB / 0.8487 GB, free: 3.609 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.01076, allocations: 31.97 kB / 0.8487 GB, free: 3.578 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.01089, allocations: 132.4 kB / 0.8489 GB, free: 3.441 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.01089, allocations: 0 / 0.8489 GB, free: 3.441 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.01089, allocations: 0 / 0.8489 GB, free: 3.441 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.01089, allocations: 4 kB / 0.8489 GB, free: 3.438 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.01104, allocations: 193.6 kB / 0.8491 GB, free: 3.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.01104, allocations: 0 / 0.8491 GB, free: 3.23 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.452e-05/0.01106, allocations: 15.94 kB / 0.8491 GB, free: 3.215 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01106, allocations: 11.88 kB / 0.8491 GB, free: 3.203 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.01107, allocations: 0 / 0.8491 GB, free: 3.203 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.01107, allocations: 0 / 0.8491 GB, free: 3.203 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01107, allocations: 0 / 0.8491 GB, free: 3.203 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.01118, allocations: 149.2 kB / 0.8492 GB, free: 3.039 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.01122, allocations: 51.55 kB / 0.8493 GB, free: 2.988 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.01125, allocations: 8 kB / 0.8493 GB, free: 2.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.974e-05/0.0113, allocations: 11.98 kB / 0.8493 GB, free: 2.969 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.01134, allocations: 19.97 kB / 0.8493 GB, free: 2.949 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.01135, allocations: 8 kB / 0.8493 GB, free: 2.941 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0001854/0.01153, allocations: 271.3 kB / 0.8496 GB, free: 2.676 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.01153, allocations: 0 / 0.8496 GB, free: 2.676 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001646/0.0117, allocations: 67.88 kB / 0.8497 GB, free: 2.609 MB / 0.8073 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.001054/0.01275, allocations: 0.5202 MB / 0.8502 GB, free: 2.316 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001179/0.01287, allocations: 84.25 kB / 0.8502 GB, free: 2.234 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.01287, allocations: 8 kB / 0.8502 GB, free: 2.227 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.583e-05/0.01292, allocations: 44.72 kB / 0.8503 GB, free: 2.18 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002103/0.01313, allocations: 97.23 kB / 0.8504 GB, free: 2.086 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007781/0.01391, allocations: 0.7388 MB / 0.8511 GB, free: 1.309 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.166e-05/0.01398, allocations: 136.2 kB / 0.8512 GB, free: 1.156 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 7.591e-05/0.01406, allocations: 50.94 kB / 0.8513 GB, free: 1.109 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.01418, allocations: 107.3 kB / 0.8514 GB, free: 1.004 MB / 0.8073 GB Notification: Performance of SimCode: time 3.61e-07/0.01418, allocations: 0 / 0.8514 GB, free: 1.004 MB / 0.8073 GB Notification: Performance of Templates: time 0.007682/0.02186, allocations: 4.981 MB / 0.8562 GB, free: 12.12 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.283082627225667]