Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002103/0.002103, allocations: 106.2 kB / 19.69 MB, free: 2.277 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002496/0.002496, allocations: 217.3 kB / 23.01 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.45/1.45, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.715/2.715, allocations: 476.7 MB / 0.7714 GB, free: 4.262 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 64.66 kB / 1.119 GB, free: 40.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3379, allocations: 170 MB / 1.285 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002072/0.34, allocations: 0.8306 MB / 1.285 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001676/0.3417, allocations: 1.332 MB / 1.287 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.836e-05/0.3417, allocations: 3.938 kB / 1.287 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.786e-05/0.3418, allocations: 11.88 kB / 1.287 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.256e-05/0.3419, allocations: 19.78 kB / 1.287 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008674/0.3427, allocations: 326.3 kB / 1.287 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003404/0.3431, allocations: 291.5 kB / 1.287 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3432, allocations: 33.56 kB / 1.287 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.3433, allocations: 115.8 kB / 1.287 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.3435, allocations: 115.6 kB / 1.288 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.407e-05/0.3436, allocations: 24 kB / 1.288 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.962e-05/0.3436, allocations: 43.92 kB / 1.288 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.3437, allocations: 27.91 kB / 1.288 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.3438, allocations: 103.7 kB / 1.288 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003255/0.3441, allocations: 263.2 kB / 1.288 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.3441, allocations: 0 / 1.288 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3441, allocations: 0 / 1.288 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.3441, allocations: 0 / 1.288 GB, free: 7.723 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007351/0.3449, allocations: 462.9 kB / 1.288 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.3449, allocations: 8.031 kB / 1.288 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.031e-05/0.345, allocations: 20.84 kB / 1.289 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.3451, allocations: 125.4 kB / 1.289 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.3452, allocations: 20.11 kB / 1.289 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.3452, allocations: 20 kB / 1.289 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.3455, allocations: 95.27 kB / 1.289 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3455, allocations: 0 / 1.289 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.3455, allocations: 8 kB / 1.289 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3455, allocations: 0 / 1.289 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.3456, allocations: 55.91 kB / 1.289 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007709/0.3464, allocations: 463.4 kB / 1.289 GB, free: 6.355 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.3466, allocations: 70.5 kB / 1.289 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.621e-05/0.3467, allocations: 28.97 kB / 1.289 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.3467, allocations: 0 / 1.289 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.3469, allocations: 124.6 kB / 1.289 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.3469, allocations: 0 / 1.289 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003634/0.3473, allocations: 183.9 kB / 1.29 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.3473, allocations: 55.41 kB / 1.29 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.3475, allocations: 161.1 kB / 1.29 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.3475, allocations: 33.7 kB / 1.29 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.771e-05/0.3476, allocations: 108 kB / 1.29 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.3476, allocations: 27.84 kB / 1.29 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.3477, allocations: 77.67 kB / 1.29 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3479, allocations: 326.8 kB / 1.29 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.3481, allocations: 91.94 kB / 1.291 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.3483, allocations: 149.9 kB / 1.291 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003098/0.3486, allocations: 253.5 kB / 1.291 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3486, allocations: 0 / 1.291 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006325/0.3493, allocations: 410.2 kB / 1.291 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.419e-05/0.3493, allocations: 107.3 kB / 1.291 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3493, allocations: 4 kB / 1.291 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3494, allocations: 4.125 kB / 1.291 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.282e-05/0.3494, allocations: 16 kB / 1.291 GB, free: 4 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.3494, allocations: 0 / 1.291 GB, free: 4 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004375/0.3499, allocations: 79.8 kB / 1.291 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.437e-05/0.3499, allocations: 23.98 kB / 1.292 GB, free: 3.898 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.0001327/0.35, allocations: 142.2 kB / 1.292 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.583e-05/0.3501, allocations: 19.84 kB / 1.292 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.939e-05/0.3501, allocations: 16.78 kB / 1.292 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.3501, allocations: 0 / 1.292 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3501, allocations: 0 / 1.292 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.3501, allocations: 0 / 1.292 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.3503, allocations: 188.7 kB / 1.292 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3503, allocations: 0 / 1.292 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.566e-05/0.3504, allocations: 11.94 kB / 1.292 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3504, allocations: 0 / 1.292 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.3504, allocations: 15.98 kB / 1.292 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3504, allocations: 0 / 1.292 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3504, allocations: 0 / 1.292 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.3506, allocations: 164.9 kB / 1.292 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.293e-05/0.3506, allocations: 15.84 kB / 1.292 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.3507, allocations: 4 kB / 1.292 GB, free: 3.262 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.4e-05/0.3507, allocations: 8 kB / 1.292 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.3507, allocations: 11.97 kB / 1.292 GB, free: 3.242 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.3507, allocations: 12 kB / 1.292 GB, free: 3.23 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.796e-05/0.3508, allocations: 114.8 kB / 1.292 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3508, allocations: 3.938 kB / 1.292 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002714/0.3511, allocations: 51.94 kB / 1.292 GB, free: 3.066 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001646/0.3513, allocations: 111.2 kB / 1.292 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004964/0.3518, allocations: 346.2 kB / 1.293 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3518, allocations: 4.125 kB / 1.293 GB, free: 2.57 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.726e-05/0.3519, allocations: 43.92 kB / 1.293 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.3521, allocations: 23.98 kB / 1.293 GB, free: 2.504 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004973/0.3526, allocations: 277.1 kB / 1.293 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.3529, allocations: 0.7123 MB / 1.294 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/0.353, allocations: 15.44 kB / 1.294 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.353, allocations: 0 / 1.294 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of Templates: time 0.004379/0.3574, allocations: 2.279 MB / 1.296 GB, free: 15.19 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.078403004998108]