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 12.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004984/0.004984, allocations: 98.97 kB / 15.73 MB, free: 6.012 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.001297/0.001297, allocations: 201.7 kB / 16.68 MB, free: 5.926 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.277/1.277, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.496/2.496, allocations: 482.6 MB / 0.7551 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 67.89 kB / 1.083 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6488/0.6505, allocations: 162.3 MB / 1.242 GB, free: 1.16 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001721/0.6523, allocations: 0.8216 MB / 1.243 GB, free: 352 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.6537, allocations: 1.285 MB / 1.244 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.605e-05/0.6538, allocations: 4 kB / 1.244 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.305e-05/0.6538, allocations: 7.875 kB / 1.244 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.977e-05/0.6539, allocations: 27.72 kB / 1.244 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007143/0.6546, allocations: 316.9 kB / 1.244 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003164/0.655, allocations: 315.5 kB / 1.245 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.6551, allocations: 41.41 kB / 1.245 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.6552, allocations: 119.7 kB / 1.245 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.6554, allocations: 115.6 kB / 1.245 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.6554, allocations: 28 kB / 1.245 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.966e-05/0.6555, allocations: 43.92 kB / 1.245 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.745e-05/0.6556, allocations: 19.92 kB / 1.245 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.6557, allocations: 107.6 kB / 1.245 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002824/0.656, allocations: 262.8 kB / 1.245 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.656, allocations: 0 / 1.245 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.092e-06/0.656, allocations: 0 / 1.245 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.656, allocations: 0 / 1.245 GB, free: 13.68 MB / 0.9669 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.0005997/0.6566, allocations: 0.5328 MB / 1.246 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.6566, allocations: 12.03 kB / 1.246 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.592e-05/0.6567, allocations: 38.75 kB / 1.246 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.119e-05/0.6567, allocations: 24.83 kB / 1.246 GB, free: 13 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.6569, allocations: 180.8 kB / 1.246 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.6569, allocations: 19.89 kB / 1.246 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.284e-05/0.657, allocations: 23.98 kB / 1.246 GB, free: 12.74 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001537/0.6571, allocations: 89.58 kB / 1.246 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.6571, allocations: 0 / 1.246 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.6571, allocations: 4 kB / 1.246 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.6572, allocations: 4 kB / 1.246 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.734e-05/0.6573, allocations: 51.97 kB / 1.246 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.6579, allocations: 492.4 kB / 1.247 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.6581, allocations: 74.59 kB / 1.247 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.083e-05/0.6581, allocations: 24.92 kB / 1.247 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.6581, allocations: 7.938 kB / 1.247 GB, free: 11.94 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001822/0.6583, allocations: 119.3 kB / 1.247 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.6583, allocations: 0 / 1.247 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.0003177/0.6587, allocations: 173.1 kB / 1.247 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.6587, allocations: 55.34 kB / 1.247 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.6589, allocations: 174.9 kB / 1.247 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.6589, allocations: 33.7 kB / 1.247 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.128e-05/0.659, allocations: 120 kB / 1.247 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.885e-05/0.659, allocations: 31.73 kB / 1.247 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.6591, allocations: 69.67 kB / 1.248 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.6593, allocations: 330.8 kB / 1.248 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.6595, allocations: 91.95 kB / 1.248 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.6597, allocations: 143.7 kB / 1.248 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002964/0.66, allocations: 255 kB / 1.248 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.66, allocations: 4 kB / 1.248 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006033/0.6606, allocations: 399.8 kB / 1.249 GB, free: 9.836 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.987e-05/0.6607, allocations: 97.09 kB / 1.249 GB, free: 9.723 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.6607, allocations: 0 / 1.249 GB, free: 9.723 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.6607, allocations: 4 kB / 1.249 GB, free: 9.719 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.336e-05/0.6608, allocations: 15.94 kB / 1.249 GB, free: 9.703 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.6608, allocations: 7.922 kB / 1.249 GB, free: 9.695 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/0.6612, allocations: 91.94 kB / 1.249 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.6613, allocations: 19.98 kB / 1.249 GB, free: 9.586 MB / 0.9669 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.0001113/0.6614, allocations: 134.4 kB / 1.249 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.956e-05/0.6614, allocations: 11.89 kB / 1.249 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.782e-05/0.6615, allocations: 24.83 kB / 1.249 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6615, allocations: 0 / 1.249 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.6615, allocations: 0 / 1.249 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.6615, allocations: 0 / 1.249 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001772/0.6617, allocations: 225.4 kB / 1.249 GB, free: 9.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.6617, allocations: 3.938 kB / 1.249 GB, free: 9.137 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.087e-05/0.6617, allocations: 11.98 kB / 1.249 GB, free: 9.125 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.6617, allocations: 0 / 1.249 GB, free: 9.125 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.6618, allocations: 4 kB / 1.249 GB, free: 9.121 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.6618, allocations: 0 / 1.249 GB, free: 9.121 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.6618, allocations: 0 / 1.249 GB, free: 9.121 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002099/0.662, allocations: 165 kB / 1.249 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.662, allocations: 96.89 kB / 1.25 GB, free: 8.828 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.6621, allocations: 3.984 kB / 1.25 GB, free: 8.824 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.418e-05/0.6621, allocations: 8 kB / 1.25 GB, free: 8.816 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.6621, allocations: 11.92 kB / 1.25 GB, free: 8.805 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.988e-06/0.6621, allocations: 8 kB / 1.25 GB, free: 8.797 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.651e-05/0.6622, allocations: 115.2 kB / 1.25 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6622, allocations: 0 / 1.25 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000242/0.6625, allocations: 52 kB / 1.25 GB, free: 8.633 MB / 0.9669 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.000499/0.663, allocations: 0.7058 MB / 1.25 GB, free: 7.902 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004738/0.6635, allocations: 390.2 kB / 1.251 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.6635, allocations: 4.125 kB / 1.251 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.715e-05/0.6636, allocations: 51.92 kB / 1.251 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.6638, allocations: 23.97 kB / 1.251 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.6663, allocations: 2.241 MB / 1.253 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.6666, allocations: 0.7162 MB / 1.254 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.623e-05/0.6666, allocations: 12.64 kB / 1.254 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.378e-05/0.6667, allocations: 35.42 kB / 1.254 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.6667, allocations: 0 / 1.254 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.192/5.859, allocations: 4.223 MB / 1.258 GB, free: 148 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.537/14.4, allocations: 5.109 kB / 1.258 GB, free: 144 kB / 0.9669 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=400 --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