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.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001065/0.001065, allocations: 100.2 kB / 16.35 MB, free: 5.824 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.0009869/0.0009871, allocations: 196.6 kB / 17.29 MB, free: 5.48 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.492/2.492, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 74.7 kB / 0.8773 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3338, allocations: 153 MB / 1.027 GB, free: 1.996 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003874/0.3377, allocations: 2.475 MB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002304/0.34, allocations: 1.565 MB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.3402, allocations: 7.938 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000878/0.3411, allocations: 323.2 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004064/0.3415, allocations: 211.1 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006382/0.3422, allocations: 270.8 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004204/0.3426, allocations: 390.8 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.3428, allocations: 72.67 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.343, allocations: 163.3 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.3432, allocations: 163.2 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.989e-05/0.3432, allocations: 20 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.3434, allocations: 79.94 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.3436, allocations: 135.5 kB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.3437, allocations: 182.7 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004928/0.3442, allocations: 0.5058 MB / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3442, allocations: 0 / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3443, allocations: 0 / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.3443, allocations: 0 / 1.033 GB, free: 11.44 MB / 0.8106 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.001177/0.3454, allocations: 0.827 MB / 1.034 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3455, allocations: 12.03 kB / 1.034 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.905e-05/0.3456, allocations: 64.19 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006092/0.3462, allocations: 436.8 kB / 1.034 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.3462, allocations: 15.92 kB / 1.034 GB, free: 10 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.3463, allocations: 8 kB / 1.034 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.3465, allocations: 135.3 kB / 1.035 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3466, allocations: 0 / 1.035 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.3466, allocations: 12 kB / 1.035 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3466, allocations: 7.875 kB / 1.035 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.3468, allocations: 65.09 kB / 1.035 GB, free: 9.77 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008567/0.3476, allocations: 0.5705 MB / 1.035 GB, free: 9.148 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.348, allocations: 122.8 kB / 1.035 GB, free: 9.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.3481, allocations: 48.84 kB / 1.035 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.3482, allocations: 3.938 kB / 1.035 GB, free: 8.965 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.3484, allocations: 107.3 kB / 1.035 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=13): time 3.516e-06/0.3484, allocations: 4 kB / 1.035 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13): time 0.0004952/0.3489, allocations: 243.4 kB / 1.036 GB, free: 8.602 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.349, allocations: 81.11 kB / 1.036 GB, free: 8.504 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007119/0.3497, allocations: 0.6799 MB / 1.036 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.3497, allocations: 33.64 kB / 1.036 GB, free: 7.773 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.3499, allocations: 272.2 kB / 1.037 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.583e-05/0.35, allocations: 35.61 kB / 1.037 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.657e-05/0.3501, allocations: 49.7 kB / 1.037 GB, free: 7.414 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001843/0.3503, allocations: 374.8 kB / 1.037 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.3504, allocations: 71.97 kB / 1.037 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.3506, allocations: 119.1 kB / 1.037 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.3509, allocations: 139.8 kB / 1.037 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3509, allocations: 3.938 kB / 1.037 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004234/0.3513, allocations: 266.6 kB / 1.038 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3514, allocations: 15.22 kB / 1.038 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.3514, allocations: 0 / 1.038 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.3514, allocations: 0 / 1.038 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.3516, allocations: 39.97 kB / 1.038 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3516, allocations: 0 / 1.038 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.3517, allocations: 35.83 kB / 1.038 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.3518, allocations: 4 kB / 1.038 GB, free: 6.332 MB / 0.8106 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.0002205/0.352, allocations: 207.5 kB / 1.038 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.13e-05/0.3521, allocations: 59.28 kB / 1.038 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.347e-05/0.3522, allocations: 57.05 kB / 1.038 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3522, allocations: 4.031 kB / 1.038 GB, free: 6 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3522, allocations: 0 / 1.038 GB, free: 6 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.3522, allocations: 0 / 1.038 GB, free: 6 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003548/0.3526, allocations: 381.3 kB / 1.038 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3526, allocations: 11.92 kB / 1.039 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.528e-05/0.3526, allocations: 7.938 kB / 1.039 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3526, allocations: 0 / 1.039 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.3526, allocations: 8 kB / 1.039 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3526, allocations: 0 / 1.039 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3526, allocations: 3.938 kB / 1.039 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/0.353, allocations: 216.4 kB / 1.039 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.3531, allocations: 136.4 kB / 1.039 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.3532, allocations: 0 / 1.039 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.3533, allocations: 15.98 kB / 1.039 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.3534, allocations: 15.98 kB / 1.039 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.3534, allocations: 7.984 kB / 1.039 GB, free: 5.125 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0005128/0.3539, allocations: 471 kB / 1.039 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.956e-06/0.3539, allocations: 0 / 1.039 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003256/0.3543, allocations: 63.84 kB / 1.039 GB, free: 4.605 MB / 0.8106 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.001079/0.3554, allocations: 430.6 kB / 1.04 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003589/0.3557, allocations: 151.9 kB / 1.04 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3557, allocations: 0 / 1.04 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3559, allocations: 55.92 kB / 1.04 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004531/0.3563, allocations: 102.5 kB / 1.04 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.3576, allocations: 0.8213 MB / 1.041 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004577/0.3581, allocations: 0.8656 MB / 1.042 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001414/0.3582, allocations: 54.92 kB / 1.042 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.479e-05/0.3583, allocations: 31.44 kB / 1.042 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of SimCode: time 3.61e-07/0.3583, allocations: 0 / 1.042 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of Templates: time 0.009165/0.3675, allocations: 4.342 MB / 1.046 GB, free: 13.92 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches