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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.001557/0.001557, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.512/1.512, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.091/3.091, allocations: 472.7 MB / 0.7452 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 65.3 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4396/0.441, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002649/0.4437, allocations: 0.9298 MB / 1.069 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001563/0.4453, allocations: 1.048 MB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.956e-05/0.4454, allocations: 0 / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.4455, allocations: 19.8 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.4457, allocations: 43.64 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004676/0.4462, allocations: 123.7 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003586/0.4465, allocations: 351.3 kB / 1.071 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.4467, allocations: 25.69 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002768/0.447, allocations: 179.5 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003986/0.4474, allocations: 211.4 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.669e-05/0.4475, allocations: 32 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.703e-05/0.4476, allocations: 32 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.4477, allocations: 107.8 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002006/0.4479, allocations: 135.4 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.4483, allocations: 327.3 kB / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.4483, allocations: 0 / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4483, allocations: 0 / 1.072 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.4483, allocations: 0 / 1.072 GB, free: 6.836 MB / 0.8262 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.002063/0.4504, allocations: 0.7718 MB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.4504, allocations: 15.97 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.141e-05/0.4505, allocations: 28.59 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008316/0.4514, allocations: 343.9 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.4514, allocations: 16.36 kB / 1.073 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.414e-05/0.4515, allocations: 24.38 kB / 1.073 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008616/0.4524, allocations: 343.9 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.4524, allocations: 0 / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.4524, allocations: 7.984 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.4524, allocations: 4 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006629/0.4531, allocations: 215.8 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.4548, allocations: 0.7032 MB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007547/0.4556, allocations: 285 kB / 1.074 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005799/0.4562, allocations: 189.6 kB / 1.075 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.4562, allocations: 0 / 1.075 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007576/0.457, allocations: 349 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=30): time 1.773e-06/0.457, allocations: 0 / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30): time 0.001783/0.4588, allocations: 0.6329 MB / 1.075 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.552e-05/0.4589, allocations: 97.08 kB / 1.076 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/0.4591, allocations: 214.8 kB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.4592, allocations: 53.69 kB / 1.076 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.315e-05/0.4593, allocations: 125 kB / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.511e-05/0.4594, allocations: 83.11 kB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.4595, allocations: 78.12 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4597, allocations: 342.8 kB / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.4599, allocations: 116.8 kB / 1.077 GB, free: 1.605 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.4602, allocations: 173.5 kB / 1.077 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004404/0.4606, allocations: 197.8 kB / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4606, allocations: 0 / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005611/0.4612, allocations: 343 kB / 1.077 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.4612, allocations: 13.34 kB / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4612, allocations: 0 / 1.077 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.4613, allocations: 4 kB / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.4615, allocations: 47.98 kB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.4615, allocations: 4 kB / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003709/0.4619, allocations: 83.53 kB / 1.077 GB, free: 0.7227 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.4619, allocations: 12 kB / 1.077 GB, free: 0.7109 MB / 0.8262 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.0002506/0.4622, allocations: 172.5 kB / 1.078 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.557e-05/0.4622, allocations: 27.66 kB / 1.078 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.099e-05/0.4623, allocations: 33.52 kB / 1.078 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.4623, allocations: 4 kB / 1.078 GB, free: 480 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.4623, allocations: 0 / 1.078 GB, free: 480 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.4623, allocations: 3.938 kB / 1.078 GB, free: 476 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003561/0.4627, allocations: 317.2 kB / 1.078 GB, free: 108 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4627, allocations: 0 / 1.078 GB, free: 108 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.961e-05/0.4628, allocations: 8 kB / 1.078 GB, free: 100 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.4628, allocations: 4 kB / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.4629, allocations: 15.97 kB / 1.078 GB, free: 80 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.4629, allocations: 4 kB / 1.078 GB, free: 76 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4629, allocations: 0 / 1.078 GB, free: 76 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.4642, allocations: 0.5169 MB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.537e-05/0.4643, allocations: 100.8 kB / 1.079 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.4644, allocations: 19.98 kB / 1.079 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000569/0.465, allocations: 63.91 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.4652, allocations: 83.81 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.4652, allocations: 11.98 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001882/0.4654, allocations: 152.4 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4654, allocations: 4 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002985/0.4657, allocations: 56 kB / 1.079 GB, free: 15.04 MB / 0.8419 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.0002702/0.466, allocations: 139.7 kB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008831/0.4669, allocations: 370.7 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4669, allocations: 0 / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006104/0.4675, allocations: 205.3 kB / 1.08 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004849/0.468, allocations: 72 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.4694, allocations: 0.549 MB / 1.08 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.4698, allocations: 0.7405 MB / 1.081 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001514/0.4699, allocations: 46.95 kB / 1.081 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.47, allocations: 47.39 kB / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.4701, allocations: 0 / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of Templates: time 0.0127/0.4828, allocations: 5.754 MB / 1.087 GB, free: 7.125 MB / 0.8419 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/jenkins/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