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.001713/0.001713, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001469/0.001469, allocations: 217.7 kB / 22.26 MB, free: 5.113 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: 8.227 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.412/3.412, allocations: 0.505 GB / 0.8101 GB, free: 22.02 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.00208/0.00208, allocations: 68.12 kB / 1.177 GB, free: 17.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3917, allocations: 180.2 MB / 1.353 GB, free: 8.457 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002036/0.3937, allocations: 0.702 MB / 1.354 GB, free: 7.758 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001876/0.3956, allocations: 1.299 MB / 1.355 GB, free: 6.445 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.221e-05/0.3957, allocations: 4 kB / 1.355 GB, free: 6.441 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.61e-05/0.3957, allocations: 7.875 kB / 1.355 GB, free: 6.434 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.3958, allocations: 23.84 kB / 1.355 GB, free: 6.41 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009494/0.3968, allocations: 321.1 kB / 1.355 GB, free: 6.105 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004023/0.3972, allocations: 251.7 kB / 1.355 GB, free: 5.859 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.3973, allocations: 16.17 kB / 1.355 GB, free: 5.84 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.3975, allocations: 99.81 kB / 1.356 GB, free: 5.742 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.3977, allocations: 95.73 kB / 1.356 GB, free: 5.648 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.932e-05/0.3978, allocations: 20 kB / 1.356 GB, free: 5.629 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.3979, allocations: 39.98 kB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.991e-05/0.3979, allocations: 15.92 kB / 1.356 GB, free: 5.574 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.3981, allocations: 91.8 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.3984, allocations: 219.6 kB / 1.356 GB, free: 5.27 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3984, allocations: 3.984 kB / 1.356 GB, free: 5.266 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3984, allocations: 0 / 1.356 GB, free: 5.266 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.815e-06/0.3984, allocations: 0 / 1.356 GB, free: 5.266 MB / 1.045 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.0006901/0.3991, allocations: 419.1 kB / 1.356 GB, free: 4.809 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.3992, allocations: 8.031 kB / 1.356 GB, free: 4.801 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.098e-05/0.3992, allocations: 38.75 kB / 1.356 GB, free: 4.754 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.951e-05/0.3993, allocations: 12.89 kB / 1.356 GB, free: 4.742 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.3994, allocations: 126.4 kB / 1.357 GB, free: 4.594 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.3994, allocations: 8.375 kB / 1.357 GB, free: 4.586 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.3995, allocations: 16.38 kB / 1.357 GB, free: 4.57 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.3996, allocations: 61.92 kB / 1.357 GB, free: 4.504 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.3996, allocations: 0 / 1.357 GB, free: 4.504 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.3996, allocations: 4 kB / 1.357 GB, free: 4.5 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3996, allocations: 0 / 1.357 GB, free: 4.5 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.672e-05/0.3997, allocations: 19.98 kB / 1.357 GB, free: 4.48 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005956/0.4003, allocations: 391.5 kB / 1.357 GB, free: 4.055 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.514e-05/0.4003, allocations: 30.58 kB / 1.357 GB, free: 4.016 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.147e-05/0.4004, allocations: 20.94 kB / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 6.351e-06/0.4004, allocations: 0 / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.4006, allocations: 107.2 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.4006, allocations: 0 / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0003147/0.4009, allocations: 137.5 kB / 1.357 GB, free: 3.734 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.401, allocations: 55.41 kB / 1.357 GB, free: 3.668 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.4011, allocations: 134.9 kB / 1.357 GB, free: 3.527 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.441e-05/0.4011, allocations: 37.7 kB / 1.358 GB, free: 3.484 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.904e-05/0.4012, allocations: 88.14 kB / 1.358 GB, free: 3.395 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.4013, allocations: 27.91 kB / 1.358 GB, free: 3.367 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.4014, allocations: 69.67 kB / 1.358 GB, free: 3.293 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.4016, allocations: 322.8 kB / 1.358 GB, free: 2.969 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.4018, allocations: 91.95 kB / 1.358 GB, free: 2.879 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.402, allocations: 130 kB / 1.358 GB, free: 2.73 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.4023, allocations: 242.2 kB / 1.358 GB, free: 2.457 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.4023, allocations: 3.938 kB / 1.358 GB, free: 2.453 MB / 1.045 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006347/0.4029, allocations: 374.5 kB / 1.359 GB, free: 2.062 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 8.338e-05/0.403, allocations: 97.09 kB / 1.359 GB, free: 1.949 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.403, allocations: 4 kB / 1.359 GB, free: 1.945 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.403, allocations: 4.188 kB / 1.359 GB, free: 1.941 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.573e-05/0.4031, allocations: 11.94 kB / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4031, allocations: 8.359 kB / 1.359 GB, free: 1.922 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004793/0.4036, allocations: 79.8 kB / 1.359 GB, free: 1.844 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.4036, allocations: 19.98 kB / 1.359 GB, free: 1.824 MB / 1.045 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.0001355/0.4037, allocations: 139.3 kB / 1.359 GB, free: 1.68 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.824e-05/0.4038, allocations: 11.89 kB / 1.359 GB, free: 1.668 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.892e-05/0.4038, allocations: 8.375 kB / 1.359 GB, free: 1.66 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.4038, allocations: 7.984 kB / 1.359 GB, free: 1.652 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4038, allocations: 0 / 1.359 GB, free: 1.652 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4038, allocations: 0 / 1.359 GB, free: 1.652 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.404, allocations: 168.6 kB / 1.359 GB, free: 1.445 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.404, allocations: 0 / 1.359 GB, free: 1.445 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.21e-05/0.404, allocations: 4 kB / 1.359 GB, free: 1.441 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.404, allocations: 7.984 kB / 1.359 GB, free: 1.434 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.404, allocations: 0 / 1.359 GB, free: 1.434 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.404, allocations: 0 / 1.359 GB, free: 1.434 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.404, allocations: 4 kB / 1.359 GB, free: 1.43 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001986/0.4042, allocations: 136.9 kB / 1.36 GB, free: 1.277 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.111e-05/0.4042, allocations: 19.88 kB / 1.36 GB, free: 1.258 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.4042, allocations: 0 / 1.36 GB, free: 1.258 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.688e-05/0.4043, allocations: 4 kB / 1.36 GB, free: 1.254 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.917e-05/0.4043, allocations: 11.98 kB / 1.36 GB, free: 1.242 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.4043, allocations: 7.984 kB / 1.36 GB, free: 1.234 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.753e-05/0.4044, allocations: 97.8 kB / 1.36 GB, free: 1.141 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4044, allocations: 0 / 1.36 GB, free: 1.141 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002816/0.4046, allocations: 51.94 kB / 1.36 GB, free: 1.09 MB / 1.045 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.0005507/0.4052, allocations: 0.6803 MB / 1.36 GB, free: 392 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004667/0.4057, allocations: 326.2 kB / 1.361 GB, free: 28 kB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4057, allocations: 3.938 kB / 1.361 GB, free: 24 kB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.389e-05/0.4057, allocations: 36.03 kB / 1.361 GB, free: 15.98 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.406, allocations: 26.08 kB / 1.361 GB, free: 15.96 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.4086, allocations: 2.063 MB / 1.363 GB, free: 13.76 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.4089, allocations: 0.6924 MB / 1.363 GB, free: 13.04 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.74e-05/0.409, allocations: 12.42 kB / 1.363 GB, free: 13.03 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.11e-05/0.409, allocations: 23.44 kB / 1.363 GB, free: 13 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.409, allocations: 0 / 1.363 GB, free: 13 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.4419, allocations: 3.97 MB / 1.367 GB, free: 9.195 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.47, allocations: 7.953 kB / 1.367 GB, free: 9.191 MB / 1.061 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 & /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 --stepSize=0.002 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.500569008057937]