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.001847/0.001847, allocations: 88.72 kB / 19.44 MB, free: 356 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.0022/0.0022, allocations: 157.7 kB / 22.75 MB, free: 1.684 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 1.567/1.567, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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 3.303/3.303, allocations: 429.6 MB / 0.673 GB, free: 3.871 MB / 0.6355 GB " [Timeout remaining time 176] 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 3.367e-06/3.367e-06, allocations: 0 / 0.8776 GB, free: 6.465 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.081e-05/4.417e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.461 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00875/0.008794, allocations: 2.428 MB / 0.88 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.006279/0.01507, allocations: 1.617 MB / 0.8816 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003961/0.01547, allocations: 9.031 kB / 0.8816 GB, free: 2.418 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.002046/0.01751, allocations: 323.5 kB / 0.8819 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.001387/0.0189, allocations: 277.5 kB / 0.8821 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.01998, allocations: 211.3 kB / 0.8823 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.001043/0.02103, allocations: 419.8 kB / 0.8827 GB, free: 1.223 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/0.02131, allocations: 44.84 kB / 0.8828 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006955/0.022, allocations: 215.4 kB / 0.883 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004698/0.02247, allocations: 151.6 kB / 0.8831 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 9.933e-05/0.02257, allocations: 20 kB / 0.8831 GB, free: 0.8008 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003801/0.02295, allocations: 87.81 kB / 0.8832 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0003227/0.02328, allocations: 139.5 kB / 0.8834 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0003153/0.02359, allocations: 99.59 kB / 0.8835 GB, free: 492 kB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.001403/0.02499, allocations: 0.4943 MB / 0.8839 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.025, allocations: 0 / 0.8839 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of FrontEnd: time 3.126e-06/0.02501, allocations: 0 / 0.8839 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.676e-05/0.02503, allocations: 0 / 0.8839 GB, free: 15.98 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.002794/0.02783, allocations: 0.7968 MB / 0.8847 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 6.456e-05/0.02789, allocations: 12.03 kB / 0.8847 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.02817, allocations: 68.52 kB / 0.8848 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.02955, allocations: 386.6 kB / 0.8852 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.0296, allocations: 8.562 kB / 0.8852 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.684e-05/0.02965, allocations: 12.38 kB / 0.8852 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/0.03025, allocations: 157.5 kB / 0.8853 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.03027, allocations: 0 / 0.8853 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.0303, allocations: 4 kB / 0.8853 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.03032, allocations: 8 kB / 0.8853 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003763/0.03069, allocations: 71.95 kB / 0.8854 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.03243, allocations: 0.4923 MB / 0.8859 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006536/0.03308, allocations: 122.7 kB / 0.886 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.03332, allocations: 52.83 kB / 0.8861 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.03335, allocations: 0 / 0.8861 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005183/0.03387, allocations: 145 kB / 0.8862 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=13): time 2.204e-06/0.03387, allocations: 0 / 0.8862 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of matching and sorting (n=13): time 0.001127/0.035, allocations: 251.9 kB / 0.8864 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.354e-05/0.03508, allocations: 59.39 kB / 0.8865 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001254/0.03634, allocations: 0.7034 MB / 0.8872 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.064e-05/0.03638, allocations: 33.7 kB / 0.8872 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.0367, allocations: 276.4 kB / 0.8875 GB, free: 12.19 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.141e-05/0.03675, allocations: 31.73 kB / 0.8875 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.03689, allocations: 57.7 kB / 0.8876 GB, free: 12.1 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002707/0.03716, allocations: 378.7 kB / 0.8879 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.03736, allocations: 75.95 kB / 0.888 GB, free: 11.64 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.03763, allocations: 172.8 kB / 0.8882 GB, free: 11.45 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.03795, allocations: 139.6 kB / 0.8883 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.03795, allocations: 0 / 0.8883 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006136/0.03857, allocations: 290.2 kB / 0.8886 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.03859, allocations: 10.75 kB / 0.8886 GB, free: 11.01 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.0386, allocations: 0 / 0.8886 GB, free: 11.01 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.863e-05/0.03862, allocations: 4 kB / 0.8886 GB, free: 11 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.03881, allocations: 39.92 kB / 0.8886 GB, free: 10.96 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.03883, allocations: 7.938 kB / 0.8886 GB, free: 10.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.03902, allocations: 15.94 kB / 0.8887 GB, free: 10.94 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.03906, allocations: 12 kB / 0.8887 GB, free: 10.93 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 0.0002987/0.03936, allocations: 211.7 kB / 0.8889 GB, free: 10.71 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.03949, allocations: 63.61 kB / 0.8889 GB, free: 10.65 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000514/0.04, allocations: 225.8 kB / 0.8891 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.04001, allocations: 4 kB / 0.8891 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.04002, allocations: 3.938 kB / 0.8891 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.04002, allocations: 0 / 0.8891 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004498/0.04047, allocations: 297 kB / 0.8894 GB, free: 10.09 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.04047, allocations: 0 / 0.8894 GB, free: 10.09 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.04054, allocations: 19.92 kB / 0.8895 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.04054, allocations: 0 / 0.8895 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.04056, allocations: 7.938 kB / 0.8895 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/0.04056, allocations: 4 kB / 0.8895 GB, free: 10.06 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.04056, allocations: 4 kB / 0.8895 GB, free: 10.06 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000485/0.04105, allocations: 244.6 kB / 0.8897 GB, free: 9.801 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.04116, allocations: 55.52 kB / 0.8898 GB, free: 9.746 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.591e-05/0.04123, allocations: 11.98 kB / 0.8898 GB, free: 9.734 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.04138, allocations: 11.98 kB / 0.8898 GB, free: 9.723 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.054e-05/0.04147, allocations: 19.91 kB / 0.8898 GB, free: 9.703 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/0.04149, allocations: 15.92 kB / 0.8898 GB, free: 9.688 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000718/0.04221, allocations: 483 kB / 0.8903 GB, free: 9.219 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.04221, allocations: 0 / 0.8903 GB, free: 9.219 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003878/0.0426, allocations: 67.92 kB / 0.8903 GB, free: 9.152 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.002179/0.04478, allocations: 455.7 kB / 0.8908 GB, free: 8.883 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004349/0.04521, allocations: 147.9 kB / 0.8909 GB, free: 8.738 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.04521, allocations: 0 / 0.8909 GB, free: 8.738 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.04539, allocations: 55.91 kB / 0.891 GB, free: 8.684 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006137/0.046, allocations: 116.8 kB / 0.8911 GB, free: 8.582 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.0477, allocations: 0.8658 MB / 0.8919 GB, free: 7.68 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.04805, allocations: 262.7 kB / 0.8922 GB, free: 7.402 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003245/0.04837, allocations: 50.95 kB / 0.8922 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.04848, allocations: 36.48 kB / 0.8923 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of SimCode: time 7.22e-07/0.04848, allocations: 0 / 0.8923 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of Templates: time 0.01283/0.06131, allocations: 4.615 MB / 0.8968 GB, free: 2.77 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.951200073002838]