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.001244/0.001244, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001349/0.001349, allocations: 190.3 kB / 16.25 MB, free: 6.645 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.37/1.37, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.585/2.585, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 65.72 kB / 0.8987 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3555, allocations: 157.4 MB / 1.052 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001929/0.3575, allocations: 0.7661 MB / 1.053 GB, free: 7.855 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.3589, allocations: 1.272 MB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.735e-05/0.359, allocations: 0 / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.544e-05/0.359, allocations: 3.938 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.924e-05/0.3591, allocations: 15.91 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007335/0.3599, allocations: 288.4 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.3602, allocations: 271.6 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.3603, allocations: 12.19 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.3605, allocations: 107.8 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001339/0.3606, allocations: 71.83 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.531e-05/0.3607, allocations: 24 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.155e-05/0.3608, allocations: 35.98 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.717e-05/0.3608, allocations: 11.94 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.3609, allocations: 87.73 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.3612, allocations: 215.8 kB / 1.056 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3612, allocations: 4 kB / 1.056 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.436e-06/0.3612, allocations: 7.875 kB / 1.056 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.443e-05/0.3613, allocations: 3.938 kB / 1.056 GB, free: 5.438 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.000685/0.3619, allocations: 496.3 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.362, allocations: 8.625 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.315e-05/0.3621, allocations: 34.75 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.233e-05/0.3621, allocations: 12.84 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.3623, allocations: 172.4 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.3623, allocations: 16.38 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.939e-05/0.3624, allocations: 12.38 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.3625, allocations: 65.97 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3625, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.3625, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3625, allocations: 0 / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.602e-05/0.3626, allocations: 27.92 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005773/0.3632, allocations: 416.4 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.903e-05/0.3633, allocations: 34.58 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.609e-05/0.3633, allocations: 20.94 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.3633, allocations: 0 / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.3635, allocations: 103.2 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.3635, allocations: 0 / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003189/0.3638, allocations: 141.5 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.3639, allocations: 55.41 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.364, allocations: 132.6 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.3641, allocations: 29.7 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.867e-05/0.3642, allocations: 104.1 kB / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.3642, allocations: 19.8 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.3643, allocations: 69.67 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3644, allocations: 326.8 kB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.3646, allocations: 88.33 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.3648, allocations: 142.8 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.3651, allocations: 235 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3651, allocations: 0 / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005767/0.3657, allocations: 378.3 kB / 1.059 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.768e-05/0.3658, allocations: 101.1 kB / 1.059 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3658, allocations: 4.125 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.3658, allocations: 8 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.47e-05/0.3658, allocations: 7.984 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.3659, allocations: 0 / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005013/0.3664, allocations: 83.75 kB / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.3664, allocations: 19.98 kB / 1.059 GB, free: 1.801 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.0001206/0.3665, allocations: 141.7 kB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.3666, allocations: 7.906 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.729e-05/0.3666, allocations: 8.375 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3666, allocations: 0 / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.3666, allocations: 4 kB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3666, allocations: 4 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.3668, allocations: 197.5 kB / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3668, allocations: 0 / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.091e-05/0.3668, allocations: 0 / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3668, allocations: 4 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.3668, allocations: 4 kB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3668, allocations: 0 / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3668, allocations: 0 / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.367, allocations: 144.9 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.154e-05/0.367, allocations: 81.02 kB / 1.059 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.3671, allocations: 4 kB / 1.059 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.375e-05/0.3671, allocations: 3.984 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.497e-05/0.3671, allocations: 12 kB / 1.059 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.198e-06/0.3672, allocations: 11.92 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.362e-05/0.3672, allocations: 99.27 kB / 1.059 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3672, allocations: 96 / 1.059 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002563/0.3675, allocations: 43.94 kB / 1.059 GB, free: 0.9492 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.0004673/0.368, allocations: 0.688 MB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004628/0.3684, allocations: 366 kB / 1.06 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3684, allocations: 0 / 1.06 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.155e-05/0.3685, allocations: 35.98 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.3688, allocations: 24.34 kB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.3711, allocations: 2.069 MB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.3713, allocations: 0.6963 MB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.012e-05/0.3714, allocations: 8.438 kB / 1.063 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.833e-05/0.3714, allocations: 27.7 kB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3714, allocations: 3.938 kB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.178/1.55, allocations: 3.7 MB / 1.067 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/1.55, allocations: 209.9 kB / 1.067 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/3.376, allocations: 4.062 kB / 1.067 GB, free: 9.008 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