Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001572/0.001572, allocations: 104.3 kB / 16.45 MB, free: 6.445 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.001412/0.001412, allocations: 188.6 kB / 19.4 MB, free: 3.66 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.497/1.497, allocations: 225.6 MB / 247.8 MB, free: 3.738 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.819/2.819, allocations: 497.2 MB / 0.7812 GB, free: 11.96 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 63.89 kB / 1.134 GB, free: 13.14 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9638/0.9659, allocations: 173.9 MB / 1.304 GB, free: 32.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002016/0.9679, allocations: 0.8217 MB / 1.305 GB, free: 31.57 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0013/0.9692, allocations: 1.3 MB / 1.306 GB, free: 30.63 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.312e-05/0.9693, allocations: 6.875 kB / 1.306 GB, free: 30.63 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.541e-05/0.9693, allocations: 7.875 kB / 1.306 GB, free: 30.62 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.554e-05/0.9694, allocations: 30.27 kB / 1.306 GB, free: 30.6 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007312/0.9701, allocations: 324.3 kB / 1.306 GB, free: 30.44 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002602/0.9704, allocations: 289.1 kB / 1.307 GB, free: 30.32 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.9705, allocations: 28.72 kB / 1.307 GB, free: 30.3 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.9706, allocations: 120.3 kB / 1.307 GB, free: 30.25 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.9707, allocations: 118.1 kB / 1.307 GB, free: 30.2 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.048e-05/0.9708, allocations: 26.12 kB / 1.307 GB, free: 30.2 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.158e-05/0.9708, allocations: 39.09 kB / 1.307 GB, free: 30.19 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.458e-05/0.9709, allocations: 20.75 kB / 1.307 GB, free: 30.18 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.28e-05/0.971, allocations: 104.9 kB / 1.307 GB, free: 30.12 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.9712, allocations: 260.5 kB / 1.307 GB, free: 30.04 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.9712, allocations: 6.359 kB / 1.307 GB, free: 30.04 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.403e-06/0.9712, allocations: 0 / 1.307 GB, free: 30.04 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.76e-06/0.9712, allocations: 0 / 1.307 GB, free: 30.04 MB / 1.061 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.0005324/0.9717, allocations: 0.5263 MB / 1.308 GB, free: 29.52 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.9718, allocations: 12.38 kB / 1.308 GB, free: 29.52 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.467e-05/0.9718, allocations: 44.91 kB / 1.308 GB, free: 29.47 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.31e-05/0.9719, allocations: 22.75 kB / 1.308 GB, free: 29.46 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.972, allocations: 182 kB / 1.308 GB, free: 29.26 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.972, allocations: 16.62 kB / 1.308 GB, free: 29.25 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.041e-05/0.972, allocations: 16.97 kB / 1.308 GB, free: 29.25 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.9722, allocations: 92.83 kB / 1.308 GB, free: 29.19 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.9722, allocations: 0 / 1.308 GB, free: 29.19 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.9722, allocations: 6.156 kB / 1.308 GB, free: 29.19 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.9722, allocations: 2.844 kB / 1.308 GB, free: 29.19 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.303e-05/0.9723, allocations: 54.33 kB / 1.308 GB, free: 29.16 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.9729, allocations: 499.1 kB / 1.309 GB, free: 28.8 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.9732, allocations: 62.92 kB / 1.309 GB, free: 28.77 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.287e-05/0.9732, allocations: 27.94 kB / 1.309 GB, free: 28.75 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 9.427e-06/0.9732, allocations: 0 / 1.309 GB, free: 28.75 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.9734, allocations: 124.7 kB / 1.309 GB, free: 28.68 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.9734, allocations: 0 / 1.309 GB, free: 28.68 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0003351/0.9737, allocations: 167.6 kB / 1.309 GB, free: 28.61 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.9738, allocations: 58.06 kB / 1.309 GB, free: 28.54 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.9739, allocations: 160.4 kB / 1.309 GB, free: 28.41 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.9739, allocations: 35.39 kB / 1.309 GB, free: 28.38 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.353e-05/0.974, allocations: 113 kB / 1.31 GB, free: 28.28 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.974, allocations: 36.78 kB / 1.31 GB, free: 28.25 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.9741, allocations: 79.33 kB / 1.31 GB, free: 28.21 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.222e-05/0.9742, allocations: 321.2 kB / 1.31 GB, free: 27.9 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.9744, allocations: 96.62 kB / 1.31 GB, free: 27.87 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.9746, allocations: 144.2 kB / 1.31 GB, free: 27.78 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.9748, allocations: 253.8 kB / 1.31 GB, free: 27.57 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.9748, allocations: 0 / 1.31 GB, free: 27.57 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005277/0.9753, allocations: 419.1 kB / 1.311 GB, free: 27.34 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.669e-05/0.9754, allocations: 99.36 kB / 1.311 GB, free: 27.24 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.9754, allocations: 0 / 1.311 GB, free: 27.24 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.9754, allocations: 2.688 kB / 1.311 GB, free: 27.24 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.307e-05/0.9755, allocations: 11.73 kB / 1.311 GB, free: 27.24 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.9755, allocations: 10.92 kB / 1.311 GB, free: 27.23 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000429/0.9759, allocations: 89.09 kB / 1.311 GB, free: 27.21 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.881e-05/0.9759, allocations: 21.89 kB / 1.311 GB, free: 27.21 MB / 1.061 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.0001016/0.9761, allocations: 137 kB / 1.311 GB, free: 27.08 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.9761, allocations: 17.72 kB / 1.311 GB, free: 27.07 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.343e-05/0.9761, allocations: 11.72 kB / 1.311 GB, free: 27.06 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.9761, allocations: 6.938 kB / 1.311 GB, free: 27.06 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.9761, allocations: 0 / 1.311 GB, free: 27.06 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.9761, allocations: 3.234 kB / 1.311 GB, free: 27.06 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.9763, allocations: 216.8 kB / 1.311 GB, free: 26.84 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.9763, allocations: 3.938 kB / 1.311 GB, free: 26.84 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.993e-05/0.9763, allocations: 13.31 kB / 1.311 GB, free: 26.84 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.9763, allocations: 0 / 1.311 GB, free: 26.84 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.9763, allocations: 6.25 kB / 1.311 GB, free: 26.84 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.9763, allocations: 0 / 1.311 GB, free: 26.84 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.9763, allocations: 0 / 1.311 GB, free: 26.84 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.9765, allocations: 164.8 kB / 1.312 GB, free: 26.73 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.849e-05/0.9766, allocations: 99 kB / 1.312 GB, free: 26.62 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.9766, allocations: 6.562 kB / 1.312 GB, free: 26.62 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.891e-05/0.9766, allocations: 0 / 1.312 GB, free: 26.62 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.433e-05/0.9767, allocations: 16.92 kB / 1.312 GB, free: 26.61 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.9767, allocations: 6.094 kB / 1.312 GB, free: 26.61 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.607e-05/0.9767, allocations: 120.7 kB / 1.312 GB, free: 26.52 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.9767, allocations: 0 / 1.312 GB, free: 26.52 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002568/0.977, allocations: 55 kB / 1.312 GB, free: 26.51 MB / 1.061 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.0004019/0.9774, allocations: 0.7066 MB / 1.313 GB, free: 25.88 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000409/0.9778, allocations: 348.1 kB / 1.313 GB, free: 25.62 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.9778, allocations: 4.062 kB / 1.313 GB, free: 25.62 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.734e-05/0.9779, allocations: 50.28 kB / 1.313 GB, free: 25.6 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.9781, allocations: 21.95 kB / 1.313 GB, free: 25.6 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002051/0.9802, allocations: 2.257 MB / 1.315 GB, free: 23.91 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.9803, allocations: 0.7104 MB / 1.316 GB, free: 23.21 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.845e-05/0.9804, allocations: 13.09 kB / 1.316 GB, free: 23.21 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.628e-05/0.9804, allocations: 36.08 kB / 1.316 GB, free: 23.18 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.9804, allocations: 0 / 1.316 GB, free: 23.18 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/1.006, allocations: 4.232 MB / 1.32 GB, free: 22.61 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.497/9.503, allocations: 10.02 kB / 1.32 GB, free: 22.6 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 16.065185043029487]