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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.01144/0.01144, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.002204/0.002204, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.648/1.648, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.097/3.097, allocations: 437 MB / 0.7105 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 71.88 kB / 1.019 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4033/0.4048, allocations: 151.6 MB / 1.167 GB, free: 6.781 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002414/0.4072, allocations: 0.9156 MB / 1.168 GB, free: 5.859 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001625/0.4089, allocations: 1.049 MB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.409, allocations: 4 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.4092, allocations: 15.8 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.4094, allocations: 43.64 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004828/0.4099, allocations: 131.7 kB / 1.169 GB, free: 4.605 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004282/0.4103, allocations: 343.3 kB / 1.169 GB, free: 4.27 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.4105, allocations: 33.61 kB / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.4108, allocations: 175.6 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003495/0.4112, allocations: 203.4 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 9.921e-05/0.4113, allocations: 32 kB / 1.169 GB, free: 3.832 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.065e-05/0.4114, allocations: 36 kB / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.4116, allocations: 103.8 kB / 1.17 GB, free: 3.695 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.4117, allocations: 135.4 kB / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000477/0.4122, allocations: 342.7 kB / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.4122, allocations: 0 / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4122, allocations: 3.938 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.007e-05/0.4123, allocations: 0 / 1.17 GB, free: 3.223 MB / 0.92 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.002375/0.4146, allocations: 0.7719 MB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.4147, allocations: 12.03 kB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.4148, allocations: 36.73 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000775/0.4156, allocations: 339.6 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.4156, allocations: 16.31 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.4157, allocations: 32.11 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008988/0.4166, allocations: 340.5 kB / 1.172 GB, free: 1.594 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.4166, allocations: 0 / 1.172 GB, free: 1.594 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.4167, allocations: 4 kB / 1.172 GB, free: 1.59 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.4167, allocations: 4 kB / 1.172 GB, free: 1.586 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006883/0.4174, allocations: 219.8 kB / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.4191, allocations: 0.7112 MB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000679/0.4198, allocations: 281 kB / 1.173 GB, free: 320 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000593/0.4204, allocations: 197.6 kB / 1.173 GB, free: 116 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.4205, allocations: 0 / 1.173 GB, free: 116 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.4215, allocations: 344.7 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=30): time 2.124e-06/0.4215, allocations: 0 / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30): time 0.001929/0.4235, allocations: 0.628 MB / 1.174 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.006e-05/0.4235, allocations: 101 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.4238, allocations: 208.1 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 7.175e-05/0.4239, allocations: 53.7 kB / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.424, allocations: 133 kB / 1.174 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 9.041e-05/0.4241, allocations: 75.52 kB / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.4242, allocations: 82.12 kB / 1.175 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001722/0.4244, allocations: 342.8 kB / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002528/0.4246, allocations: 112.8 kB / 1.175 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000325/0.425, allocations: 169.5 kB / 1.175 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/0.4254, allocations: 201.6 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.4254, allocations: 0 / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000705/0.4261, allocations: 340.5 kB / 1.176 GB, free: 13.26 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.4261, allocations: 7.938 kB / 1.176 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.4262, allocations: 4 kB / 1.176 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.4262, allocations: 12.06 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.4264, allocations: 39.91 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.4264, allocations: 4 kB / 1.176 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/0.4268, allocations: 83.64 kB / 1.176 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/0.4268, allocations: 12 kB / 1.176 GB, free: 13.1 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.0002249/0.4271, allocations: 174.9 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.235e-05/0.4271, allocations: 31.8 kB / 1.176 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.553e-05/0.4272, allocations: 29.53 kB / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.4272, allocations: 4 kB / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4272, allocations: 0 / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.4272, allocations: 7.922 kB / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003789/0.4276, allocations: 305.3 kB / 1.176 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.4276, allocations: 3.938 kB / 1.176 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.128e-05/0.4277, allocations: 15.98 kB / 1.176 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.4277, allocations: 0 / 1.176 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-05/0.4278, allocations: 11.98 kB / 1.176 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.847e-06/0.4278, allocations: 7.984 kB / 1.176 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4278, allocations: 0 / 1.176 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.4291, allocations: 0.515 MB / 1.177 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.364e-05/0.4292, allocations: 108.8 kB / 1.177 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.311e-05/0.4293, allocations: 12 kB / 1.177 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004414/0.4298, allocations: 75.89 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.43, allocations: 75.83 kB / 1.177 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.43, allocations: 19.97 kB / 1.177 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001387/0.4302, allocations: 147.4 kB / 1.177 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4302, allocations: 0 / 1.177 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003233/0.4305, allocations: 67.98 kB / 1.177 GB, free: 11.4 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.000191/0.4307, allocations: 135.2 kB / 1.177 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008961/0.4316, allocations: 363.5 kB / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4316, allocations: 0 / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000591/0.4322, allocations: 207.8 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004676/0.4327, allocations: 72.11 kB / 1.178 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.4342, allocations: 0.5388 MB / 1.179 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004991/0.4347, allocations: 0.7366 MB / 1.179 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001547/0.4348, allocations: 46.95 kB / 1.179 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.435, allocations: 47.41 kB / 1.179 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.435, allocations: 0 / 1.179 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of Templates: time 0.01361/0.4486, allocations: 5.793 MB / 1.185 GB, free: 3.473 MB / 0.9356 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/jenkins/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