Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Controls.OBC.CDL.Integers.Validation.Stage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.u|sta.y|zerHolTim.y|sta1.u|sta1.y|lesHolTim.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Stage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.u|sta.y|zerHolTim.y|sta1.u|sta1.y|lesHolTim.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00165/0.001651, allocations: 107.6 kB / 16.41 MB, free: 5.977 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.001864/0.001864, allocations: 188.3 kB / 17.34 MB, free: 5.586 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.421/1.421, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.773/2.773, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 71.88 kB / 1.055 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8431/0.8446, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002388/0.847, allocations: 0.9313 MB / 1.209 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.8485, allocations: 1.038 MB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.8486, allocations: 0 / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.8487, allocations: 11.81 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.8489, allocations: 51.62 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.8493, allocations: 131.7 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003569/0.8497, allocations: 347.3 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.8498, allocations: 25.67 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.8501, allocations: 167.6 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002907/0.8504, allocations: 211.4 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.941e-05/0.8505, allocations: 32 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 5.264e-05/0.8506, allocations: 32 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.8507, allocations: 107.7 kB / 1.211 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.8509, allocations: 131.4 kB / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003386/0.8512, allocations: 340.5 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.8512, allocations: 0 / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.723e-06/0.8512, allocations: 4 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.528e-06/0.8513, allocations: 0 / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.002114/0.8534, allocations: 0.772 MB / 1.213 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.8534, allocations: 12.03 kB / 1.213 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.03e-05/0.8535, allocations: 28.66 kB / 1.213 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007474/0.8543, allocations: 343.6 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.8543, allocations: 20.38 kB / 1.213 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.987e-05/0.8544, allocations: 32.06 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000851/0.8552, allocations: 340.3 kB / 1.213 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.8553, allocations: 0 / 1.213 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.86e-05/0.8553, allocations: 3.984 kB / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.8553, allocations: 8 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006772/0.856, allocations: 223.7 kB / 1.214 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.8578, allocations: 0.7072 MB / 1.214 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006875/0.8585, allocations: 277 kB / 1.215 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/0.859, allocations: 193.6 kB / 1.215 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.8591, allocations: 4 kB / 1.215 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007227/0.8598, allocations: 341.2 kB / 1.215 GB, free: 6.605 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=30): time 2.405e-06/0.8598, allocations: 0 / 1.215 GB, free: 6.605 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30): time 0.0019/0.8617, allocations: 0.6392 MB / 1.216 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.8619, allocations: 97.08 kB / 1.216 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.8621, allocations: 211.9 kB / 1.216 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.374e-05/0.8622, allocations: 53.69 kB / 1.216 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.8624, allocations: 125 kB / 1.216 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.8625, allocations: 87.09 kB / 1.216 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/0.8627, allocations: 78.12 kB / 1.216 GB, free: 5.277 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002085/0.8629, allocations: 342.8 kB / 1.217 GB, free: 4.934 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.8632, allocations: 112.8 kB / 1.217 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.8635, allocations: 173.5 kB / 1.217 GB, free: 4.633 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00039/0.8639, allocations: 201.4 kB / 1.217 GB, free: 4.422 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.864, allocations: 3.938 kB / 1.217 GB, free: 4.418 MB / 0.9356 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006634/0.8646, allocations: 339.1 kB / 1.217 GB, free: 4.082 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.8647, allocations: 8.125 kB / 1.217 GB, free: 4.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.8647, allocations: 4 kB / 1.217 GB, free: 4.07 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.8647, allocations: 4 kB / 1.217 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.8649, allocations: 43.91 kB / 1.217 GB, free: 4.023 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.865, allocations: 4 kB / 1.217 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004294/0.8654, allocations: 75.61 kB / 1.218 GB, free: 3.945 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.8654, allocations: 12 kB / 1.218 GB, free: 3.934 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 52 (zerHolTim.y,$PRE.zerHolTim.y,sta.y,$PRE.sta.y,zerHolTim.checkLower,$PRE.zerHolTim.checkLower,zerHolTim.checkUpper,$PRE.zerHolTim.checkUpper,zerHolTim.lowerThreshold,$PRE.zerHolTim.lowerThreshold,zerHolTim.upperThreshold,$PRE.zerHolTim.upperThreshold,zerHolTim.tNext,$PRE.zerHolTim.tNext,sta.checkLower,$PRE.sta.checkLower,sta.checkUpper,$PRE.sta.checkUpper,sta.lowerThreshold,$PRE.sta.lowerThreshold,sta.upperThreshold,$PRE.sta.upperThreshold,sta.tNext,$PRE.sta.tNext,$whenCondition3,$whenCondition4,lesHolTim.y,$PRE.lesHolTim.y,sta1.y,$PRE.sta1.y,lesHolTim.checkLower,$PRE.lesHolTim.checkLower,lesHolTim.checkUpper,$PRE.lesHolTim.checkUpper,lesHolTim.lowerThreshold,$PRE.lesHolTim.lowerThreshold,lesHolTim.upperThreshold,$PRE.lesHolTim.upperThreshold,lesHolTim.tNext,$PRE.lesHolTim.tNext,sta1.checkLower,$PRE.sta1.checkLower,sta1.checkUpper,$PRE.sta1.checkUpper,sta1.lowerThreshold,$PRE.sta1.lowerThreshold,sta1.upperThreshold,$PRE.sta1.upperThreshold,sta1.tNext,$PRE.sta1.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * 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.0002222/0.8657, allocations: 171 kB / 1.218 GB, free: 3.758 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.747e-05/0.8657, allocations: 23.72 kB / 1.218 GB, free: 3.734 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.175e-05/0.8658, allocations: 33.52 kB / 1.218 GB, free: 3.699 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.8658, allocations: 4 kB / 1.218 GB, free: 3.695 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.8658, allocations: 0 / 1.218 GB, free: 3.695 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.8658, allocations: 7.922 kB / 1.218 GB, free: 3.688 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003299/0.8662, allocations: 309.3 kB / 1.218 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.8662, allocations: 3.938 kB / 1.218 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.428e-05/0.8663, allocations: 15.92 kB / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.8663, allocations: 0 / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.244e-05/0.8664, allocations: 15.98 kB / 1.218 GB, free: 3.301 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.8664, allocations: 4 kB / 1.218 GB, free: 3.297 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.8664, allocations: 0 / 1.218 GB, free: 3.297 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.8677, allocations: 0.5208 MB / 1.219 GB, free: 2.754 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.8677, allocations: 100.8 kB / 1.219 GB, free: 2.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.559e-05/0.8678, allocations: 23.98 kB / 1.219 GB, free: 2.613 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.8683, allocations: 63.91 kB / 1.219 GB, free: 2.551 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.8685, allocations: 79.81 kB / 1.219 GB, free: 2.473 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.287e-05/0.8686, allocations: 15.98 kB / 1.219 GB, free: 2.457 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.00015/0.8687, allocations: 151.3 kB / 1.219 GB, free: 2.309 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8687, allocations: 0 / 1.219 GB, free: 2.309 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003465/0.8691, allocations: 60 kB / 1.219 GB, free: 2.25 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition4,$whenCondition3,sta.y,sta.tNext,sta.upperThreshold,sta.lowerThreshold,sta.checkUpper,sta.checkLower,zerHolTim.y,zerHolTim.tNext,zerHolTim.upperThreshold,zerHolTim.lowerThreshold,zerHolTim.checkUpper,zerHolTim.checkLower,$whenCondition2,$whenCondition1,sta1.y,sta1.tNext,sta1.upperThreshold,sta1.lowerThreshold,sta1.checkUpper,sta1.checkLower,lesHolTim.y,lesHolTim.tNext,lesHolTim.upperThreshold,lesHolTim.lowerThreshold,lesHolTim.checkUpper,lesHolTim.checkLower) * Number of discrete states: 20 (sta1.lowerThreshold,lesHolTim.lowerThreshold,lesHolTim.checkLower,lesHolTim.checkUpper,lesHolTim.upperThreshold,sta1.checkLower,sta1.checkUpper,sta1.upperThreshold,sta1.tNext,lesHolTim.tNext,sta.lowerThreshold,zerHolTim.lowerThreshold,zerHolTim.checkLower,zerHolTim.checkUpper,zerHolTim.upperThreshold,sta.checkLower,sta.checkUpper,sta.upperThreshold,sta.tNext,zerHolTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0002468/0.8693, allocations: 139.1 kB / 1.219 GB, free: 2.109 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000943/0.8703, allocations: 353.8 kB / 1.22 GB, free: 1.766 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8703, allocations: 0 / 1.22 GB, free: 1.766 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0005776/0.8709, allocations: 214.7 kB / 1.22 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.8714, allocations: 63.92 kB / 1.22 GB, free: 1.496 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.8727, allocations: 0.5701 MB / 1.22 GB, free: 0.8906 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.873, allocations: 0.7443 MB / 1.221 GB, free: 120 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.8731, allocations: 47.41 kB / 1.221 GB, free: 72 kB / 0.9356 GB Notification: Performance of SimCode: time 3.31e-07/0.8731, allocations: 0 / 1.221 GB, free: 72 kB / 0.9356 GB Notification: Performance of Templates: time 0.006806/0.8799, allocations: 4.072 MB / 1.225 GB, free: 12.02 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Stage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches