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.001099/0.001099, allocations: 111 kB / 16.41 MB, free: 6.027 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.001214/0.001214, allocations: 180.2 kB / 17.34 MB, free: 5.633 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.273/1.273, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.494/2.494, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 67.89 kB / 1.055 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6878/0.689, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002102/0.6912, allocations: 0.9287 MB / 1.209 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.6927, allocations: 1.034 MB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.83e-05/0.6928, allocations: 3.938 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.6929, allocations: 19.75 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.6931, allocations: 47.62 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004013/0.6935, allocations: 119.8 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003558/0.6939, allocations: 355.2 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.694, allocations: 25.67 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.6943, allocations: 163.6 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.6946, allocations: 219.3 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.154e-05/0.6947, allocations: 32 kB / 1.211 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.372e-05/0.6948, allocations: 32 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.6949, allocations: 103.8 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.6951, allocations: 135.4 kB / 1.212 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00036/0.6954, allocations: 336.6 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.6955, allocations: 4 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.854e-06/0.6955, allocations: 0 / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.304e-06/0.6955, allocations: 0 / 1.212 GB, free: 10.09 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.002141/0.6976, allocations: 0.772 MB / 1.213 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.6977, allocations: 8.031 kB / 1.213 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.384e-05/0.6978, allocations: 28.66 kB / 1.213 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007321/0.6985, allocations: 339.6 kB / 1.213 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.6986, allocations: 24.36 kB / 1.213 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.6986, allocations: 24.12 kB / 1.213 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008029/0.6994, allocations: 348.2 kB / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.6994, allocations: 0 / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.6995, allocations: 0 / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.6995, allocations: 7.984 kB / 1.213 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006543/0.7002, allocations: 219.8 kB / 1.214 GB, free: 8.242 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.7018, allocations: 0.711 MB / 1.214 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006652/0.7025, allocations: 269 kB / 1.215 GB, free: 7.195 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005209/0.7031, allocations: 201.5 kB / 1.215 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.7031, allocations: 4 kB / 1.215 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007269/0.7038, allocations: 341.3 kB / 1.215 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=30): time 1.783e-06/0.7038, allocations: 0 / 1.215 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30): time 0.001746/0.7056, allocations: 0.6368 MB / 1.216 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.7057, allocations: 89.11 kB / 1.216 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.7058, allocations: 211.9 kB / 1.216 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.599e-05/0.7059, allocations: 61.69 kB / 1.216 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.793e-05/0.706, allocations: 129 kB / 1.216 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.968e-05/0.7061, allocations: 79.11 kB / 1.216 GB, free: 5.398 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.7062, allocations: 82.12 kB / 1.216 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.7064, allocations: 342.8 kB / 1.217 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.7066, allocations: 112.8 kB / 1.217 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.7069, allocations: 173.5 kB / 1.217 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003586/0.7073, allocations: 205.2 kB / 1.217 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.7073, allocations: 0 / 1.217 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005746/0.7079, allocations: 339.2 kB / 1.217 GB, free: 4.121 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.7079, allocations: 4 kB / 1.217 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.7079, allocations: 4 kB / 1.217 GB, free: 4.113 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.7079, allocations: 4 kB / 1.217 GB, free: 4.109 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.7081, allocations: 43.86 kB / 1.217 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.7081, allocations: 12.11 kB / 1.217 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/0.7085, allocations: 75.61 kB / 1.218 GB, free: 3.98 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.7086, allocations: 19.98 kB / 1.218 GB, free: 3.961 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.0001664/0.7087, allocations: 163 kB / 1.218 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.7088, allocations: 27.72 kB / 1.218 GB, free: 3.766 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.069e-05/0.7089, allocations: 29.52 kB / 1.218 GB, free: 3.734 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.7089, allocations: 4 kB / 1.218 GB, free: 3.73 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.7089, allocations: 4 kB / 1.218 GB, free: 3.727 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.7089, allocations: 7.922 kB / 1.218 GB, free: 3.719 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002618/0.7092, allocations: 309.2 kB / 1.218 GB, free: 3.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.7092, allocations: 0 / 1.218 GB, free: 3.367 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.657e-05/0.7093, allocations: 19.88 kB / 1.218 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.7093, allocations: 0 / 1.218 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.336e-05/0.7093, allocations: 15.97 kB / 1.218 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.7093, allocations: 8 kB / 1.218 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7093, allocations: 0 / 1.218 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.7105, allocations: 0.5191 MB / 1.219 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.233e-05/0.7106, allocations: 100.8 kB / 1.219 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.969e-05/0.7107, allocations: 19.98 kB / 1.219 GB, free: 2.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004661/0.7111, allocations: 67.91 kB / 1.219 GB, free: 2.582 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.7113, allocations: 79.81 kB / 1.219 GB, free: 2.504 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.275e-05/0.7113, allocations: 15.98 kB / 1.219 GB, free: 2.488 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001174/0.7115, allocations: 147.3 kB / 1.219 GB, free: 2.344 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7115, allocations: 0 / 1.219 GB, free: 2.344 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002911/0.7118, allocations: 64 kB / 1.219 GB, free: 2.281 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.000175/0.712, allocations: 139.1 kB / 1.219 GB, free: 2.141 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008518/0.7128, allocations: 344.4 kB / 1.22 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7128, allocations: 4.062 kB / 1.22 GB, free: 1.801 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0005488/0.7134, allocations: 199.8 kB / 1.22 GB, free: 1.605 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.7139, allocations: 77.73 kB / 1.22 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.7151, allocations: 0.5701 MB / 1.22 GB, free: 0.9258 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.7154, allocations: 0.7404 MB / 1.221 GB, free: 160 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.7155, allocations: 47.41 kB / 1.221 GB, free: 112 kB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.7155, allocations: 0 / 1.221 GB, free: 112 kB / 0.9356 GB Notification: Performance of Templates: time 0.006015/0.7215, allocations: 4.078 MB / 1.225 GB, free: 12.06 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