Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.005924/0.005924, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.001138/0.001138, allocations: 190 kB / 16.67 MB, free: 5.934 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.704/2.704, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 67.88 kB / 0.9509 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9244/0.9257, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00631/0.932, allocations: 2.467 MB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003781/0.9359, allocations: 1.569 MB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00054/0.9364, allocations: 3.281 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001616/0.9381, allocations: 329.4 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008938/0.939, allocations: 215.2 kB / 1.092 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.9402, allocations: 273.5 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009101/0.9411, allocations: 394.5 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.9414, allocations: 71.38 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005015/0.9419, allocations: 162.7 kB / 1.093 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003728/0.9423, allocations: 164 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.9424, allocations: 26.94 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003103/0.9427, allocations: 72.77 kB / 1.094 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002041/0.9429, allocations: 133.8 kB / 1.094 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.9432, allocations: 191.9 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.9442, allocations: 0.5008 MB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.9443, allocations: 0 / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.474e-06/0.9443, allocations: 0.9062 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.433e-05/0.9443, allocations: 0 / 1.094 GB, free: 1.551 MB / 0.8575 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.001902/0.9462, allocations: 0.8517 MB / 1.095 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.9463, allocations: 14.61 kB / 1.095 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002056/0.9465, allocations: 59.47 kB / 1.095 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006569/0.9471, allocations: 438.1 kB / 1.096 GB, free: 480 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.9472, allocations: 13.33 kB / 1.096 GB, free: 472 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.9472, allocations: 9.203 kB / 1.096 GB, free: 472 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003226/0.9475, allocations: 147 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.9476, allocations: 0 / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.9476, allocations: 6.203 kB / 1.096 GB, free: 380 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.9476, allocations: 5.906 kB / 1.096 GB, free: 376 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.9478, allocations: 65.98 kB / 1.096 GB, free: 356 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000992/0.9488, allocations: 0.5688 MB / 1.096 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.9492, allocations: 134.8 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.9494, allocations: 48.17 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-05/0.9494, allocations: 6.969 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003165/0.9497, allocations: 111.6 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 2.094e-06/0.9498, allocations: 4 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.000814/0.9506, allocations: 237.9 kB / 1.097 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.9507, allocations: 79.64 kB / 1.097 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/0.9521, allocations: 0.6858 MB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.447e-05/0.9522, allocations: 31.92 kB / 1.098 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/0.9525, allocations: 261.1 kB / 1.098 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.862e-05/0.9526, allocations: 42.28 kB / 1.098 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.9528, allocations: 58.88 kB / 1.098 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002607/0.9531, allocations: 368.7 kB / 1.098 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.9533, allocations: 72.27 kB / 1.098 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.9536, allocations: 121.4 kB / 1.099 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.9541, allocations: 137 kB / 1.099 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.9541, allocations: 5.062 kB / 1.099 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007556/0.9549, allocations: 267.2 kB / 1.099 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.9549, allocations: 5.672 kB / 1.099 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.9549, allocations: 5.219 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.955, allocations: 2.156 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.9552, allocations: 39.39 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.9552, allocations: 6.281 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002753/0.9555, allocations: 18.36 kB / 1.099 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.9556, allocations: 10.95 kB / 1.099 GB, free: 14.32 MB / 0.8731 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.0003688/0.9559, allocations: 209.7 kB / 1.099 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.9561, allocations: 62.25 kB / 1.099 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001548/0.9562, allocations: 58.3 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.9562, allocations: 5.172 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.9563, allocations: 7.984 kB / 1.099 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.9563, allocations: 2.25 kB / 1.099 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000645/0.9569, allocations: 373.1 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.957, allocations: 4.719 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.956e-05/0.957, allocations: 7.766 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.957, allocations: 0.5625 kB / 1.1 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.9571, allocations: 7.969 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.9571, allocations: 5.062 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.9571, allocations: 0.5625 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000609/0.9577, allocations: 222.7 kB / 1.1 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.9579, allocations: 134 kB / 1.1 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.958, allocations: 3.828 kB / 1.1 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.9583, allocations: 13.98 kB / 1.1 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-05/0.9584, allocations: 17.56 kB / 1.1 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.9584, allocations: 5.578 kB / 1.1 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001016/0.9594, allocations: 469.5 kB / 1.101 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9594, allocations: 0 / 1.101 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005897/0.96, allocations: 65.84 kB / 1.101 GB, free: 13.34 MB / 0.8731 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.001583/0.9616, allocations: 442 kB / 1.101 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005792/0.9622, allocations: 153.7 kB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.9622, allocations: 0 / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.9625, allocations: 58.55 kB / 1.101 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008028/0.9633, allocations: 100.5 kB / 1.101 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.9658, allocations: 0.8359 MB / 1.102 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008302/0.9667, allocations: 0.8576 MB / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002632/0.9669, allocations: 52.86 kB / 1.103 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.9671, allocations: 33.14 kB / 1.103 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of SimCode: time 8.92e-07/0.9671, allocations: 0 / 1.103 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of Templates: time 0.01841/0.9855, allocations: 4.373 MB / 1.107 GB, free: 11.45 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches