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.007495/0.007495, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.00145/0.00145, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.606/2.606, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 67.88 kB / 1.054 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8638/0.8653, allocations: 157.4 MB / 1.207 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002455/0.8678, allocations: 0.8238 MB / 1.208 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002357/0.8702, allocations: 1.287 MB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.8703, allocations: 4 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.897e-05/0.8704, allocations: 11.81 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001386/0.8706, allocations: 15.8 kB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.8717, allocations: 333.2 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007145/0.8724, allocations: 311.5 kB / 1.21 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.8726, allocations: 45.3 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.8728, allocations: 115.8 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002452/0.8731, allocations: 111.7 kB / 1.21 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.402e-05/0.8731, allocations: 28 kB / 1.21 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.8733, allocations: 39.98 kB / 1.21 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.82e-05/0.8733, allocations: 23.92 kB / 1.21 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.8735, allocations: 103.6 kB / 1.21 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004325/0.8739, allocations: 265.5 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.8739, allocations: 0 / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.284e-06/0.8739, allocations: 0 / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.662e-05/0.874, allocations: 0 / 1.211 GB, free: 10.11 MB / 0.9356 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.0008555/0.8748, allocations: 0.5312 MB / 1.211 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.8749, allocations: 8.031 kB / 1.211 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.679e-05/0.875, allocations: 42.75 kB / 1.211 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.8751, allocations: 20.83 kB / 1.211 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.8754, allocations: 184.6 kB / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.093e-05/0.8754, allocations: 19.94 kB / 1.211 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.172e-05/0.8755, allocations: 20 kB / 1.211 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/0.8758, allocations: 86.84 kB / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.8758, allocations: 0 / 1.212 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.8758, allocations: 4 kB / 1.212 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.8758, allocations: 4 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.876, allocations: 43.98 kB / 1.212 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.8773, allocations: 0.4884 MB / 1.212 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.8776, allocations: 74.55 kB / 1.212 GB, free: 8.418 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.633e-05/0.8777, allocations: 24.92 kB / 1.212 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.8777, allocations: 0 / 1.212 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.8781, allocations: 123.3 kB / 1.212 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 2.365e-06/0.8781, allocations: 0 / 1.212 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0004194/0.8785, allocations: 169.4 kB / 1.212 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.8786, allocations: 51.41 kB / 1.213 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.8788, allocations: 175.3 kB / 1.213 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.8788, allocations: 33.7 kB / 1.213 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.8789, allocations: 120 kB / 1.213 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/0.879, allocations: 23.72 kB / 1.213 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.8791, allocations: 77.61 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.8793, allocations: 322.8 kB / 1.213 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.8795, allocations: 95.94 kB / 1.213 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.8798, allocations: 138 kB / 1.213 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.8803, allocations: 257.1 kB / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.8803, allocations: 4 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007631/0.8811, allocations: 410.2 kB / 1.214 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.8812, allocations: 97.09 kB / 1.214 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.8812, allocations: 4 kB / 1.214 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.8813, allocations: 4 kB / 1.214 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.386e-05/0.8813, allocations: 11.94 kB / 1.214 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.8813, allocations: 0 / 1.214 GB, free: 6.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004344/0.8818, allocations: 91.92 kB / 1.214 GB, free: 6.066 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.714e-05/0.8818, allocations: 19.98 kB / 1.214 GB, free: 6.047 MB / 0.9356 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.0001469/0.882, allocations: 133.8 kB / 1.214 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.882, allocations: 11.84 kB / 1.214 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.386e-05/0.8821, allocations: 16.84 kB / 1.214 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.8821, allocations: 3.984 kB / 1.214 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.8821, allocations: 7.938 kB / 1.214 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.8821, allocations: 0 / 1.214 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.8823, allocations: 217.5 kB / 1.215 GB, free: 5.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.8823, allocations: 3.938 kB / 1.215 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/0.8824, allocations: 11.98 kB / 1.215 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.8824, allocations: 0 / 1.215 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.8824, allocations: 12 kB / 1.215 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.8824, allocations: 3.984 kB / 1.215 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.8824, allocations: 0 / 1.215 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002539/0.8827, allocations: 170 kB / 1.215 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.1e-05/0.8828, allocations: 92.86 kB / 1.215 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.8828, allocations: 0 / 1.215 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.605e-05/0.8828, allocations: 11.98 kB / 1.215 GB, free: 5.258 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.8829, allocations: 7.984 kB / 1.215 GB, free: 5.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.8829, allocations: 8 kB / 1.215 GB, free: 5.242 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.125e-05/0.883, allocations: 115.2 kB / 1.215 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.883, allocations: 0 / 1.215 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002915/0.8833, allocations: 48 kB / 1.215 GB, free: 5.082 MB / 0.9356 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.0007511/0.8841, allocations: 0.7167 MB / 1.216 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007369/0.8848, allocations: 386 kB / 1.216 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.8848, allocations: 384 / 1.216 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.501e-05/0.8849, allocations: 55.92 kB / 1.216 GB, free: 3.871 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.8852, allocations: 23.92 kB / 1.216 GB, free: 3.848 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/0.8886, allocations: 2.254 MB / 1.219 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.8892, allocations: 0.7084 MB / 1.219 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.5e-05/0.8893, allocations: 12.64 kB / 1.219 GB, free: 0.7148 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.658e-05/0.8894, allocations: 43.42 kB / 1.219 GB, free: 0.6719 MB / 0.9356 GB Notification: Performance of SimCode: time 4.01e-07/0.8894, allocations: 3.938 kB / 1.219 GB, free: 0.668 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02484/0.9142, allocations: 4.21 MB / 1.223 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.972/8.886, allocations: 13.77 kB / 1.223 GB, free: 12.57 MB / 0.9512 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