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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001851/0.001851, allocations: 114.7 kB / 17.6 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002046/0.002046, allocations: 189.9 kB / 20.78 MB, free: 1.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 225.6 MB / 249.4 MB, free: 3.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.868/2.868, allocations: 476.7 MB / 0.7629 GB, free: 15.09 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> 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: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 67.89 kB / 1.107 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9521/0.9541, allocations: 168.7 MB / 1.272 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002001/0.9561, allocations: 0.8427 MB / 1.272 GB, free: 7.148 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001468/0.9575, allocations: 1.291 MB / 1.274 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.63e-05/0.9576, allocations: 1.438 kB / 1.274 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.27e-05/0.9577, allocations: 9.562 kB / 1.274 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.81e-05/0.9578, allocations: 21.53 kB / 1.274 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008797/0.9586, allocations: 331.1 kB / 1.274 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003471/0.959, allocations: 289 kB / 1.274 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.9591, allocations: 34.83 kB / 1.274 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.9593, allocations: 120.9 kB / 1.274 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.9595, allocations: 119.2 kB / 1.274 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.06e-05/0.9596, allocations: 25.91 kB / 1.275 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.9597, allocations: 39.75 kB / 1.275 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.242e-05/0.9597, allocations: 21.72 kB / 1.275 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.9598, allocations: 108.5 kB / 1.275 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000354/0.9602, allocations: 266.3 kB / 1.275 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.9602, allocations: 0.7188 kB / 1.275 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.423e-06/0.9602, allocations: 3.938 kB / 1.275 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.485e-06/0.9602, allocations: 0 / 1.275 GB, free: 5.602 MB / 0.9981 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.0006339/0.9608, allocations: 0.5225 MB / 1.275 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.9609, allocations: 13.53 kB / 1.275 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.786e-05/0.9609, allocations: 41.19 kB / 1.276 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.589e-05/0.961, allocations: 18.11 kB / 1.276 GB, free: 5.047 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.911e-05/0.9611, allocations: 185.9 kB / 1.276 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.576e-05/0.9611, allocations: 17.06 kB / 1.276 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.9612, allocations: 17.33 kB / 1.276 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.9613, allocations: 90.36 kB / 1.276 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.9614, allocations: 1.859 kB / 1.276 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.9614, allocations: 4.875 kB / 1.276 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.9614, allocations: 1.906 kB / 1.276 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.9615, allocations: 48.22 kB / 1.276 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006694/0.9622, allocations: 499.7 kB / 1.276 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.9624, allocations: 62.73 kB / 1.276 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.483e-05/0.9624, allocations: 26.84 kB / 1.276 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.9624, allocations: 1.531 kB / 1.276 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002257/0.9627, allocations: 124.3 kB / 1.277 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.9627, allocations: 0 / 1.277 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.0003779/0.9631, allocations: 173.4 kB / 1.277 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.9631, allocations: 54.38 kB / 1.277 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.9632, allocations: 163.7 kB / 1.277 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.9632, allocations: 40.52 kB / 1.277 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.639e-05/0.9633, allocations: 120.3 kB / 1.277 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.364e-05/0.9633, allocations: 29.83 kB / 1.277 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.9635, allocations: 77.36 kB / 1.277 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.681e-05/0.9635, allocations: 322.1 kB / 1.277 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.9637, allocations: 94.97 kB / 1.278 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.964, allocations: 142.2 kB / 1.278 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.9642, allocations: 248.2 kB / 1.278 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.9643, allocations: 0.875 kB / 1.278 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006709/0.9649, allocations: 423.8 kB / 1.278 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.615e-05/0.965, allocations: 100.9 kB / 1.278 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.965, allocations: 1.406 kB / 1.278 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.965, allocations: 7.25 kB / 1.278 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.544e-05/0.9651, allocations: 9.188 kB / 1.278 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.9651, allocations: 6 kB / 1.278 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004953/0.9656, allocations: 88.66 kB / 1.279 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.817e-05/0.9656, allocations: 21.86 kB / 1.279 GB, free: 2.797 MB / 0.9981 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.0001048/0.9657, allocations: 133.8 kB / 1.279 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.273e-05/0.9658, allocations: 23.12 kB / 1.279 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.653e-05/0.9658, allocations: 11.69 kB / 1.279 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.9658, allocations: 6.875 kB / 1.279 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.9658, allocations: 0 / 1.279 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.9658, allocations: 6.312 kB / 1.279 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.966, allocations: 216.9 kB / 1.279 GB, free: 2.422 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.966, allocations: 3.938 kB / 1.279 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.757e-05/0.966, allocations: 15.17 kB / 1.279 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.966, allocations: 1 kB / 1.279 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.966, allocations: 1.75 kB / 1.279 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.966, allocations: 1.031 kB / 1.279 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.966, allocations: 0 / 1.279 GB, free: 2.414 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.9662, allocations: 170.8 kB / 1.279 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.696e-05/0.9663, allocations: 96.56 kB / 1.279 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.9663, allocations: 5.438 kB / 1.279 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.214e-05/0.9663, allocations: 0.6875 kB / 1.279 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.9664, allocations: 12.06 kB / 1.279 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.9664, allocations: 3.688 kB / 1.279 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.084e-05/0.9664, allocations: 120 kB / 1.279 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.9664, allocations: 0 / 1.279 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002752/0.9667, allocations: 56.89 kB / 1.279 GB, free: 2.09 MB / 0.9981 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.0004158/0.9671, allocations: 0.7007 MB / 1.28 GB, free: 1.465 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004455/0.9676, allocations: 345.7 kB / 1.28 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.9676, allocations: 4.125 kB / 1.28 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 8.117e-05/0.9676, allocations: 46.52 kB / 1.28 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.9679, allocations: 31.52 kB / 1.281 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/0.9706, allocations: 2.261 MB / 1.283 GB, free: 15.49 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.9709, allocations: 0.7107 MB / 1.283 GB, free: 14.79 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.846e-05/0.971, allocations: 13.09 kB / 1.283 GB, free: 14.79 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.739e-05/0.9711, allocations: 37.05 kB / 1.283 GB, free: 14.77 MB / 1.014 GB Notification: Performance of SimCode: time 3.41e-07/0.9711, allocations: 0.8125 kB / 1.283 GB, free: 14.77 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0275/0.9986, allocations: 4.226 MB / 1.288 GB, free: 14.19 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.93/8.928, allocations: 5.547 kB / 1.288 GB, free: 14.19 MB / 1.014 GB " [Timeout remaining time 291] (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 --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_2/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: 15.016582276002737]