Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 189.7 kB / 16.25 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 239.9 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.831/2.831, allocations: 437 MB / 0.7101 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 63.89 kB / 0.8687 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7518/0.7539, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004733/0.7586, allocations: 2.52 MB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002796/0.7615, allocations: 1.55 MB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.7617, allocations: 0 / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.7628, allocations: 307 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004916/0.7633, allocations: 195.3 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006803/0.764, allocations: 256 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004796/0.7645, allocations: 394.8 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.7647, allocations: 66.67 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.7649, allocations: 167.2 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.7651, allocations: 167.2 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.195e-05/0.7652, allocations: 24 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.7654, allocations: 83.88 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.7656, allocations: 131.5 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002037/0.7658, allocations: 186.6 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005928/0.7664, allocations: 0.4903 MB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.7664, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7664, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.7664, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 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.00133/0.7678, allocations: 0.8298 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.7678, allocations: 8.031 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.7679, allocations: 60.19 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005968/0.7685, allocations: 440.7 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.7686, allocations: 11.94 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.7686, allocations: 8 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003286/0.7689, allocations: 146.5 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.769, allocations: 4 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.769, allocations: 4 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.769, allocations: 7.938 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.7692, allocations: 67.95 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009804/0.7702, allocations: 0.5705 MB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.7705, allocations: 122.7 kB / 1.025 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.7706, allocations: 52.83 kB / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.7707, allocations: 0 / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002738/0.771, allocations: 115.3 kB / 1.026 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.771, allocations: 0 / 1.026 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0005609/0.7715, allocations: 234 kB / 1.026 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.297e-05/0.7716, allocations: 81.09 kB / 1.026 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008618/0.7725, allocations: 0.6876 MB / 1.027 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.7725, allocations: 29.7 kB / 1.027 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.7728, allocations: 272.3 kB / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.55e-05/0.7728, allocations: 35.55 kB / 1.027 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.773, allocations: 53.7 kB / 1.027 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002251/0.7732, allocations: 370.8 kB / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.7734, allocations: 75.91 kB / 1.027 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.7736, allocations: 122.9 kB / 1.027 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/0.7738, allocations: 134.3 kB / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.7739, allocations: 3.938 kB / 1.028 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004802/0.7743, allocations: 270.8 kB / 1.028 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.7744, allocations: 11.98 kB / 1.028 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/0.7744, allocations: 0 / 1.028 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.7744, allocations: 4.062 kB / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.7746, allocations: 39.92 kB / 1.028 GB, free: 7.145 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.7746, allocations: 3.938 kB / 1.028 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.7748, allocations: 23.92 kB / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.7748, allocations: 8 kB / 1.028 GB, free: 7.109 MB / 0.7794 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.0002666/0.7751, allocations: 207.5 kB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.936e-05/0.7752, allocations: 63.19 kB / 1.028 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.7753, allocations: 64.98 kB / 1.028 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.7753, allocations: 0 / 1.028 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.7753, allocations: 0 / 1.028 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.7753, allocations: 3.984 kB / 1.028 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004055/0.7758, allocations: 365.4 kB / 1.029 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.7758, allocations: 7.938 kB / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.332e-05/0.7758, allocations: 4 kB / 1.029 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.7758, allocations: 0 / 1.029 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.7758, allocations: 4 kB / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.7758, allocations: 0 / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.7758, allocations: 0 / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003944/0.7763, allocations: 224.8 kB / 1.029 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.7764, allocations: 132.3 kB / 1.029 GB, free: 5.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.336e-05/0.7764, allocations: 7.938 kB / 1.029 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.7766, allocations: 15.98 kB / 1.029 GB, free: 5.934 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.508e-05/0.7766, allocations: 11.98 kB / 1.029 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.7767, allocations: 11.98 kB / 1.029 GB, free: 5.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005607/0.7772, allocations: 471 kB / 1.029 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7772, allocations: 0 / 1.029 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003288/0.7776, allocations: 67.91 kB / 1.029 GB, free: 5.387 MB / 0.7794 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 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * 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.001636/0.7792, allocations: 432.3 kB / 1.03 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000449/0.7797, allocations: 159.8 kB / 1.03 GB, free: 4.961 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.7797, allocations: 4 kB / 1.03 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.7798, allocations: 56.09 kB / 1.03 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005505/0.7804, allocations: 101.7 kB / 1.03 GB, free: 4.816 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.7819, allocations: 0.9422 MB / 1.031 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.7825, allocations: 0.8611 MB / 1.032 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001599/0.7827, allocations: 50.88 kB / 1.032 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.257e-05/0.7828, allocations: 35.42 kB / 1.032 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.7828, allocations: 0 / 1.032 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of Templates: time 0.01058/0.7933, allocations: 4.243 MB / 1.036 GB, free: 14.66 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches