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.001346/0.001346, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002021/0.003367, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001302/0.001302, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001564/0.002866, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 1.037/1.037, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1012/1.138, allocations: 53.67 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.338/2.338, allocations: 446.7 MB / 0.6745 GB, free: 6.238 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2674/2.605, allocations: 145.9 MB / 0.817 GB, free: 4.227 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.843e-06/1.843e-06, allocations: 0 / 0.8183 GB, free: 2.906 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.373e-05/2.558e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.902 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004249/0.004274, allocations: 2.551 MB / 0.8208 GB, free: 340 kB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.002963/0.007237, allocations: 1.716 MB / 0.8225 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000253/0.00749, allocations: 8 kB / 0.8225 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0009625/0.008453, allocations: 310.6 kB / 0.8228 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.000688/0.009141, allocations: 282.6 kB / 0.8231 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006143/0.009755, allocations: 207.4 kB / 0.8233 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.000569/0.01032, allocations: 410.5 kB / 0.8237 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.0105, allocations: 54.75 kB / 0.8237 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009613/0.01146, allocations: 358.3 kB / 0.824 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002598/0.01172, allocations: 139.5 kB / 0.8242 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.528e-05/0.01176, allocations: 19.94 kB / 0.8242 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002728/0.01203, allocations: 91.88 kB / 0.8243 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.0122, allocations: 119.6 kB / 0.8244 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.01232, allocations: 83.62 kB / 0.8245 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0005761/0.0129, allocations: 330.6 kB / 0.8248 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.016e-05/0.01292, allocations: 7.938 kB / 0.8248 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.743e-06/0.01292, allocations: 0 / 0.8248 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.232e-05/0.01294, allocations: 0 / 0.8248 GB, free: 12.25 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.001404/0.01435, allocations: 0.8226 MB / 0.8256 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.01439, allocations: 12.56 kB / 0.8256 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.394e-05/0.01449, allocations: 44.89 kB / 0.8257 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.01496, allocations: 355.2 kB / 0.826 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.01499, allocations: 8.562 kB / 0.826 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.01501, allocations: 12.38 kB / 0.826 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002118/0.01522, allocations: 118.3 kB / 0.8261 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.01523, allocations: 3.984 kB / 0.8261 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.01525, allocations: 8 kB / 0.8261 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.01525, allocations: 0 / 0.8261 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.491e-05/0.01533, allocations: 26.23 kB / 0.8262 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006313/0.01596, allocations: 305.7 kB / 0.8265 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.01613, allocations: 121.2 kB / 0.8266 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.143e-05/0.01618, allocations: 16.86 kB / 0.8266 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.01619, allocations: 0 / 0.8266 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001886/0.01638, allocations: 111.9 kB / 0.8267 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=13): time 2.034e-06/0.01638, allocations: 0 / 0.8267 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13): time 0.0002468/0.01663, allocations: 119 kB / 0.8268 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.01667, allocations: 63.41 kB / 0.8269 GB, free: 9.988 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005535/0.01722, allocations: 0.5524 MB / 0.8274 GB, free: 9.426 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.01725, allocations: 37.64 kB / 0.8274 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.01737, allocations: 182.3 kB / 0.8276 GB, free: 9.199 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.447e-05/0.01742, allocations: 35.72 kB / 0.8277 GB, free: 9.164 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.77e-05/0.0175, allocations: 53.66 kB / 0.8277 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.01764, allocations: 378.6 kB / 0.8281 GB, free: 8.727 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.01777, allocations: 22.81 kB / 0.8281 GB, free: 8.703 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.01787, allocations: 126.7 kB / 0.8282 GB, free: 8.555 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.01799, allocations: 86.95 kB / 0.8283 GB, free: 8.461 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.018, allocations: 0 / 0.8283 GB, free: 8.461 MB / 0.8073 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002304/0.01823, allocations: 140.3 kB / 0.8284 GB, free: 8.316 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.01825, allocations: 4 kB / 0.8284 GB, free: 8.312 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.01825, allocations: 0 / 0.8284 GB, free: 8.312 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.01827, allocations: 4 kB / 0.8284 GB, free: 8.309 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.01843, allocations: 39.91 kB / 0.8285 GB, free: 8.27 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.01843, allocations: 7.984 kB / 0.8285 GB, free: 8.262 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.01855, allocations: 15.95 kB / 0.8285 GB, free: 8.246 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.01857, allocations: 16.05 kB / 0.8285 GB, free: 8.23 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 0.0001353/0.01871, allocations: 134.5 kB / 0.8286 GB, free: 8.09 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.01876, allocations: 35.95 kB / 0.8287 GB, free: 8.055 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002256/0.01898, allocations: 126.8 kB / 0.8288 GB, free: 7.918 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.01899, allocations: 0 / 0.8288 GB, free: 7.918 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.01899, allocations: 4 kB / 0.8288 GB, free: 7.914 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.01899, allocations: 0 / 0.8288 GB, free: 7.914 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.01922, allocations: 197.6 kB / 0.829 GB, free: 7.703 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.01923, allocations: 0 / 0.829 GB, free: 7.703 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.819e-05/0.01929, allocations: 15.94 kB / 0.829 GB, free: 7.688 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.246e-05/0.01936, allocations: 59.48 kB / 0.8291 GB, free: 7.629 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.01936, allocations: 0 / 0.8291 GB, free: 7.629 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.01938, allocations: 8 kB / 0.8291 GB, free: 7.621 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.01938, allocations: 0 / 0.8291 GB, free: 7.621 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.01938, allocations: 0 / 0.8291 GB, free: 7.621 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.01957, allocations: 137.9 kB / 0.8292 GB, free: 7.469 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.003e-05/0.01962, allocations: 15.92 kB / 0.8292 GB, free: 7.453 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.888e-05/0.01971, allocations: 4 kB / 0.8292 GB, free: 7.449 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.373e-05/0.01977, allocations: 23.91 kB / 0.8292 GB, free: 7.426 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.01979, allocations: 15.98 kB / 0.8293 GB, free: 7.41 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0003795/0.02017, allocations: 267.4 kB / 0.8295 GB, free: 7.152 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.3e-07/0.02017, allocations: 0 / 0.8295 GB, free: 7.152 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002879/0.02046, allocations: 67.89 kB / 0.8296 GB, free: 7.086 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.001369/0.02183, allocations: 0.563 MB / 0.8301 GB, free: 6.793 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002007/0.02203, allocations: 84.67 kB / 0.8302 GB, free: 6.707 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/0.02204, allocations: 12.12 kB / 0.8302 GB, free: 6.695 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.553e-05/0.0221, allocations: 48.58 kB / 0.8303 GB, free: 6.648 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.02242, allocations: 117.8 kB / 0.8304 GB, free: 6.535 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.02405, allocations: 0.7582 MB / 0.8311 GB, free: 5.742 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.587e-05/0.02412, allocations: 136.1 kB / 0.8312 GB, free: 5.59 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 8.835e-05/0.02421, allocations: 42.94 kB / 0.8313 GB, free: 5.547 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.02435, allocations: 115.2 kB / 0.8314 GB, free: 5.434 MB / 0.8073 GB Notification: Performance of SimCode: time 9.31e-07/0.02435, allocations: 0 / 0.8314 GB, free: 5.434 MB / 0.8073 GB Notification: Performance of Templates: time 0.007819/0.03217, allocations: 5.095 MB / 0.8364 GB, free: 452 kB / 0.8073 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 -ignoreHideResult -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.ref.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.4602734269574285]