Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_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.001566/0.001566, allocations: 108 kB / 15.61 MB, free: 152 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.001774/0.001774, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.633/2.633, allocations: 461.9 MB / 0.7347 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 66.62 kB / 0.8992 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3542, allocations: 157.4 MB / 1.053 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001971/0.3562, allocations: 0.7091 MB / 1.054 GB, free: 7.543 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.3577, allocations: 1.272 MB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.347e-05/0.3578, allocations: 3.938 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.056e-05/0.3579, allocations: 11.86 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.319e-05/0.358, allocations: 19.86 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008107/0.3588, allocations: 307 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.3591, allocations: 259.7 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.3592, allocations: 16.17 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.3593, allocations: 107.7 kB / 1.056 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.3595, allocations: 71.84 kB / 1.056 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.3595, allocations: 24 kB / 1.056 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.939e-05/0.3596, allocations: 43.97 kB / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.642e-05/0.3597, allocations: 15.92 kB / 1.056 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.3598, allocations: 87.73 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002574/0.3601, allocations: 211.8 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3601, allocations: 4 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.695e-06/0.3601, allocations: 0 / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.3601, allocations: 3.938 kB / 1.056 GB, free: 5.098 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005592/0.3606, allocations: 498.2 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.3607, allocations: 8.625 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.553e-05/0.3608, allocations: 42.73 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.552e-05/0.3608, allocations: 12.84 kB / 1.057 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.3609, allocations: 164.4 kB / 1.057 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.361, allocations: 8.375 kB / 1.057 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.361, allocations: 16.31 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.3611, allocations: 69.95 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3612, allocations: 0 / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.3612, allocations: 0 / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3612, allocations: 0 / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.344e-05/0.3612, allocations: 27.98 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005223/0.3618, allocations: 412.4 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.143e-05/0.3619, allocations: 42.44 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.634e-05/0.3619, allocations: 16.86 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.3619, allocations: 0 / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.3622, allocations: 107.3 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.3622, allocations: 0 / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003362/0.3625, allocations: 137.5 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.3626, allocations: 55.41 kB / 1.058 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.3627, allocations: 132.1 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.586e-05/0.3628, allocations: 33.7 kB / 1.058 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.355e-05/0.3629, allocations: 104.1 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.3629, allocations: 19.81 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.363, allocations: 65.67 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3631, allocations: 326.8 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.3634, allocations: 87.94 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.3636, allocations: 130 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.3639, allocations: 239.8 kB / 1.059 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.3639, allocations: 0 / 1.059 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000635/0.3645, allocations: 378.5 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.507e-05/0.3646, allocations: 102.2 kB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3647, allocations: 0 / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.3647, allocations: 7.938 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.347e-05/0.3647, allocations: 11.94 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.3647, allocations: 0 / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005674/0.3653, allocations: 92.3 kB / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.3654, allocations: 19.98 kB / 1.059 GB, free: 1.457 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.0001477/0.3655, allocations: 129.8 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.007e-05/0.3656, allocations: 11.84 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.434e-05/0.3656, allocations: 12.36 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3656, allocations: 0 / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.3656, allocations: 8 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.3656, allocations: 3.984 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.3658, allocations: 193.5 kB / 1.06 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3658, allocations: 3.938 kB / 1.06 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.366e-05/0.3659, allocations: 3.984 kB / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3659, allocations: 0 / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.3659, allocations: 8 kB / 1.06 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.3659, allocations: 0 / 1.06 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3659, allocations: 0 / 1.06 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.3661, allocations: 144.9 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.907e-05/0.3662, allocations: 81.02 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.3662, allocations: 4 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.92e-05/0.3663, allocations: 4 kB / 1.06 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.3663, allocations: 7.984 kB / 1.06 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.3663, allocations: 4 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.657e-05/0.3664, allocations: 99.27 kB / 1.06 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3664, allocations: 0 / 1.06 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002779/0.3667, allocations: 47.98 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0005282/0.3672, allocations: 0.6809 MB / 1.061 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004709/0.3677, allocations: 362.2 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3677, allocations: 4.312 kB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.655e-05/0.3678, allocations: 47.92 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.3681, allocations: 19.98 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002795/0.3709, allocations: 2.058 MB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.3713, allocations: 0.6963 MB / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.185e-05/0.3713, allocations: 8.438 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.077e-05/0.3714, allocations: 27.42 kB / 1.064 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3714, allocations: 0 / 1.064 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.3929, allocations: 3.784 MB / 1.067 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.708, allocations: 5.156 kB / 1.067 GB, free: 8.809 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches