Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001193/0.001193, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.001421/0.001421, allocations: 161 kB / 23.82 MB, free: 0.7539 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.9846/0.9846, allocations: 177.1 MB / 204.2 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.781/1.781, allocations: 359 MB / 0.6052 GB, free: 10.97 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 0.7871 GB, free: 12.47 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/2.865e-05, allocations: 6.25 kB / 0.7871 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003253/0.003282, allocations: 2.528 MB / 0.7896 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002207/0.005489, allocations: 1.682 MB / 0.7912 GB, free: 8.262 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.005646, allocations: 3.938 kB / 0.7912 GB, free: 8.258 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0008589/0.006505, allocations: 320.5 kB / 0.7915 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0004718/0.006977, allocations: 275.7 kB / 0.7918 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004566/0.007434, allocations: 209 kB / 0.792 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003852/0.007819, allocations: 418.5 kB / 0.7924 GB, free: 7.07 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.007956, allocations: 46.05 kB / 0.7924 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.008185, allocations: 219.4 kB / 0.7927 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.008369, allocations: 151.5 kB / 0.7928 GB, free: 6.668 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.719e-05/0.008406, allocations: 21.75 kB / 0.7928 GB, free: 6.648 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.008576, allocations: 83.88 kB / 0.7929 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.008703, allocations: 135.5 kB / 0.793 GB, free: 6.434 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 9.585e-05/0.008799, allocations: 99.58 kB / 0.7931 GB, free: 6.336 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004146/0.009213, allocations: 351.7 kB / 0.7935 GB, free: 5.992 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.009218, allocations: 4 kB / 0.7935 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.362e-06/0.009219, allocations: 0 / 0.7935 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.009226, allocations: 0 / 0.7935 GB, free: 5.988 MB / 0.7448 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.0009075/0.01013, allocations: 0.9023 MB / 0.7943 GB, free: 5.043 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.01017, allocations: 12.03 kB / 0.7944 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.398e-05/0.01027, allocations: 74.23 kB / 0.7944 GB, free: 4.961 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004205/0.01069, allocations: 378.2 kB / 0.7948 GB, free: 4.562 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.01071, allocations: 4.562 kB / 0.7948 GB, free: 4.559 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.01073, allocations: 12.38 kB / 0.7948 GB, free: 4.547 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.01092, allocations: 124.1 kB / 0.7949 GB, free: 4.414 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.01093, allocations: 3.938 kB / 0.7949 GB, free: 4.41 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.01095, allocations: 4.531 kB / 0.7949 GB, free: 4.406 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.01096, allocations: 4 kB / 0.7949 GB, free: 4.402 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.73e-05/0.01104, allocations: 40.62 kB / 0.795 GB, free: 4.363 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000671/0.01171, allocations: 0.5586 MB / 0.7955 GB, free: 3.77 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.01188, allocations: 100.4 kB / 0.7956 GB, free: 3.66 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.758e-05/0.01194, allocations: 32.2 kB / 0.7956 GB, free: 3.625 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.01196, allocations: 5.375 kB / 0.7956 GB, free: 3.621 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001651/0.01213, allocations: 122.7 kB / 0.7958 GB, free: 3.48 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.01213, allocations: 0 / 0.7958 GB, free: 3.48 MB / 0.7448 GB Notification: Performance of matching and sorting (n=13): time 0.0003197/0.01245, allocations: 192.2 kB / 0.7959 GB, free: 3.289 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.01248, allocations: 63.39 kB / 0.796 GB, free: 3.215 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005078/0.01299, allocations: 0.6518 MB / 0.7966 GB, free: 2.543 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.01301, allocations: 30.52 kB / 0.7967 GB, free: 2.508 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.01319, allocations: 339.2 kB / 0.797 GB, free: 2.172 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.384e-05/0.01323, allocations: 44.61 kB / 0.797 GB, free: 2.129 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.895e-05/0.0133, allocations: 59.3 kB / 0.7971 GB, free: 2.062 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.01347, allocations: 0.5664 MB / 0.7976 GB, free: 1.484 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.407e-05/0.01353, allocations: 33.31 kB / 0.7977 GB, free: 1.453 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.01364, allocations: 143.1 kB / 0.7978 GB, free: 1.281 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.01375, allocations: 91.67 kB / 0.7979 GB, free: 1.184 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01376, allocations: 2.031 kB / 0.7979 GB, free: 1.184 MB / 0.7448 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002423/0.014, allocations: 205.2 kB / 0.7981 GB, free: 0.9766 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.01401, allocations: 11.88 kB / 0.7981 GB, free: 0.9648 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.01402, allocations: 0 / 0.7981 GB, free: 0.9648 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.01404, allocations: 4.688 kB / 0.7981 GB, free: 0.9609 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.01415, allocations: 31.98 kB / 0.7981 GB, free: 0.9297 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.01416, allocations: 11.38 kB / 0.7982 GB, free: 0.9219 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.38e-05/0.01424, allocations: 23.88 kB / 0.7982 GB, free: 0.8984 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.01426, allocations: 4 kB / 0.7982 GB, free: 0.8945 MB / 0.7448 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.0001156/0.01438, allocations: 178.5 kB / 0.7984 GB, free: 0.7109 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.01443, allocations: 71.58 kB / 0.7984 GB, free: 0.6406 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.01467, allocations: 174.8 kB / 0.7986 GB, free: 468 kB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.01468, allocations: 0 / 0.7986 GB, free: 468 kB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.01468, allocations: 4.5 kB / 0.7986 GB, free: 464 kB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.01469, allocations: 0.5625 kB / 0.7986 GB, free: 464 kB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.01495, allocations: 344.4 kB / 0.7989 GB, free: 84 kB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.01495, allocations: 5.219 kB / 0.7989 GB, free: 80 kB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.439e-05/0.01499, allocations: 8 kB / 0.7989 GB, free: 72 kB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.01499, allocations: 0 / 0.7989 GB, free: 72 kB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.015, allocations: 8.969 kB / 0.7989 GB, free: 64 kB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.015, allocations: 0 / 0.7989 GB, free: 64 kB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.01501, allocations: 3.984 kB / 0.7989 GB, free: 60 kB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002231/0.01523, allocations: 228.2 kB / 0.7992 GB, free: 15.82 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.01528, allocations: 55.62 kB / 0.7992 GB, free: 15.76 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.01532, allocations: 3.984 kB / 0.7992 GB, free: 15.76 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.182e-05/0.01538, allocations: 12.62 kB / 0.7992 GB, free: 15.75 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.01543, allocations: 16.62 kB / 0.7993 GB, free: 15.73 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.01545, allocations: 11.92 kB / 0.7993 GB, free: 15.72 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0002865/0.01574, allocations: 407.6 kB / 0.7997 GB, free: 15.33 MB / 0.7605 GB Notification: Performance of sort global known variables: time 5e-08/0.01574, allocations: 0 / 0.7997 GB, free: 15.33 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0002294/0.01597, allocations: 74.31 kB / 0.7997 GB, free: 15.26 MB / 0.7605 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.0009155/0.01688, allocations: 424.6 kB / 0.8001 GB, free: 14.99 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0002058/0.01709, allocations: 102 kB / 0.8002 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01709, allocations: 0 / 0.8002 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 6.81e-05/0.01716, allocations: 55.59 kB / 0.8003 GB, free: 14.83 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.01748, allocations: 91.72 kB / 0.8004 GB, free: 14.74 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.01849, allocations: 0.7504 MB / 0.8011 GB, free: 13.96 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.122e-05/0.01857, allocations: 136.2 kB / 0.8012 GB, free: 13.8 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 7.965e-05/0.01865, allocations: 38.95 kB / 0.8013 GB, free: 13.77 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.329e-05/0.01871, allocations: 36.48 kB / 0.8013 GB, free: 13.73 MB / 0.7605 GB Notification: Performance of SimCode: time 7.41e-07/0.01871, allocations: 0 / 0.8013 GB, free: 13.73 MB / 0.7605 GB Notification: Performance of Templates: time 0.007855/0.02657, allocations: 4.624 MB / 0.8058 GB, free: 9.199 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.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.483557848725468]