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.001437/0.001437, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001619/0.001619, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.609/1.609, allocations: 230.6 MB / 256 MB, free: 7.809 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.951/2.951, allocations: 475.9 MB / 0.7699 GB, free: 4.785 MB / 0.6231 GB " [Timeout remaining time 176] 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.002145/0.002145, allocations: 66.94 kB / 1.117 GB, free: 41.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4067, allocations: 170 MB / 1.283 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002288/0.409, allocations: 0.8143 MB / 1.284 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001965/0.411, allocations: 1.301 MB / 1.285 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.519e-05/0.4111, allocations: 0 / 1.285 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.912e-05/0.4111, allocations: 11.86 kB / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.715e-05/0.4112, allocations: 19.8 kB / 1.285 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009245/0.4121, allocations: 328.5 kB / 1.285 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003699/0.4125, allocations: 287.5 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.4126, allocations: 33.61 kB / 1.286 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.4128, allocations: 123.7 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.413, allocations: 91.67 kB / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.331e-05/0.4131, allocations: 32 kB / 1.286 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.4132, allocations: 35.98 kB / 1.286 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.118e-05/0.4132, allocations: 27.92 kB / 1.286 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.4133, allocations: 91.67 kB / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003579/0.4137, allocations: 271.1 kB / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4137, allocations: 0 / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4137, allocations: 0 / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.493e-05/0.4137, allocations: 3.984 kB / 1.286 GB, free: 8.535 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.0007984/0.4145, allocations: 458.8 kB / 1.287 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4145, allocations: 12.03 kB / 1.287 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.712e-05/0.4146, allocations: 24.84 kB / 1.287 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.4148, allocations: 123 kB / 1.287 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.4148, allocations: 16.12 kB / 1.287 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.506e-05/0.4148, allocations: 20 kB / 1.287 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.415, allocations: 81.66 kB / 1.287 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.415, allocations: 0 / 1.287 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.4151, allocations: 15.92 kB / 1.287 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.4151, allocations: 0 / 1.287 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.4152, allocations: 46 kB / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006842/0.4159, allocations: 384.1 kB / 1.288 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002476/0.4161, allocations: 70.62 kB / 1.288 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.102e-05/0.4162, allocations: 28.91 kB / 1.288 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.4162, allocations: 0 / 1.288 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.4164, allocations: 107.3 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.4164, allocations: 0 / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003766/0.4168, allocations: 188.8 kB / 1.288 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.4168, allocations: 51.41 kB / 1.288 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.417, allocations: 157.1 kB / 1.288 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.484e-05/0.417, allocations: 37.7 kB / 1.288 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.525e-05/0.4171, allocations: 116.4 kB / 1.288 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/0.4171, allocations: 23.84 kB / 1.288 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.4173, allocations: 85.66 kB / 1.288 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4174, allocations: 322.8 kB / 1.289 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/0.4177, allocations: 189 kB / 1.289 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.418, allocations: 235 kB / 1.289 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.4183, allocations: 249.1 kB / 1.289 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.4183, allocations: 0 / 1.289 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007316/0.419, allocations: 0.5022 MB / 1.29 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.086e-05/0.4191, allocations: 101.1 kB / 1.29 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4191, allocations: 0 / 1.29 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.4192, allocations: 4 kB / 1.29 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.708e-05/0.4192, allocations: 8 kB / 1.29 GB, free: 4.613 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.4192, allocations: 4 kB / 1.29 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/0.4197, allocations: 87.98 kB / 1.29 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.4198, allocations: 23.91 kB / 1.29 GB, free: 4.5 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.0001512/0.4199, allocations: 137.8 kB / 1.29 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.4199, allocations: 11.89 kB / 1.29 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.563e-05/0.42, allocations: 20.72 kB / 1.29 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.42, allocations: 0 / 1.29 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.42, allocations: 0 / 1.29 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.42, allocations: 0 / 1.29 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.4201, allocations: 157.2 kB / 1.29 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4201, allocations: 0 / 1.29 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.697e-05/0.4202, allocations: 11.94 kB / 1.29 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.4202, allocations: 3.938 kB / 1.29 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.4202, allocations: 11.98 kB / 1.29 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.4202, allocations: 0 / 1.29 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4202, allocations: 0 / 1.29 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002644/0.4205, allocations: 165 kB / 1.291 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-05/0.4205, allocations: 15.84 kB / 1.291 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.4205, allocations: 0 / 1.291 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.591e-05/0.4205, allocations: 7.984 kB / 1.291 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.4206, allocations: 15.97 kB / 1.291 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.4206, allocations: 4 kB / 1.291 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.131e-05/0.4207, allocations: 103.3 kB / 1.291 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.4207, allocations: 4 kB / 1.291 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002781/0.421, allocations: 51.98 kB / 1.291 GB, free: 3.734 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.0001945/0.4212, allocations: 118 kB / 1.291 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006124/0.4218, allocations: 439.2 kB / 1.291 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4218, allocations: 0 / 1.291 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.534e-05/0.4219, allocations: 47.91 kB / 1.291 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.4221, allocations: 23.92 kB / 1.291 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004966/0.4226, allocations: 239.8 kB / 1.292 GB, free: 2.797 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.641e-05/0.4227, allocations: 98.28 kB / 1.292 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.362e-05/0.4228, allocations: 12.97 kB / 1.292 GB, free: 2.672 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.456e-05/0.4228, allocations: 19.44 kB / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.4228, allocations: 0 / 1.292 GB, free: 2.652 MB / 0.9825 GB Notification: Performance of Templates: time 0.006879/0.4297, allocations: 3.114 MB / 1.295 GB, free: 15.61 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/jenkins/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: 9.71054021641612]