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.0009193/0.0009193, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001001/0.001001, allocations: 169 kB / 23.02 MB, free: 1.547 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.9382/0.9382, allocations: 177.1 MB / 203.4 MB, free: 5.656 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.017/2.017, allocations: 429.5 MB / 0.6732 GB, free: 4.062 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.613e-06/1.613e-06, allocations: 3.938 kB / 0.8782 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.265e-05, allocations: 5.266 kB / 0.8782 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.005523/0.005546, allocations: 2.524 MB / 0.8807 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.005326/0.01087, allocations: 1.687 MB / 0.8823 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.01101, allocations: 0 / 0.8823 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000841/0.01185, allocations: 324.7 kB / 0.8826 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.003495/0.01534, allocations: 281.4 kB / 0.8829 GB, free: 1.523 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.01577, allocations: 207.4 kB / 0.8831 GB, free: 1.32 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0004269/0.0162, allocations: 418.5 kB / 0.8835 GB, free: 0.9102 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.01633, allocations: 50.42 kB / 0.8835 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006496/0.01698, allocations: 262.2 kB / 0.8838 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.01717, allocations: 143.5 kB / 0.8839 GB, free: 496 kB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.845e-05/0.01721, allocations: 20.62 kB / 0.8839 GB, free: 476 kB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.01737, allocations: 87.81 kB / 0.884 GB, free: 388 kB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.01749, allocations: 133.1 kB / 0.8842 GB, free: 256 kB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 9.849e-05/0.01759, allocations: 99.58 kB / 0.8842 GB, free: 156 kB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004669/0.01805, allocations: 358.5 kB / 0.8846 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.01806, allocations: 0 / 0.8846 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 8.32e-07/0.01806, allocations: 0.9062 kB / 0.8846 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.01806, allocations: 3.938 kB / 0.8846 GB, free: 15.8 MB / 0.8542 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.003999/0.02206, allocations: 0.8936 MB / 0.8855 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.0221, allocations: 12.03 kB / 0.8855 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.02221, allocations: 72.52 kB / 0.8855 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004874/0.02269, allocations: 401.8 kB / 0.8859 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.02272, allocations: 8.562 kB / 0.8859 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.112e-05/0.02274, allocations: 12.38 kB / 0.8859 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.02294, allocations: 121 kB / 0.8861 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.02295, allocations: 0 / 0.8861 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.02296, allocations: 8 kB / 0.8861 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.02297, allocations: 0 / 0.8861 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.534e-05/0.02307, allocations: 35.97 kB / 0.8861 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005713/0.02364, allocations: 0.5658 MB / 0.8867 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.02378, allocations: 91.22 kB / 0.8867 GB, free: 13.46 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.181e-05/0.02383, allocations: 27.67 kB / 0.8868 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.02384, allocations: 4 kB / 0.8868 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001312/0.02397, allocations: 126.6 kB / 0.8869 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.02397, allocations: 0 / 0.8869 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of matching and sorting (n=13): time 0.0002831/0.02425, allocations: 196.6 kB / 0.8871 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.02428, allocations: 51.41 kB / 0.8871 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005621/0.02484, allocations: 0.6518 MB / 0.8878 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.02486, allocations: 33.7 kB / 0.8878 GB, free: 12.31 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.02503, allocations: 339.2 kB / 0.8881 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.097e-05/0.02506, allocations: 43.66 kB / 0.8882 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.139e-05/0.02512, allocations: 63.34 kB / 0.8882 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.02526, allocations: 0.5625 MB / 0.8888 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.292e-05/0.02532, allocations: 31.97 kB / 0.8888 GB, free: 11.26 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.847e-05/0.0254, allocations: 137.8 kB / 0.8889 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.02551, allocations: 97.52 kB / 0.889 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.02552, allocations: 0 / 0.889 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002073/0.02572, allocations: 206.6 kB / 0.8892 GB, free: 10.78 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.02574, allocations: 10.66 kB / 0.8892 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.02574, allocations: 0 / 0.8892 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.02575, allocations: 4 kB / 0.8892 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.663e-05/0.02585, allocations: 35.91 kB / 0.8893 GB, free: 10.73 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.02585, allocations: 12 kB / 0.8893 GB, free: 10.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.837e-05/0.02593, allocations: 19.89 kB / 0.8893 GB, free: 10.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.02595, allocations: 11.98 kB / 0.8893 GB, free: 10.69 MB / 0.8542 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 9.921e-05/0.02605, allocations: 174.5 kB / 0.8895 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.253e-05/0.02609, allocations: 59.62 kB / 0.8895 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002008/0.02629, allocations: 178.8 kB / 0.8897 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.02629, allocations: 3.938 kB / 0.8897 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.0263, allocations: 0 / 0.8897 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.0263, allocations: 7.922 kB / 0.8897 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.02653, allocations: 340.4 kB / 0.89 GB, free: 9.883 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.02653, allocations: 0 / 0.89 GB, free: 9.883 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-05/0.02656, allocations: 12 kB / 0.8901 GB, free: 9.871 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.02656, allocations: 3.984 kB / 0.8901 GB, free: 9.867 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.02657, allocations: 7.984 kB / 0.8901 GB, free: 9.859 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.02657, allocations: 4 kB / 0.8901 GB, free: 9.855 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.02657, allocations: 0 / 0.8901 GB, free: 9.855 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.02675, allocations: 219.8 kB / 0.8903 GB, free: 9.617 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.376e-05/0.0268, allocations: 55.56 kB / 0.8903 GB, free: 9.562 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.02683, allocations: 8 kB / 0.8903 GB, free: 9.555 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.483e-05/0.02688, allocations: 15.98 kB / 0.8904 GB, free: 9.539 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.695e-05/0.02693, allocations: 19.91 kB / 0.8904 GB, free: 9.52 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.02695, allocations: 8 kB / 0.8904 GB, free: 9.512 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002684/0.02721, allocations: 406.9 kB / 0.8908 GB, free: 9.121 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.02721, allocations: 4 kB / 0.8908 GB, free: 9.117 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002009/0.02742, allocations: 67.92 kB / 0.8908 GB, free: 9.051 MB / 0.8542 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.001019/0.02843, allocations: 402.8 kB / 0.8912 GB, free: 8.789 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001852/0.02862, allocations: 102 kB / 0.8913 GB, free: 8.688 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.02862, allocations: 0 / 0.8913 GB, free: 8.688 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.211e-05/0.02868, allocations: 51.59 kB / 0.8914 GB, free: 8.633 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.02899, allocations: 117 kB / 0.8915 GB, free: 8.523 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008973/0.02988, allocations: 0.7464 MB / 0.8922 GB, free: 7.742 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.902e-05/0.02996, allocations: 136.2 kB / 0.8923 GB, free: 7.59 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.429e-05/0.03005, allocations: 38.94 kB / 0.8924 GB, free: 7.551 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.032e-05/0.03011, allocations: 32.5 kB / 0.8924 GB, free: 7.516 MB / 0.8542 GB Notification: Performance of SimCode: time 6.42e-07/0.03011, allocations: 0 / 0.8924 GB, free: 7.516 MB / 0.8542 GB Notification: Performance of Templates: time 0.007452/0.03756, allocations: 4.919 MB / 0.8972 GB, free: 2.68 MB / 0.8542 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.200938226189464]