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.001508/0.001508, allocations: 109.5 kB / 16.37 MB, free: 6.461 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.001561/0.001561, allocations: 191.5 kB / 17.31 MB, free: 5.824 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.407/1.407, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.585/2.585, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 65.12 kB / 0.8774 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.336, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.002226/0.3383, allocations: 0.927 MB / 1.028 GB, free: 1.137 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.3395, allocations: 1.046 MB / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.266e-05/0.3396, allocations: 3.938 kB / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.3397, allocations: 11.81 kB / 1.029 GB, free: 64 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.3399, allocations: 51.56 kB / 1.029 GB, free: 12 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003965/0.3403, allocations: 123.8 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.3406, allocations: 351.3 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.3408, allocations: 29.55 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.341, allocations: 163.7 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.3413, allocations: 219.3 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.3414, allocations: 32 kB / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.867e-05/0.3414, allocations: 32 kB / 1.03 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.3415, allocations: 103.8 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.3417, allocations: 131.4 kB / 1.03 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.342, allocations: 331 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.342, allocations: 0 / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.304e-06/0.342, allocations: 4 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.342, allocations: 7.938 kB / 1.03 GB, free: 14.51 MB / 0.8106 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.001857/0.3439, allocations: 0.7681 MB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.344, allocations: 8.031 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.788e-05/0.344, allocations: 28.66 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006922/0.3447, allocations: 339.8 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.3448, allocations: 16.38 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.623e-05/0.3449, allocations: 28.38 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007872/0.3456, allocations: 339.9 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3457, allocations: 7.938 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.556e-05/0.3457, allocations: 7.984 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3457, allocations: 12 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006313/0.3464, allocations: 207.8 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.3481, allocations: 0.7071 MB / 1.033 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006461/0.3487, allocations: 280.9 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005184/0.3492, allocations: 197.6 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.3493, allocations: 4 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007258/0.35, allocations: 341 kB / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=30): time 2.144e-06/0.35, allocations: 0 / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30): time 0.001663/0.3517, allocations: 0.6362 MB / 1.034 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.556e-05/0.3518, allocations: 93.09 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.352, allocations: 202.9 kB / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.432e-05/0.352, allocations: 57.69 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.897e-05/0.3521, allocations: 121.1 kB / 1.034 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.769e-05/0.3522, allocations: 83.06 kB / 1.035 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.3524, allocations: 86.06 kB / 1.035 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3525, allocations: 342.8 kB / 1.035 GB, free: 9.398 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.3527, allocations: 116.8 kB / 1.035 GB, free: 9.285 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002876/0.353, allocations: 173.4 kB / 1.035 GB, free: 9.102 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/0.3534, allocations: 205.7 kB / 1.035 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3534, allocations: 0 / 1.035 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005975/0.354, allocations: 334.8 kB / 1.036 GB, free: 8.555 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.3541, allocations: 8.125 kB / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3541, allocations: 3.938 kB / 1.036 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.3541, allocations: 4 kB / 1.036 GB, free: 8.539 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.3543, allocations: 47.86 kB / 1.036 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.3543, allocations: 7.984 kB / 1.036 GB, free: 8.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.3547, allocations: 79.55 kB / 1.036 GB, free: 8.406 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.886e-05/0.3547, allocations: 16 kB / 1.036 GB, free: 8.391 MB / 0.8106 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.0001685/0.3549, allocations: 171 kB / 1.036 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/0.3549, allocations: 19.72 kB / 1.036 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.332e-05/0.355, allocations: 37.52 kB / 1.036 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.355, allocations: 4 kB / 1.036 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.355, allocations: 0 / 1.036 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.355, allocations: 7.875 kB / 1.036 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002769/0.3553, allocations: 313.2 kB / 1.036 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.3553, allocations: 0 / 1.036 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.326e-05/0.3554, allocations: 8 kB / 1.036 GB, free: 7.785 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3554, allocations: 3.984 kB / 1.036 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.835e-05/0.3555, allocations: 15.97 kB / 1.036 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3555, allocations: 0 / 1.036 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3555, allocations: 4 kB / 1.036 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.3567, allocations: 0.513 MB / 1.037 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-05/0.3567, allocations: 100.8 kB / 1.037 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.608e-05/0.3568, allocations: 23.98 kB / 1.037 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004607/0.3573, allocations: 67.91 kB / 1.037 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.3575, allocations: 79.81 kB / 1.037 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.595e-05/0.3575, allocations: 15.98 kB / 1.037 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001385/0.3577, allocations: 156.4 kB / 1.037 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3577, allocations: 0 / 1.037 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003041/0.358, allocations: 63.91 kB / 1.037 GB, free: 6.711 MB / 0.8106 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.0001921/0.3582, allocations: 127.2 kB / 1.038 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008509/0.359, allocations: 361.8 kB / 1.038 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3591, allocations: 0 / 1.038 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005604/0.3596, allocations: 215.4 kB / 1.038 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000459/0.3601, allocations: 71.8 kB / 1.038 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.3614, allocations: 0.5335 MB / 1.039 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.3617, allocations: 0.7483 MB / 1.039 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001411/0.3619, allocations: 38.97 kB / 1.039 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.362, allocations: 43.41 kB / 1.04 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.362, allocations: 0 / 1.04 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of Templates: time 0.009655/0.3717, allocations: 5.752 MB / 1.045 GB, free: 14.82 MB / 0.8262 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 -s gbode -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