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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009692/0.0009695, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009791/0.009791, allocations: 170.7 kB / 16.27 MB, free: 6.648 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.53/1.53, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.875/2.875, allocations: 462.6 MB / 0.7363 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004532/0.0004532, allocations: 20.03 kB / 0.9027 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.4564, allocations: 159.6 MB / 1.059 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001072/0.4576, allocations: 433.5 kB / 1.059 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001719/0.4593, allocations: 1.287 MB / 1.06 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.303e-05/0.4594, allocations: 4 kB / 1.06 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.299e-05/0.4594, allocations: 7.922 kB / 1.06 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.53e-05/0.4595, allocations: 11.81 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007695/0.4603, allocations: 291.5 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.4605, allocations: 227.5 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.4606, allocations: 12.17 kB / 1.061 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.4608, allocations: 83.86 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.4609, allocations: 67.78 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.4609, allocations: 12 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.385e-05/0.461, allocations: 31.92 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.986e-05/0.4611, allocations: 15.92 kB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.4612, allocations: 101.5 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002605/0.4615, allocations: 211.6 kB / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.4615, allocations: 0 / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4615, allocations: 0 / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.4615, allocations: 0 / 1.061 GB, free: 2.266 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.0005613/0.4621, allocations: 452.4 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.4621, allocations: 15.91 kB / 1.062 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.704e-05/0.4622, allocations: 20.84 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.4624, allocations: 172.2 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.4624, allocations: 12.38 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.4624, allocations: 16.38 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.4626, allocations: 58.22 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.4626, allocations: 3.938 kB / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.4626, allocations: 11.94 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.4626, allocations: 0 / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.452e-05/0.4627, allocations: 19.98 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005931/0.4633, allocations: 420.4 kB / 1.062 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.306e-05/0.4634, allocations: 30.56 kB / 1.063 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.758e-05/0.4634, allocations: 20.8 kB / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.4634, allocations: 7.984 kB / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.4637, allocations: 95.44 kB / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.4637, allocations: 0 / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003091/0.464, allocations: 145.7 kB / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.464, allocations: 55.41 kB / 1.063 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.4641, allocations: 133.7 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/0.4642, allocations: 33.7 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.676e-05/0.4643, allocations: 96.12 kB / 1.063 GB, free: 268 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.4643, allocations: 23.78 kB / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.4644, allocations: 29.7 kB / 1.063 GB, free: 208 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.4645, allocations: 330.7 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.4647, allocations: 87.95 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.4649, allocations: 134 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/0.4652, allocations: 234.3 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.4652, allocations: 4 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000565/0.4658, allocations: 374.4 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.02e-05/0.4659, allocations: 105.1 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4659, allocations: 4 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.4659, allocations: 4.188 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.513e-05/0.4659, allocations: 4 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.466, allocations: 4 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/0.4665, allocations: 122.1 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.4666, allocations: 15.98 kB / 1.064 GB, free: 14.7 MB / 0.8262 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.0001301/0.4667, allocations: 145.7 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.4667, allocations: 7.906 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.097e-05/0.4668, allocations: 8.375 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.4668, allocations: 4 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4668, allocations: 0 / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4668, allocations: 3.984 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.467, allocations: 189.6 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.467, allocations: 0 / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.529e-05/0.467, allocations: 4 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.467, allocations: 4 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.467, allocations: 3.984 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.467, allocations: 0 / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.467, allocations: 3.938 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.4672, allocations: 137 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.862e-05/0.4673, allocations: 97.12 kB / 1.065 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.4673, allocations: 3.938 kB / 1.065 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.077e-05/0.4673, allocations: 3.938 kB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.737e-05/0.4674, allocations: 15.98 kB / 1.065 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.4674, allocations: 4 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.81e-05/0.4675, allocations: 99.27 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4675, allocations: 0 / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002554/0.4677, allocations: 40 kB / 1.065 GB, free: 13.85 MB / 0.8262 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.0001898/0.4679, allocations: 108.6 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004633/0.4684, allocations: 370.2 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4684, allocations: 0 / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.441e-05/0.4685, allocations: 35.98 kB / 1.066 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.4687, allocations: 22.52 kB / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004094/0.4692, allocations: 215.5 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.4695, allocations: 0.6965 MB / 1.067 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.081e-05/0.4695, allocations: 4.438 kB / 1.067 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.424e-05/0.4695, allocations: 15.44 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.4695, allocations: 0 / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of Templates: time 0.005659/0.4752, allocations: 2.485 MB / 1.069 GB, free: 9.848 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (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=480 -emit_protected -lv LOG_STATS > 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/jenkins/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