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.008199/0.008199, allocations: 102.8 kB / 15.73 MB, free: 5.988 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.001586/0.001586, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.535/1.535, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.133/3.133, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 67.89 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4738/0.4752, allocations: 157.4 MB / 1.208 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002587/0.4779, allocations: 0.9247 MB / 1.209 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001714/0.4796, allocations: 1.038 MB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.4798, allocations: 0 / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.48, allocations: 19.8 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.4802, allocations: 43.64 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004812/0.4807, allocations: 131.7 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.4811, allocations: 351.3 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.4813, allocations: 25.67 kB / 1.21 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003276/0.4816, allocations: 175.5 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003645/0.482, allocations: 207.5 kB / 1.211 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.411e-05/0.4821, allocations: 32 kB / 1.211 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.331e-05/0.4822, allocations: 35.94 kB / 1.211 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.4823, allocations: 111.7 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.4825, allocations: 127.5 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.4828, allocations: 342.9 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4828, allocations: 4 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.422e-06/0.4828, allocations: 0 / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.4829, allocations: 0 / 1.211 GB, free: 6.094 MB / 0.9669 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.002227/0.4851, allocations: 0.772 MB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.4851, allocations: 8.031 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.354e-05/0.4852, allocations: 28.66 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007482/0.486, allocations: 339.7 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/0.486, allocations: 24.36 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.312e-05/0.4861, allocations: 28.12 kB / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008011/0.4869, allocations: 336.8 kB / 1.213 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.4869, allocations: 0 / 1.213 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.487, allocations: 4 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.487, allocations: 4 kB / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006594/0.4876, allocations: 211.8 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.4895, allocations: 0.7073 MB / 1.214 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006865/0.4902, allocations: 273 kB / 1.214 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005313/0.4907, allocations: 198.1 kB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.4908, allocations: 8 kB / 1.214 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000761/0.4915, allocations: 360.8 kB / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=30): time 2.295e-06/0.4916, allocations: 0 / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of matching and sorting (n=30): time 0.001854/0.4934, allocations: 0.6247 MB / 1.215 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.4935, allocations: 93.05 kB / 1.215 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.4937, allocations: 218.6 kB / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.142e-05/0.4938, allocations: 57.69 kB / 1.215 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.807e-05/0.4939, allocations: 125 kB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.431e-05/0.494, allocations: 79.11 kB / 1.216 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.4941, allocations: 86.06 kB / 1.216 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4943, allocations: 342.8 kB / 1.216 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.4945, allocations: 104.8 kB / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.4948, allocations: 177.5 kB / 1.216 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.4952, allocations: 203.5 kB / 1.216 GB, free: 480 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.4952, allocations: 0 / 1.216 GB, free: 480 kB / 0.9669 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005833/0.4958, allocations: 336.2 kB / 1.217 GB, free: 140 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.4958, allocations: 5.719 kB / 1.217 GB, free: 136 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4958, allocations: 4 kB / 1.217 GB, free: 132 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.4959, allocations: 3.938 kB / 1.217 GB, free: 128 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.4961, allocations: 47.91 kB / 1.217 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.4961, allocations: 8.125 kB / 1.217 GB, free: 72 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003936/0.4965, allocations: 79.59 kB / 1.217 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.4965, allocations: 16 kB / 1.217 GB, free: 15.97 MB / 0.9825 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.0001732/0.4967, allocations: 174.9 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.109e-05/0.4968, allocations: 27.7 kB / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.503e-05/0.4969, allocations: 25.53 kB / 1.217 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.4969, allocations: 4 kB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4969, allocations: 0 / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.4969, allocations: 7.922 kB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.4972, allocations: 309.2 kB / 1.217 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4972, allocations: 0 / 1.217 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.637e-05/0.4973, allocations: 11.98 kB / 1.217 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4973, allocations: 0 / 1.217 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.965e-05/0.4973, allocations: 15.97 kB / 1.217 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.4974, allocations: 8 kB / 1.217 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4974, allocations: 0 / 1.217 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.4986, allocations: 0.5159 MB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.222e-05/0.4987, allocations: 100.8 kB / 1.218 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.084e-05/0.4988, allocations: 16 kB / 1.218 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004674/0.4992, allocations: 71.89 kB / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.4994, allocations: 75.83 kB / 1.218 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.915e-05/0.4994, allocations: 19.97 kB / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001191/0.4996, allocations: 140.6 kB / 1.218 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4996, allocations: 0 / 1.218 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003115/0.4999, allocations: 67.98 kB / 1.218 GB, free: 14.3 MB / 0.9825 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.0002152/0.5001, allocations: 135.2 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009034/0.501, allocations: 351.8 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.501, allocations: 4.062 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006076/0.5017, allocations: 211.7 kB / 1.219 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004905/0.5022, allocations: 77.23 kB / 1.219 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.5035, allocations: 0.5295 MB / 1.22 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.5039, allocations: 0.7482 MB / 1.22 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001686/0.5041, allocations: 42.95 kB / 1.22 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.5042, allocations: 39.41 kB / 1.22 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of SimCode: time 1.142e-06/0.5042, allocations: 4 kB / 1.22 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of Templates: time 0.01163/0.5159, allocations: 6.009 MB / 1.226 GB, free: 6.16 MB / 0.9825 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