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.001103/0.001103, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001326/0.001326, allocations: 195 kB / 16.14 MB, free: 6.711 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.478/1.478, allocations: 222.9 MB / 239.8 MB, free: 4.602 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.722/2.722, allocations: 437 MB / 0.7099 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002348/0.002348, allocations: 60.14 kB / 0.8685 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7771/0.7795, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004343/0.7839, allocations: 2.513 MB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002518/0.7864, allocations: 1.553 MB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.7866, allocations: 0 / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009287/0.7875, allocations: 311 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003969/0.7879, allocations: 191.3 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006406/0.7886, allocations: 244.8 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003961/0.789, allocations: 386.7 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.7892, allocations: 62.67 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/0.7894, allocations: 139.3 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001947/0.7896, allocations: 167.2 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.819e-05/0.7896, allocations: 8 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.7898, allocations: 67.89 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.7899, allocations: 135.4 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.7901, allocations: 178.5 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004845/0.7906, allocations: 478.2 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.7906, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.216e-06/0.7907, allocations: 3.984 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.7907, allocations: 0 / 1.023 GB, free: 12.35 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.001343/0.792, allocations: 0.8298 MB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.7921, allocations: 8.031 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.7922, allocations: 60.19 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.7927, allocations: 440.7 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.7928, allocations: 15.94 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.7928, allocations: 12 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.7931, allocations: 143.3 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.7932, allocations: 0 / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.7932, allocations: 3.984 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.7932, allocations: 7.938 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001845/0.7934, allocations: 67.97 kB / 1.024 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008642/0.7943, allocations: 0.5667 MB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.7946, allocations: 122.8 kB / 1.025 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.7947, allocations: 48.78 kB / 1.025 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.7947, allocations: 0 / 1.025 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.795, allocations: 119.3 kB / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 3.015e-06/0.795, allocations: 3.984 kB / 1.025 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0005338/0.7955, allocations: 233.1 kB / 1.025 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/0.7956, allocations: 81.05 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007501/0.7964, allocations: 0.6915 MB / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.7964, allocations: 25.7 kB / 1.026 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.7966, allocations: 268.3 kB / 1.026 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.7967, allocations: 39.55 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.2e-05/0.7967, allocations: 53.69 kB / 1.027 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001785/0.7969, allocations: 370.8 kB / 1.027 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.7971, allocations: 71.97 kB / 1.027 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.7973, allocations: 126.6 kB / 1.027 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.7975, allocations: 140.7 kB / 1.027 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.7975, allocations: 7.938 kB / 1.027 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004662/0.798, allocations: 264.8 kB / 1.027 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.7981, allocations: 8 kB / 1.027 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.7981, allocations: 4.062 kB / 1.028 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.7981, allocations: 0 / 1.028 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.7983, allocations: 35.92 kB / 1.028 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.7983, allocations: 7.938 kB / 1.028 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.7984, allocations: 19.92 kB / 1.028 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.7985, allocations: 11.98 kB / 1.028 GB, free: 7.23 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.0002321/0.7987, allocations: 203.5 kB / 1.028 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.966e-05/0.7988, allocations: 63.19 kB / 1.028 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.9e-05/0.7989, allocations: 61.05 kB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.7989, allocations: 0 / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.7989, allocations: 0 / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.7989, allocations: 0 / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003644/0.7993, allocations: 373.4 kB / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.7993, allocations: 7.875 kB / 1.028 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.43e-05/0.7993, allocations: 7.984 kB / 1.028 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.7994, allocations: 4 kB / 1.028 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.7994, allocations: 0 / 1.028 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.7994, allocations: 0 / 1.028 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.7994, allocations: 0 / 1.028 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003778/0.7998, allocations: 224.3 kB / 1.028 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.7999, allocations: 128.3 kB / 1.029 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.571e-05/0.8, allocations: 15.98 kB / 1.029 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.8001, allocations: 4 kB / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.275e-05/0.8001, allocations: 19.97 kB / 1.029 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.8002, allocations: 7.938 kB / 1.029 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0005309/0.8007, allocations: 475 kB / 1.029 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8007, allocations: 0 / 1.029 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003075/0.801, allocations: 71.89 kB / 1.029 GB, free: 5.504 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.001096/0.8021, allocations: 429.4 kB / 1.03 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000378/0.8025, allocations: 151.9 kB / 1.03 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.8025, allocations: 128 / 1.03 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.8027, allocations: 55.92 kB / 1.03 GB, free: 5.039 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.8032, allocations: 105.5 kB / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.8045, allocations: 0.9518 MB / 1.031 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004641/0.805, allocations: 0.8575 MB / 1.032 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001291/0.8051, allocations: 42.95 kB / 1.032 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.293e-05/0.8052, allocations: 35.42 kB / 1.032 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.8052, allocations: 0 / 1.032 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of Templates: time 0.009452/0.8147, allocations: 4.12 MB / 1.036 GB, free: 14.92 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=480 -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