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.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.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.001606/0.001606, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001974/0.001974, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.441/1.441, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.742/2.742, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 70 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3495, allocations: 157.4 MB / 1.052 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001821/0.3514, allocations: 0.7662 MB / 1.053 GB, free: 8.129 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.3529, allocations: 1.311 MB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.428e-05/0.3529, allocations: 0 / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.983e-05/0.3529, allocations: 3.938 kB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.142e-05/0.353, allocations: 19.84 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006886/0.3537, allocations: 287.9 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.3539, allocations: 227.6 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.354, allocations: 12.19 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.3542, allocations: 95.73 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.3543, allocations: 71.77 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.125e-05/0.3543, allocations: 12 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.819e-05/0.3544, allocations: 27.98 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.314e-05/0.3544, allocations: 11.98 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.3546, allocations: 71.75 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.3548, allocations: 219.7 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3548, allocations: 0 / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.51e-07/0.3548, allocations: 0 / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.173e-06/0.3548, allocations: 0 / 1.055 GB, free: 5.773 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.0005456/0.3554, allocations: 496.3 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.3554, allocations: 8.031 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.959e-05/0.3555, allocations: 16.84 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.3556, allocations: 168.3 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.3557, allocations: 8.375 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.3557, allocations: 20.38 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.3558, allocations: 62.16 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.3558, allocations: 3.938 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.3559, allocations: 0 / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3559, allocations: 0 / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.127e-05/0.3559, allocations: 23.98 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005251/0.3565, allocations: 420.4 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.016e-05/0.3565, allocations: 38.5 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.5e-05/0.3566, allocations: 16.86 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.3566, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001808/0.3568, allocations: 103.3 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.203e-06/0.3568, allocations: 0 / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0002993/0.3571, allocations: 141.4 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.3571, allocations: 59.34 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.3572, allocations: 132.6 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.3573, allocations: 33.7 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.275e-05/0.3574, allocations: 100 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.3574, allocations: 19.88 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.3575, allocations: 65.67 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3577, allocations: 326.8 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.3579, allocations: 87.94 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.3581, allocations: 138.9 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.3583, allocations: 247 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3584, allocations: 4 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005749/0.3589, allocations: 366.5 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.234e-05/0.359, allocations: 105.1 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.359, allocations: 4 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.359, allocations: 192 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.167e-05/0.3591, allocations: 8 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.3591, allocations: 7.938 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005141/0.3596, allocations: 83.73 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.3597, allocations: 19.98 kB / 1.058 GB, free: 2.172 MB / 0.8106 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.0001139/0.3598, allocations: 136.8 kB / 1.058 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.3598, allocations: 7.906 kB / 1.058 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/0.3598, allocations: 12.36 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3598, allocations: 4 kB / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3598, allocations: 3.984 kB / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.3598, allocations: 0 / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.36, allocations: 189.6 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.36, allocations: 384 / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.369e-05/0.36, allocations: 7.922 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.36, allocations: 8 kB / 1.059 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.36, allocations: 0 / 1.059 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3601, allocations: 3.938 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3601, allocations: 80 / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/0.3603, allocations: 144.9 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.3603, allocations: 88.95 kB / 1.059 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.3603, allocations: 0 / 1.059 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.474e-05/0.3604, allocations: 4 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.3604, allocations: 11.98 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.3604, allocations: 4 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.732e-05/0.3605, allocations: 99.27 kB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3605, allocations: 0 / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002532/0.3607, allocations: 43.98 kB / 1.059 GB, free: 1.324 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: 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.0001475/0.3609, allocations: 103.2 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004605/0.3614, allocations: 370.2 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3614, allocations: 8.062 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.091e-05/0.3614, allocations: 35.98 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.3617, allocations: 21.08 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003494/0.362, allocations: 208.6 kB / 1.06 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.3623, allocations: 0.6926 MB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.149e-05/0.3624, allocations: 8.422 kB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.428e-05/0.3624, allocations: 15.44 kB / 1.06 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of SimCode: time 2.8e-07/0.3624, allocations: 0 / 1.06 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of Templates: time 0.004819/0.3672, allocations: 2.498 MB / 1.063 GB, free: 13.32 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