Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001631/0.001631, allocations: 100.1 kB / 15.88 MB, free: 12 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.002128/0.002128, allocations: 198.3 kB / 16.79 MB, free: 6.809 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.431/1.431, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.676/2.676, allocations: 437 MB / 0.7106 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001507, allocations: 63.89 kB / 0.8692 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6659/0.6674, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002392/0.6698, allocations: 0.9896 MB / 1.018 GB, free: 1.832 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00137/0.6712, allocations: 1.03 MB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.6714, allocations: 0 / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.6715, allocations: 11.88 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.6717, allocations: 39.75 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.6722, allocations: 123.8 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.6726, allocations: 331.2 kB / 1.02 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.6728, allocations: 29.66 kB / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003208/0.6731, allocations: 147.5 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.6735, allocations: 203.4 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.984e-05/0.6736, allocations: 19.94 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.439e-05/0.6737, allocations: 16 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.6738, allocations: 87.75 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.674, allocations: 115.5 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003073/0.6743, allocations: 249.3 kB / 1.021 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6743, allocations: 4 kB / 1.021 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.773e-06/0.6743, allocations: 0 / 1.021 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.956e-06/0.6744, allocations: 0 / 1.021 GB, free: 15.44 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.002321/0.6767, allocations: 0.7698 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.6767, allocations: 8.031 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.6769, allocations: 28.66 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007695/0.6776, allocations: 339.8 kB / 1.022 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.6777, allocations: 24.38 kB / 1.022 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.706e-05/0.6778, allocations: 24.36 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008039/0.6786, allocations: 335 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.6786, allocations: 0 / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.6786, allocations: 19.92 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.6787, allocations: 4 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006617/0.6793, allocations: 211.8 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.681, allocations: 0.711 MB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006751/0.6817, allocations: 281 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005124/0.6822, allocations: 190.1 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.6822, allocations: 8 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007521/0.683, allocations: 341.2 kB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=30): time 2.204e-06/0.683, allocations: 0 / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30): time 0.001794/0.6848, allocations: 0.6392 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.6849, allocations: 93.09 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.6851, allocations: 210.7 kB / 1.025 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.384e-05/0.6852, allocations: 53.69 kB / 1.025 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.281e-05/0.6853, allocations: 121.1 kB / 1.025 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.276e-05/0.6854, allocations: 91 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.6855, allocations: 82.12 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.6856, allocations: 338.8 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.6859, allocations: 116.8 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.6862, allocations: 177.4 kB / 1.026 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.6865, allocations: 192.7 kB / 1.026 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.6866, allocations: 3.984 kB / 1.026 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0006156/0.6872, allocations: 342 kB / 1.026 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.6872, allocations: 4 kB / 1.026 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.6872, allocations: 0 / 1.026 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.6872, allocations: 4 kB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.6875, allocations: 47.91 kB / 1.026 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.6875, allocations: 7.938 kB / 1.026 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.6878, allocations: 75.73 kB / 1.026 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.6879, allocations: 16 kB / 1.026 GB, free: 9.316 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 (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.0001754/0.6881, allocations: 167.5 kB / 1.026 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.206e-05/0.6881, allocations: 19.72 kB / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.172e-05/0.6882, allocations: 37.52 kB / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.6882, allocations: 4 kB / 1.026 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.6882, allocations: 4 kB / 1.026 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.6882, allocations: 3.938 kB / 1.026 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003024/0.6885, allocations: 309.2 kB / 1.027 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.6886, allocations: 0 / 1.027 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.97e-05/0.6886, allocations: 19.86 kB / 1.027 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.6887, allocations: 0 / 1.027 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-05/0.6887, allocations: 11.98 kB / 1.027 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.6887, allocations: 4 kB / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6887, allocations: 4 kB / 1.027 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.6899, allocations: 0.519 MB / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.083e-05/0.69, allocations: 100.8 kB / 1.027 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.82e-05/0.6901, allocations: 19.92 kB / 1.027 GB, free: 8.012 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004453/0.6905, allocations: 67.91 kB / 1.028 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.6907, allocations: 83.8 kB / 1.028 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.494e-05/0.6908, allocations: 15.92 kB / 1.028 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001191/0.6909, allocations: 152.4 kB / 1.028 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6909, allocations: 0 / 1.028 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003076/0.6912, allocations: 63.94 kB / 1.028 GB, free: 7.637 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 (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.0001974/0.6914, allocations: 131.2 kB / 1.028 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008606/0.6923, allocations: 357.7 kB / 1.028 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6923, allocations: 0 / 1.028 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005546/0.6928, allocations: 205.1 kB / 1.028 GB, free: 6.953 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004872/0.6933, allocations: 63.92 kB / 1.029 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.6946, allocations: 0.6201 MB / 1.029 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.695, allocations: 0.7446 MB / 1.03 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.6951, allocations: 43.39 kB / 1.03 GB, free: 5.418 MB / 0.7794 GB Notification: Performance of SimCode: time 2.334e-06/0.6951, allocations: 0 / 1.03 GB, free: 5.418 MB / 0.7794 GB Notification: Performance of Templates: time 0.007277/0.7024, allocations: 4.028 MB / 1.034 GB, free: 1.414 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Stage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches