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.001621/0.001621, allocations: 113 kB / 18.94 MB, free: 2.934 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.002139/0.002139, allocations: 210.3 kB / 22.25 MB, free: 5.086 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.538/1.538, allocations: 230.6 MB / 256 MB, free: 7.996 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.805/2.805, allocations: 476.8 MB / 0.7707 GB, free: 4.254 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [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.002019/0.002019, allocations: 68.09 kB / 1.117 GB, free: 40.31 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3516, allocations: 170 MB / 1.283 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002498/0.354, allocations: 0.8442 MB / 1.284 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001944/0.356, allocations: 1.324 MB / 1.286 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.3561, allocations: 0 / 1.286 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.808e-05/0.3561, allocations: 11.88 kB / 1.286 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.3562, allocations: 27.78 kB / 1.286 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000937/0.3572, allocations: 314.6 kB / 1.286 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004073/0.3576, allocations: 295.5 kB / 1.286 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.3577, allocations: 29.62 kB / 1.286 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.3579, allocations: 119.7 kB / 1.286 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.3581, allocations: 123.5 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.964e-05/0.3582, allocations: 24 kB / 1.286 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.653e-05/0.3583, allocations: 39.98 kB / 1.286 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.152e-05/0.3583, allocations: 27.91 kB / 1.286 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.3584, allocations: 103.7 kB / 1.287 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003523/0.3588, allocations: 262.6 kB / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.3588, allocations: 0 / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3588, allocations: 0 / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.3588, allocations: 0 / 1.287 GB, free: 8.203 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.0008024/0.3596, allocations: 466.9 kB / 1.287 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.238e-05/0.3596, allocations: 8.031 kB / 1.287 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.013e-05/0.3597, allocations: 42.75 kB / 1.287 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.3598, allocations: 24.83 kB / 1.287 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.36, allocations: 129.2 kB / 1.287 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.306e-05/0.3601, allocations: 15.94 kB / 1.287 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.74e-05/0.3601, allocations: 19.94 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.3604, allocations: 98.91 kB / 1.288 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3604, allocations: 0 / 1.288 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.3604, allocations: 0 / 1.288 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3604, allocations: 8 kB / 1.288 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.3605, allocations: 43.98 kB / 1.288 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.3616, allocations: 467.3 kB / 1.288 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.3619, allocations: 62.61 kB / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.155e-05/0.362, allocations: 28.91 kB / 1.288 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.362, allocations: 4 kB / 1.288 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.3623, allocations: 123.3 kB / 1.288 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.863e-06/0.3623, allocations: 0 / 1.288 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0004514/0.3628, allocations: 163.9 kB / 1.288 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.689e-05/0.3628, allocations: 63.39 kB / 1.289 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001928/0.363, allocations: 162.8 kB / 1.289 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.031e-05/0.3631, allocations: 37.7 kB / 1.289 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3632, allocations: 116 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.3632, allocations: 23.84 kB / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.3634, allocations: 81.66 kB / 1.289 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000211/0.3636, allocations: 318.8 kB / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/0.3639, allocations: 95.95 kB / 1.289 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.3641, allocations: 152.6 kB / 1.289 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003929/0.3645, allocations: 249.5 kB / 1.29 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3645, allocations: 4 kB / 1.29 GB, free: 5 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007884/0.3653, allocations: 414.3 kB / 1.29 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.3654, allocations: 97.09 kB / 1.29 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.3655, allocations: 4 kB / 1.29 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.3655, allocations: 0 / 1.29 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.833e-05/0.3656, allocations: 15.98 kB / 1.29 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.016e-06/0.3656, allocations: 3.938 kB / 1.29 GB, free: 4.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005094/0.3661, allocations: 87.98 kB / 1.29 GB, free: 4.348 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.3661, allocations: 23.98 kB / 1.29 GB, free: 4.324 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.0001736/0.3663, allocations: 132.1 kB / 1.29 GB, free: 4.188 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.101e-05/0.3663, allocations: 19.84 kB / 1.29 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.3664, allocations: 16.77 kB / 1.29 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3664, allocations: 4 kB / 1.29 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.3664, allocations: 4 kB / 1.29 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3664, allocations: 0 / 1.29 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.3667, allocations: 188.7 kB / 1.291 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.3667, allocations: 7.922 kB / 1.291 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.959e-05/0.3667, allocations: 11.94 kB / 1.291 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.3667, allocations: 0 / 1.291 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.3668, allocations: 0 / 1.291 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.3668, allocations: 4 kB / 1.291 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3668, allocations: 0 / 1.291 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000273/0.367, allocations: 165 kB / 1.291 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-05/0.3671, allocations: 19.84 kB / 1.291 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.3671, allocations: 3.984 kB / 1.291 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.103e-05/0.3671, allocations: 0 / 1.291 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.3672, allocations: 15.92 kB / 1.291 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.3672, allocations: 8 kB / 1.291 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001115/0.3673, allocations: 118.8 kB / 1.291 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3673, allocations: 4 kB / 1.291 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003281/0.3676, allocations: 55.92 kB / 1.291 GB, free: 3.496 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.0007637/0.3684, allocations: 0.7122 MB / 1.292 GB, free: 2.758 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005989/0.369, allocations: 342.2 kB / 1.292 GB, free: 2.387 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/0.369, allocations: 4 kB / 1.292 GB, free: 2.383 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.3691, allocations: 47.91 kB / 1.292 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.3694, allocations: 26.11 kB / 1.292 GB, free: 2.312 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.3727, allocations: 2.247 MB / 1.294 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.3731, allocations: 0.7084 MB / 1.295 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.077e-05/0.3732, allocations: 16.59 kB / 1.295 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.233e-05/0.3732, allocations: 35.42 kB / 1.295 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of SimCode: time 7.91e-07/0.3732, allocations: 0 / 1.295 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03285/0.4061, allocations: 4.4 MB / 1.299 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.79, allocations: 6.359 kB / 1.299 GB, free: 10.9 MB / 0.9981 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] 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: 18.522786589106545]