Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001851/0.001851, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002369/0.002369, allocations: 216.8 kB / 22.25 MB, free: 4.855 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.616/1.616, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.995/2.995, allocations: 476 MB / 0.7699 GB, free: 4.762 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_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_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [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.002111/0.002111, allocations: 67.34 kB / 1.117 GB, free: 41.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4506/0.4527, allocations: 170 MB / 1.283 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002404/0.4551, allocations: 0.6821 MB / 1.284 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002305/0.4574, allocations: 1.285 MB / 1.285 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.538e-05/0.4575, allocations: 0 / 1.285 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.333e-05/0.4576, allocations: 7.875 kB / 1.285 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.4577, allocations: 23.84 kB / 1.285 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.459, allocations: 309.8 kB / 1.285 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005535/0.4595, allocations: 255.6 kB / 1.286 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.4597, allocations: 8.188 kB / 1.286 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.4599, allocations: 103.8 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.4601, allocations: 87.73 kB / 1.286 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.119e-05/0.4602, allocations: 20 kB / 1.286 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.4603, allocations: 36 kB / 1.286 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.418e-05/0.4603, allocations: 11.98 kB / 1.286 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.4605, allocations: 87.73 kB / 1.286 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.4609, allocations: 219.3 kB / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4609, allocations: 0 / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.779e-06/0.4609, allocations: 4 kB / 1.286 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.496e-05/0.4609, allocations: 0 / 1.286 GB, free: 8.777 MB / 0.9825 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.0007783/0.4617, allocations: 415.2 kB / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.4617, allocations: 8.031 kB / 1.286 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.015e-05/0.4618, allocations: 20.89 kB / 1.286 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.4619, allocations: 117 kB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.462, allocations: 12.31 kB / 1.287 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.206e-05/0.462, allocations: 16.38 kB / 1.287 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/0.4622, allocations: 62.16 kB / 1.287 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.4622, allocations: 3.938 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.4622, allocations: 4 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.4622, allocations: 0 / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.185e-05/0.4623, allocations: 16 kB / 1.287 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.4629, allocations: 324.3 kB / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.723e-05/0.463, allocations: 46.44 kB / 1.287 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.586e-05/0.463, allocations: 12.86 kB / 1.287 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.463, allocations: 4.094 kB / 1.287 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.4633, allocations: 95.34 kB / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.934e-06/0.4633, allocations: 3.938 kB / 1.287 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0003804/0.4637, allocations: 149.5 kB / 1.287 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.4637, allocations: 55.41 kB / 1.287 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.4639, allocations: 129.8 kB / 1.288 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.4639, allocations: 37.7 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.522e-05/0.464, allocations: 100 kB / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.4641, allocations: 23.97 kB / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.4642, allocations: 69.66 kB / 1.288 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4643, allocations: 318.8 kB / 1.288 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.4646, allocations: 177 kB / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.4649, allocations: 227 kB / 1.288 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003149/0.4652, allocations: 242.9 kB / 1.289 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4652, allocations: 0 / 1.289 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008559/0.4661, allocations: 480.9 kB / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.47e-05/0.4662, allocations: 97.09 kB / 1.289 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4662, allocations: 7.984 kB / 1.289 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4662, allocations: 0 / 1.289 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.974e-05/0.4662, allocations: 4 kB / 1.289 GB, free: 5.227 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.4663, allocations: 12 kB / 1.289 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004956/0.4668, allocations: 83.98 kB / 1.289 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.4668, allocations: 19.98 kB / 1.289 GB, free: 5.113 MB / 0.9825 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.0001387/0.4669, allocations: 129.8 kB / 1.289 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.467, allocations: 11.94 kB / 1.289 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.467, allocations: 8.375 kB / 1.289 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.467, allocations: 7.938 kB / 1.289 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.467, allocations: 0 / 1.289 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.467, allocations: 0 / 1.289 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.4672, allocations: 137.2 kB / 1.29 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4672, allocations: 0 / 1.29 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.288e-06/0.4672, allocations: 0 / 1.29 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.4672, allocations: 0 / 1.29 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.4672, allocations: 7.938 kB / 1.29 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.4672, allocations: 0 / 1.29 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4672, allocations: 4.359 kB / 1.29 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00022/0.4674, allocations: 144.9 kB / 1.29 GB, free: 4.613 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.496e-05/0.4674, allocations: 15.89 kB / 1.29 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.4675, allocations: 8 kB / 1.29 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.498e-05/0.4675, allocations: 3.984 kB / 1.29 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.4675, allocations: 7.984 kB / 1.29 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.4675, allocations: 8 kB / 1.29 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.684e-05/0.4676, allocations: 93.94 kB / 1.29 GB, free: 4.48 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.4676, allocations: 4 kB / 1.29 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002695/0.4679, allocations: 40 kB / 1.29 GB, free: 4.438 MB / 0.9825 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.0001695/0.4681, allocations: 107.2 kB / 1.29 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005777/0.4686, allocations: 415.1 kB / 1.29 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4686, allocations: 0 / 1.29 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 6.498e-05/0.4687, allocations: 31.98 kB / 1.29 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.469, allocations: 27.92 kB / 1.29 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004455/0.4694, allocations: 195.3 kB / 1.291 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.598e-05/0.4695, allocations: 83.83 kB / 1.291 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.585e-05/0.4696, allocations: 12.42 kB / 1.291 GB, free: 3.465 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.4696, allocations: 11.44 kB / 1.291 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.4696, allocations: 288 / 1.291 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of Templates: time 0.006694/0.4763, allocations: 2.984 MB / 1.294 GB, free: 0.5469 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 9.89743959158659]