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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.921/2.921, allocations: 461.9 MB / 0.7346 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 67.67 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.348, allocations: 157.4 MB / 1.053 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002872/0.3509, allocations: 0.8264 MB / 1.054 GB, free: 7.41 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001957/0.3529, allocations: 1.295 MB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.353, allocations: 4 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.582e-05/0.3531, allocations: 11.81 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001135/0.3532, allocations: 27.72 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.3543, allocations: 316.5 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004473/0.3547, allocations: 307.5 kB / 1.056 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.3549, allocations: 37.44 kB / 1.056 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002604/0.3552, allocations: 115.8 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000191/0.3554, allocations: 91.7 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.098e-05/0.3555, allocations: 24 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.3556, allocations: 51.91 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.14e-05/0.3557, allocations: 27.86 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.3559, allocations: 103.7 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004007/0.3563, allocations: 251.6 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.111e-05/0.3563, allocations: 4 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3563, allocations: 0 / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.3563, allocations: 0 / 1.056 GB, free: 4.766 MB / 0.8106 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.0008814/0.3572, allocations: 0.5251 MB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.3573, allocations: 12.62 kB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.655e-05/0.3573, allocations: 34.75 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.564e-05/0.3574, allocations: 28.73 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.3576, allocations: 184.7 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.073e-05/0.3577, allocations: 16.12 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/0.3577, allocations: 16 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.3579, allocations: 93.64 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.3579, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.358, allocations: 8 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.358, allocations: 7.984 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.3581, allocations: 39.98 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007661/0.3589, allocations: 0.4884 MB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.3591, allocations: 82.55 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.603e-05/0.3592, allocations: 28.91 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.348e-06/0.3592, allocations: 0 / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002566/0.3595, allocations: 119.2 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.3595, allocations: 0 / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003777/0.3599, allocations: 173.5 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.3599, allocations: 55.41 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.3601, allocations: 168.1 kB / 1.058 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.3601, allocations: 33.7 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.751e-05/0.3602, allocations: 104.5 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.3603, allocations: 35.55 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.3604, allocations: 73.67 kB / 1.059 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3606, allocations: 326.8 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.3608, allocations: 103.8 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.361, allocations: 145 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.3614, allocations: 256.5 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3614, allocations: 0 / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006391/0.362, allocations: 394.3 kB / 1.06 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.107e-05/0.3621, allocations: 101.1 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3621, allocations: 4 kB / 1.06 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.3622, allocations: 4.188 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.035e-05/0.3622, allocations: 15.94 kB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.3622, allocations: 0 / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.3628, allocations: 87.73 kB / 1.06 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/0.3628, allocations: 23.98 kB / 1.06 GB, free: 0.6914 MB / 0.8106 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.0001359/0.363, allocations: 133.8 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.363, allocations: 23.73 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.44e-05/0.363, allocations: 12.84 kB / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.363, allocations: 0 / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.363, allocations: 0 / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.3631, allocations: 0 / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.3632, allocations: 221.6 kB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3633, allocations: 0 / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.377e-05/0.3633, allocations: 11.94 kB / 1.06 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3633, allocations: 4 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.3633, allocations: 4 kB / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3633, allocations: 0 / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3634, allocations: 3.984 kB / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.3636, allocations: 162.6 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.499e-05/0.3637, allocations: 96.94 kB / 1.061 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.3637, allocations: 0 / 1.061 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.983e-05/0.3637, allocations: 3.938 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.3638, allocations: 19.98 kB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.3638, allocations: 4 kB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.846e-05/0.3639, allocations: 118.3 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.6e-07/0.3639, allocations: 0 / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002732/0.3642, allocations: 55.84 kB / 1.061 GB, free: 15.74 MB / 0.8262 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.0005956/0.3648, allocations: 0.7137 MB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005231/0.3653, allocations: 384.9 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3653, allocations: 4 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.326e-05/0.3654, allocations: 51.91 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.3657, allocations: 29.75 kB / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.3684, allocations: 2.227 MB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.3687, allocations: 0.7084 MB / 1.065 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.777e-05/0.3688, allocations: 12.64 kB / 1.065 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.075e-05/0.3688, allocations: 39.42 kB / 1.065 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3689, allocations: 0 / 1.065 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0232/0.3921, allocations: 4.179 MB / 1.069 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/8.001, allocations: 11.83 kB / 1.069 GB, free: 7.273 MB / 0.8262 GB (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 --timeout=50 --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) 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/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches