Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.And,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u1|and1.u2|and1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.And,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u1|and1.u2|and1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001421/0.001421, allocations: 201.3 kB / 16.14 MB, free: 6.793 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.475/1.475, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.874/2.874, allocations: 461.8 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 63.48 kB / 0.8984 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3597, allocations: 157.4 MB / 1.052 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.002006/0.3617, allocations: 0.7194 MB / 1.053 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.3632, allocations: 1.213 MB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.579e-05/0.3633, allocations: 0 / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.694e-05/0.3633, allocations: 7.938 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.274e-05/0.3634, allocations: 15.91 kB / 1.054 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005556/0.364, allocations: 190.4 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000167/0.3641, allocations: 155.6 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.95e-05/0.3643, allocations: 15.98 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.691e-05/0.3643, allocations: 63.88 kB / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.3645, allocations: 47.88 kB / 1.054 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.223e-05/0.3645, allocations: 8 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.458e-05/0.3646, allocations: 19.98 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.938e-05/0.3646, allocations: 4 kB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.667e-05/0.3647, allocations: 55.81 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.3649, allocations: 147.6 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.365, allocations: 0 / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.011e-06/0.365, allocations: 3.938 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.365, allocations: 0 / 1.055 GB, free: 6.18 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005354/0.3655, allocations: 438.9 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3656, allocations: 12.03 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.115e-05/0.3656, allocations: 8.844 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.3657, allocations: 164.4 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.3658, allocations: 8.375 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.206e-05/0.3658, allocations: 16.36 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.3659, allocations: 42.25 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3659, allocations: 4.125 kB / 1.055 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.366, allocations: 7.938 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.366, allocations: 4 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.612e-05/0.366, allocations: 23.92 kB / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004795/0.3665, allocations: 352.7 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.387e-05/0.3666, allocations: 34.52 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.31e-05/0.3666, allocations: 16.94 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.986e-06/0.3666, allocations: 4 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001744/0.3668, allocations: 79.31 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.3668, allocations: 0 / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002532/0.3671, allocations: 109.6 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.3671, allocations: 51.41 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.3672, allocations: 121.8 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.3673, allocations: 29.7 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.441e-05/0.3673, allocations: 96.14 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.521e-05/0.3674, allocations: 11.81 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.3675, allocations: 49.69 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3676, allocations: 318.8 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.3678, allocations: 59.97 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.3679, allocations: 96.25 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.3681, allocations: 156.1 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3681, allocations: 0 / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004534/0.3686, allocations: 260.7 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.173e-05/0.3686, allocations: 71.39 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3687, allocations: 4.125 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.3687, allocations: 3.938 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.574e-05/0.3687, allocations: 15.92 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3687, allocations: 0 / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.3691, allocations: 47.94 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.3691, allocations: 15.98 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,and1.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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001131/0.3693, allocations: 131.2 kB / 1.057 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.3693, allocations: 7.906 kB / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.577e-05/0.3693, allocations: 8.375 kB / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3693, allocations: 0 / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3693, allocations: 0 / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3693, allocations: 3.984 kB / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.3695, allocations: 181.6 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3695, allocations: 0 / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.152e-05/0.3695, allocations: 4 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3695, allocations: 3.938 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3695, allocations: 7.984 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3695, allocations: 0 / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3695, allocations: 0 / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.3697, allocations: 109 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.378e-05/0.3697, allocations: 89 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.3698, allocations: 7.984 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.905e-05/0.3698, allocations: 0 / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.77e-05/0.3698, allocations: 7.984 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.3699, allocations: 8 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.755e-05/0.3699, allocations: 91.2 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3699, allocations: 0 / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002545/0.3702, allocations: 36 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,and1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000158/0.3703, allocations: 103.2 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003485/0.3707, allocations: 251 kB / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.3707, allocations: 4.25 kB / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.894e-05/0.3708, allocations: 31.98 kB / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.371, allocations: 15.12 kB / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003416/0.3714, allocations: 160.6 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.3716, allocations: 0.6888 MB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.915e-05/0.3717, allocations: 7.984 kB / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.897e-05/0.3717, allocations: 11.44 kB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.3717, allocations: 0 / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.004278/0.376, allocations: 1.747 MB / 1.061 GB, free: 15.35 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_And.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches