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.0007754/0.0007754, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001012/0.001787, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006989/0.0006989, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009269/0.001626, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 0.9323/0.9323, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09317/1.025, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.391/2.391, allocations: 447.1 MB / 0.675 GB, free: 5.906 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.267/2.658, allocations: 146 MB / 0.8176 GB, free: 3.836 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 0.8189 GB, free: 2.5 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.27e-05/2.484e-05, allocations: 5.125 kB / 0.8189 GB, free: 2.496 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001385/0.00141, allocations: 0.7505 MB / 0.8197 GB, free: 1.738 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.002636, allocations: 1.326 MB / 0.821 GB, free: 408 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.066e-05/0.002687, allocations: 0 / 0.821 GB, free: 408 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.329e-05/0.00271, allocations: 3.938 kB / 0.821 GB, free: 404 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 4.518e-05/0.002755, allocations: 23.84 kB / 0.821 GB, free: 380 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004345/0.00319, allocations: 295.3 kB / 0.8213 GB, free: 84 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0002436/0.003433, allocations: 247.7 kB / 0.8215 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.33e-05/0.003507, allocations: 12.17 kB / 0.8215 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.003643, allocations: 155.7 kB / 0.8217 GB, free: 15.67 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.003765, allocations: 75.8 kB / 0.8217 GB, free: 15.6 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.003807, allocations: 24 kB / 0.8218 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.003925, allocations: 39.92 kB / 0.8218 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 4.229e-05/0.003967, allocations: 11.94 kB / 0.8218 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.045e-05/0.004028, allocations: 52 kB / 0.8219 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.004218, allocations: 147.7 kB / 0.822 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.231e-05/0.00423, allocations: 7.875 kB / 0.822 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.202e-06/0.004231, allocations: 0 / 0.822 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.219e-05/0.004243, allocations: 0 / 0.822 GB, free: 15.32 MB / 0.8073 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.0004571/0.004701, allocations: 417.3 kB / 0.8224 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.004738, allocations: 8.031 kB / 0.8224 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.004791, allocations: 20.92 kB / 0.8224 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.005014, allocations: 117.7 kB / 0.8226 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.005036, allocations: 12.36 kB / 0.8226 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.005063, allocations: 12.38 kB / 0.8226 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.167e-05/0.005144, allocations: 66.92 kB / 0.8226 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.71e-06/0.00515, allocations: 192 / 0.8226 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.005158, allocations: 384 / 0.8226 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.005164, allocations: 8.125 kB / 0.8226 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.93e-05/0.005183, allocations: 15.91 kB / 0.8227 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002719/0.005455, allocations: 204.2 kB / 0.8229 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.843e-05/0.005494, allocations: 22.58 kB / 0.8229 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.613e-05/0.00551, allocations: 12.94 kB / 0.8229 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-06/0.005515, allocations: 0 / 0.8229 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001043/0.005619, allocations: 95.34 kB / 0.823 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.00562, allocations: 4 kB / 0.823 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0001399/0.00576, allocations: 97.52 kB / 0.8231 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.005789, allocations: 51.41 kB / 0.8231 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.512e-05/0.005864, allocations: 141 kB / 0.8233 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.00589, allocations: 29.7 kB / 0.8233 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.485e-05/0.005935, allocations: 100.1 kB / 0.8234 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.005952, allocations: 23.78 kB / 0.8234 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.788e-05/0.00602, allocations: 57.66 kB / 0.8235 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.979e-05/0.00609, allocations: 322.8 kB / 0.8238 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.877e-05/0.006189, allocations: 145.1 kB / 0.8239 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.006303, allocations: 203 kB / 0.8241 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.006432, allocations: 211 kB / 0.8243 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.006435, allocations: 0 / 0.8243 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002496/0.006685, allocations: 382.7 kB / 0.8247 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.768e-05/0.006742, allocations: 113 kB / 0.8248 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.006747, allocations: 0 / 0.8248 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.006759, allocations: 4 kB / 0.8248 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.861e-05/0.006777, allocations: 4 kB / 0.8248 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.006781, allocations: 4 kB / 0.8248 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.006978, allocations: 59.89 kB / 0.8248 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.246e-05/0.007, allocations: 16.05 kB / 0.8249 GB, free: 12.08 MB / 0.8073 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 6.975e-05/0.00707, allocations: 137.7 kB / 0.825 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.153e-05/0.007082, allocations: 11.98 kB / 0.825 GB, free: 11.92 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.16e-05/0.007103, allocations: 12.38 kB / 0.825 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.007106, allocations: 4 kB / 0.825 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.007108, allocations: 0 / 0.825 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.007112, allocations: 3.984 kB / 0.825 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.042e-05/0.007182, allocations: 81.88 kB / 0.8251 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.007183, allocations: 0 / 0.8251 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.765e-06/0.007191, allocations: 4 kB / 0.8251 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.597e-06/0.0072, allocations: 11.95 kB / 0.8251 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.007201, allocations: 4 kB / 0.8251 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.007207, allocations: 7.922 kB / 0.8251 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.007208, allocations: 0 / 0.8251 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.007209, allocations: 3.938 kB / 0.8251 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.486e-05/0.007294, allocations: 89.09 kB / 0.8252 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.007306, allocations: 11.98 kB / 0.8252 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.573e-05/0.007322, allocations: 0 / 0.8252 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.96e-05/0.007351, allocations: 19.91 kB / 0.8252 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.007355, allocations: 3.938 kB / 0.8253 GB, free: 11.63 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.954e-05/0.007374, allocations: 20.84 kB / 0.8253 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007374, allocations: 4 kB / 0.8253 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001369/0.007511, allocations: 44 kB / 0.8253 GB, free: 11.56 MB / 0.8073 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.0001137/0.007625, allocations: 84.23 kB / 0.8254 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002566/0.007881, allocations: 396 kB / 0.8258 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.007886, allocations: 4 kB / 0.8258 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.352e-05/0.007919, allocations: 28.78 kB / 0.8258 GB, free: 11 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.008097, allocations: 195.4 kB / 0.826 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000422/0.008519, allocations: 185.2 kB / 0.8262 GB, free: 10.56 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.149e-05/0.008551, allocations: 67.77 kB / 0.8262 GB, free: 10.47 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.594e-05/0.008577, allocations: 8.484 kB / 0.8262 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.008696, allocations: 87.34 kB / 0.8263 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of SimCode: time 1.012e-06/0.008697, allocations: 0 / 0.8263 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of Templates: time 0.004531/0.01323, allocations: 3.222 MB / 0.8295 GB, free: 7.227 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.085924473591149]