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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009746/0.0009745, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006304/0.006304, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.407/1.407, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.765/2.765, allocations: 462.6 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003356, allocations: 10.72 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3569, allocations: 159.6 MB / 1.059 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001095/0.358, allocations: 0.5446 MB / 1.059 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001809/0.3598, allocations: 1.318 MB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.726e-05/0.3599, allocations: 4 kB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.082e-05/0.36, allocations: 11.86 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.988e-05/0.3601, allocations: 11.86 kB / 1.061 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008065/0.3609, allocations: 295.4 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.3612, allocations: 263.5 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.735e-05/0.3613, allocations: 33.44 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.3615, allocations: 99.78 kB / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.3616, allocations: 79.7 kB / 1.061 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.418e-05/0.3616, allocations: 16 kB / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.662e-05/0.3617, allocations: 27.98 kB / 1.061 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.544e-05/0.3618, allocations: 19.86 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.3619, allocations: 113.4 kB / 1.062 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002855/0.3622, allocations: 251.5 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3622, allocations: 0 / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3622, allocations: 4 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.247e-06/0.3622, allocations: 0 / 1.062 GB, free: 1.797 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.0005059/0.3627, allocations: 484.2 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.3628, allocations: 11.97 kB / 1.062 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.48e-05/0.3628, allocations: 50.62 kB / 1.062 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.682e-05/0.3629, allocations: 20.83 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.363, allocations: 184.6 kB / 1.062 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.363, allocations: 16.12 kB / 1.063 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.071e-05/0.3631, allocations: 16 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001457/0.3633, allocations: 94.67 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.348e-06/0.3633, allocations: 0 / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.3633, allocations: 0 / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.3633, allocations: 7.938 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.888e-05/0.3634, allocations: 47.97 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006008/0.364, allocations: 0.4962 MB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.3642, allocations: 66.55 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.282e-05/0.3643, allocations: 32.98 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.3643, allocations: 0 / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.3645, allocations: 118.4 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.3645, allocations: 4 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003393/0.3649, allocations: 165.4 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.3649, allocations: 59.41 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.365, allocations: 163.7 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/0.3651, allocations: 33.7 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.3652, allocations: 108 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.3652, allocations: 27.64 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.006e-05/0.3653, allocations: 33.7 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3654, allocations: 334.8 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.3656, allocations: 99.94 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.3659, allocations: 141.9 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003029/0.3662, allocations: 248.6 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3662, allocations: 0 / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006237/0.3668, allocations: 408.2 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.328e-05/0.3669, allocations: 101.3 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.3669, allocations: 4 kB / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3669, allocations: 7.984 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-05/0.367, allocations: 12 kB / 1.065 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.367, allocations: 4 kB / 1.065 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/0.3676, allocations: 118.1 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.3676, allocations: 23.98 kB / 1.065 GB, free: 13.78 MB / 0.8262 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.0001436/0.3678, allocations: 135.1 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.375e-05/0.3678, allocations: 15.84 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.893e-05/0.3679, allocations: 16.83 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3679, allocations: 4 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.3679, allocations: 0 / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3679, allocations: 0 / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.3681, allocations: 221.4 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3681, allocations: 3.984 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.821e-05/0.3682, allocations: 23.88 kB / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3682, allocations: 0 / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.3682, allocations: 0 / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.3682, allocations: 4 kB / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3682, allocations: 0 / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002319/0.3685, allocations: 157 kB / 1.066 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.93e-05/0.3685, allocations: 92.86 kB / 1.066 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.3686, allocations: 7.922 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.27e-05/0.3686, allocations: 8 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/0.3686, allocations: 7.984 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.3687, allocations: 8 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.976e-05/0.3688, allocations: 116.1 kB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3688, allocations: 0 / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002766/0.369, allocations: 55.94 kB / 1.066 GB, free: 12.83 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.0005267/0.3696, allocations: 0.7111 MB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004743/0.3701, allocations: 386 kB / 1.067 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3701, allocations: 0 / 1.067 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.608e-05/0.3702, allocations: 51.98 kB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.3704, allocations: 28.34 kB / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.373, allocations: 2.249 MB / 1.07 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.3733, allocations: 0.7125 MB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.071e-05/0.3734, allocations: 12.64 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.98e-05/0.3734, allocations: 47.36 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.3734, allocations: 0 / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09016/0.4636, allocations: 3.883 MB / 1.074 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/0.4639, allocations: 215.4 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.281, allocations: 0 / 1.074 GB, free: 4.434 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