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.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.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.001096/0.001096, allocations: 100.4 kB / 15.05 MB, free: 1.105 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.0009938/0.000994, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.736/2.736, allocations: 436.5 MB / 0.7104 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004469/0.0004471, allocations: 12 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8705/0.8709, allocations: 153.6 MB / 1.021 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.001135/0.8721, allocations: 0.6141 MB / 1.021 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001337/0.8735, allocations: 1.026 MB / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.679e-05/0.8736, allocations: 0 / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.8737, allocations: 15.86 kB / 1.022 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.8738, allocations: 51.84 kB / 1.022 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.8742, allocations: 91.8 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.8744, allocations: 195.6 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.8745, allocations: 25.66 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.8747, allocations: 147.6 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.875, allocations: 183.5 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.875, allocations: 16 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.242e-05/0.8751, allocations: 16 kB / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.8752, allocations: 87.75 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.726e-05/0.8753, allocations: 61.58 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002405/0.8755, allocations: 241.3 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.8755, allocations: 0 / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.723e-06/0.8756, allocations: 4 kB / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.8756, allocations: 0 / 1.024 GB, free: 14.31 MB / 0.7794 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.002061/0.8776, allocations: 0.8188 MB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.8777, allocations: 11.98 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.563e-05/0.8778, allocations: 31.7 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007871/0.8786, allocations: 338.5 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.05e-05/0.8786, allocations: 16 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.708e-05/0.8787, allocations: 27.94 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007726/0.8795, allocations: 331.1 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.8795, allocations: 3.984 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.8795, allocations: 8 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.8796, allocations: 4 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006413/0.8802, allocations: 226.2 kB / 1.025 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.882, allocations: 0.7502 MB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006959/0.8827, allocations: 277 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.423e-05/0.8827, allocations: 8 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007847/0.8835, allocations: 337.6 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=30): time 6.072e-06/0.8835, allocations: 4 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30): time 0.001861/0.8854, allocations: 0.6324 MB / 1.027 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.8855, allocations: 97.03 kB / 1.027 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.8858, allocations: 218.7 kB / 1.028 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.211e-05/0.8858, allocations: 53.7 kB / 1.028 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.8859, allocations: 129 kB / 1.028 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.535e-05/0.886, allocations: 75.17 kB / 1.028 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.798e-05/0.8861, allocations: 4 kB / 1.028 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001908/0.8863, allocations: 350.8 kB / 1.028 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.8865, allocations: 108.8 kB / 1.028 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.8868, allocations: 173.5 kB / 1.028 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.887, allocations: 82.62 kB / 1.028 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.887, allocations: 8 kB / 1.028 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006129/0.8877, allocations: 335.1 kB / 1.029 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.8877, allocations: 8 kB / 1.029 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.8877, allocations: 0 / 1.029 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.8878, allocations: 4 kB / 1.029 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.888, allocations: 51.97 kB / 1.029 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.888, allocations: 4 kB / 1.029 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003972/0.8884, allocations: 99.61 kB / 1.029 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.8884, allocations: 16 kB / 1.029 GB, free: 8.477 MB / 0.7794 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 ($PRE.zerHolTim.y,zerHolTim.y,$PRE.sta.y,sta.y,$whenCondition4,$whenCondition3,$PRE.sta.tNext,sta.tNext,$PRE.sta.upperThreshold,sta.upperThreshold,$PRE.sta.lowerThreshold,sta.lowerThreshold,$PRE.sta.checkUpper,sta.checkUpper,$PRE.sta.checkLower,sta.checkLower,$PRE.zerHolTim.tNext,zerHolTim.tNext,$PRE.zerHolTim.upperThreshold,zerHolTim.upperThreshold,$PRE.zerHolTim.lowerThreshold,zerHolTim.lowerThreshold,$PRE.zerHolTim.checkUpper,zerHolTim.checkUpper,$PRE.zerHolTim.checkLower,zerHolTim.checkLower,$PRE.lesHolTim.y,lesHolTim.y,$PRE.sta1.y,sta1.y,$whenCondition2,$whenCondition1,$PRE.sta1.tNext,sta1.tNext,$PRE.sta1.upperThreshold,sta1.upperThreshold,$PRE.sta1.lowerThreshold,sta1.lowerThreshold,$PRE.sta1.checkUpper,sta1.checkUpper,$PRE.sta1.checkLower,sta1.checkLower,$PRE.lesHolTim.tNext,lesHolTim.tNext,$PRE.lesHolTim.upperThreshold,lesHolTim.upperThreshold,$PRE.lesHolTim.lowerThreshold,lesHolTim.lowerThreshold,$PRE.lesHolTim.checkUpper,lesHolTim.checkUpper,$PRE.lesHolTim.checkLower,lesHolTim.checkLower) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002056/0.8886, allocations: 170.9 kB / 1.029 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.977e-05/0.8887, allocations: 27.7 kB / 1.029 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.777e-05/0.8888, allocations: 33.53 kB / 1.029 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.8888, allocations: 8 kB / 1.029 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.8888, allocations: 0 / 1.029 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.8888, allocations: 3.984 kB / 1.029 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003217/0.8892, allocations: 309.2 kB / 1.029 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.8892, allocations: 0 / 1.029 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.512e-05/0.8893, allocations: 11.98 kB / 1.029 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.8893, allocations: 0 / 1.029 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.8893, allocations: 15.97 kB / 1.029 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.8893, allocations: 0 / 1.029 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.8893, allocations: 4 kB / 1.03 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.8906, allocations: 0.5342 MB / 1.03 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-05/0.8907, allocations: 100.8 kB / 1.03 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.818e-05/0.8908, allocations: 20 kB / 1.03 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.8912, allocations: 91.89 kB / 1.03 GB, free: 7.062 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/0.8915, allocations: 79.84 kB / 1.03 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.074e-05/0.8915, allocations: 23.97 kB / 1.03 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002043/0.8917, allocations: 152.3 kB / 1.03 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8917, allocations: 0 / 1.03 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003573/0.8921, allocations: 63.98 kB / 1.031 GB, free: 6.75 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003051/0.8924, allocations: 143.1 kB / 1.031 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0009202/0.8933, allocations: 353.2 kB / 1.031 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.8934, allocations: 0 / 1.031 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000555/0.8939, allocations: 208.1 kB / 1.031 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004081/0.8943, allocations: 61.61 kB / 1.031 GB, free: 5.996 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.8957, allocations: 0.5806 MB / 1.032 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.896, allocations: 0.7485 MB / 1.033 GB, free: 4.609 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001547/0.8962, allocations: 42.95 kB / 1.033 GB, free: 4.566 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.8963, allocations: 35.41 kB / 1.033 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.8963, allocations: 4 kB / 1.033 GB, free: 4.531 MB / 0.7794 GB Notification: Performance of Templates: time 0.009929/0.9063, allocations: 4.753 MB / 1.037 GB, free: 15.82 MB / 0.795 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches