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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001965/0.001965, allocations: 213.7 kB / 22.25 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.429/3.429, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002099/0.002099, allocations: 64.89 kB / 1.186 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3607, allocations: 181.9 MB / 1.363 GB, free: 14.03 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00217/0.3629, allocations: 0.6881 MB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002058/0.365, allocations: 1.284 MB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.35e-05/0.365, allocations: 0 / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.381e-05/0.3651, allocations: 3.938 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.005e-05/0.3652, allocations: 19.86 kB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.3662, allocations: 318.1 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000395/0.3666, allocations: 263.5 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.3667, allocations: 8.188 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.3669, allocations: 99.86 kB / 1.366 GB, free: 11.35 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.3671, allocations: 83.73 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.375e-05/0.3672, allocations: 24 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.3673, allocations: 32 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.448e-05/0.3673, allocations: 15.92 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.3675, allocations: 79.86 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003128/0.3678, allocations: 227.5 kB / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3678, allocations: 0 / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3678, allocations: 0 / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.3678, allocations: 0 / 1.366 GB, free: 10.9 MB / 1.061 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.0006361/0.3684, allocations: 419.1 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3685, allocations: 12.03 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.101e-05/0.3685, allocations: 34.75 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.582e-05/0.3686, allocations: 20.83 kB / 1.367 GB, free: 10.37 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.3687, allocations: 121 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.3687, allocations: 16.34 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.992e-05/0.3688, allocations: 16.38 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.3689, allocations: 57.98 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3689, allocations: 0 / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.369, allocations: 4 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.369, allocations: 0 / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.03e-05/0.369, allocations: 23.92 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006063/0.3696, allocations: 343.7 kB / 1.367 GB, free: 9.727 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 8.509e-05/0.3697, allocations: 30.56 kB / 1.367 GB, free: 9.688 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.045e-05/0.3698, allocations: 21.92 kB / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.3698, allocations: 3.938 kB / 1.368 GB, free: 9.66 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002914/0.3701, allocations: 103.5 kB / 1.368 GB, free: 9.547 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.3701, allocations: 0 / 1.368 GB, free: 9.547 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0003656/0.3704, allocations: 137.5 kB / 1.368 GB, free: 9.406 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.3705, allocations: 55.41 kB / 1.368 GB, free: 9.34 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.3706, allocations: 133.8 kB / 1.368 GB, free: 9.199 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.3707, allocations: 33.7 kB / 1.368 GB, free: 9.16 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.514e-05/0.3708, allocations: 96.12 kB / 1.368 GB, free: 9.062 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.3708, allocations: 19.86 kB / 1.368 GB, free: 9.043 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.371, allocations: 69.67 kB / 1.368 GB, free: 8.969 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3711, allocations: 326.8 kB / 1.368 GB, free: 8.641 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.3714, allocations: 181 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.3717, allocations: 231 kB / 1.369 GB, free: 8.18 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/0.3721, allocations: 235 kB / 1.369 GB, free: 7.91 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.3721, allocations: 8 kB / 1.369 GB, free: 7.902 MB / 1.061 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008111/0.3729, allocations: 475.5 kB / 1.37 GB, free: 7.395 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.373, allocations: 97.47 kB / 1.37 GB, free: 7.281 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.373, allocations: 0 / 1.37 GB, free: 7.281 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.3731, allocations: 4 kB / 1.37 GB, free: 7.277 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.862e-05/0.3731, allocations: 0 / 1.37 GB, free: 7.277 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.3731, allocations: 11.92 kB / 1.37 GB, free: 7.266 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005543/0.3737, allocations: 87.98 kB / 1.37 GB, free: 7.18 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.386e-05/0.3737, allocations: 15.98 kB / 1.37 GB, free: 7.164 MB / 1.061 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.0001735/0.3739, allocations: 133.7 kB / 1.37 GB, free: 7.023 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.535e-05/0.3739, allocations: 7.953 kB / 1.37 GB, free: 7.016 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.001e-05/0.374, allocations: 12.38 kB / 1.37 GB, free: 6.996 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.374, allocations: 0 / 1.37 GB, free: 6.996 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.012e-05/0.374, allocations: 7.984 kB / 1.37 GB, free: 6.988 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.374, allocations: 0 / 1.37 GB, free: 6.988 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.3742, allocations: 156.7 kB / 1.37 GB, free: 6.793 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3742, allocations: 4 kB / 1.37 GB, free: 6.789 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.287e-05/0.3742, allocations: 0 / 1.37 GB, free: 6.789 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3742, allocations: 0 / 1.37 GB, free: 6.789 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.3743, allocations: 4 kB / 1.37 GB, free: 6.785 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3743, allocations: 0 / 1.37 GB, free: 6.785 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.3743, allocations: 3.984 kB / 1.37 GB, free: 6.781 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.3745, allocations: 148.9 kB / 1.37 GB, free: 6.617 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.472e-05/0.3746, allocations: 11.89 kB / 1.37 GB, free: 6.605 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.3746, allocations: 4 kB / 1.37 GB, free: 6.602 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.059e-05/0.3746, allocations: 11.98 kB / 1.37 GB, free: 6.59 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.226e-05/0.3747, allocations: 7.922 kB / 1.37 GB, free: 6.582 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.3747, allocations: 4 kB / 1.37 GB, free: 6.578 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.593e-05/0.3747, allocations: 101.9 kB / 1.37 GB, free: 6.48 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3747, allocations: 0 / 1.37 GB, free: 6.48 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002815/0.375, allocations: 44 kB / 1.37 GB, free: 6.438 MB / 1.061 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.0006134/0.3756, allocations: 0.6789 MB / 1.371 GB, free: 5.73 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005949/0.3762, allocations: 419.1 kB / 1.371 GB, free: 5.266 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3762, allocations: 7.938 kB / 1.371 GB, free: 5.258 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.14e-05/0.3763, allocations: 31.92 kB / 1.371 GB, free: 5.227 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.3766, allocations: 24.19 kB / 1.371 GB, free: 5.203 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.3799, allocations: 2.434 MB / 1.374 GB, free: 2.555 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.097e-05/0.38, allocations: 75.89 kB / 1.374 GB, free: 2.457 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.658e-05/0.38, allocations: 12.42 kB / 1.374 GB, free: 2.445 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.508e-05/0.3801, allocations: 27.42 kB / 1.374 GB, free: 2.418 MB / 1.061 GB Notification: Performance of SimCode: time 7.12e-07/0.3801, allocations: 0 / 1.374 GB, free: 2.418 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03235/0.4124, allocations: 4.689 MB / 1.379 GB, free: 13.91 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.85, allocations: 12.69 kB / 1.379 GB, free: 13.9 MB / 1.076 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/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) [Timeout 300] "Error: Could not read variable logicalSwitch.u1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u3 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u3 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.983978073112667]