Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.007854/0.007854, allocations: 100.1 kB / 15.73 MB, free: 6.031 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.001441/0.001441, allocations: 187.7 kB / 16.67 MB, free: 5.965 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.502/1.502, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.686/2.686, allocations: 390.2 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.94 kB / 0.9509 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3576, allocations: 140.4 MB / 1.088 GB, free: 1.574 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001973/0.3596, allocations: 0.7079 MB / 1.089 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001686/0.3613, allocations: 1.266 MB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.496e-05/0.3613, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.807e-05/0.3614, allocations: 11.92 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.887e-05/0.3615, allocations: 15.86 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000818/0.3623, allocations: 317.1 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.3626, allocations: 271.6 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.3628, allocations: 20.17 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.3629, allocations: 95.86 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.3631, allocations: 95.73 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.556e-05/0.3631, allocations: 28 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.433e-05/0.3632, allocations: 31.98 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.069e-05/0.3633, allocations: 19.92 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.3634, allocations: 87.73 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.3637, allocations: 219.3 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3637, allocations: 0 / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3637, allocations: 4 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.3637, allocations: 0 / 1.091 GB, free: 14.4 MB / 0.8575 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.0006087/0.3643, allocations: 492.3 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.3644, allocations: 12.03 kB / 1.092 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.352e-05/0.3645, allocations: 16.84 kB / 1.092 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.3646, allocations: 172.2 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.3646, allocations: 12.38 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/0.3647, allocations: 16.36 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.3648, allocations: 62.16 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3648, allocations: 3.938 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3648, allocations: 4 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.3648, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.378e-05/0.3649, allocations: 19.98 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005359/0.3655, allocations: 416.5 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.098e-05/0.3655, allocations: 38.5 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.827e-05/0.3656, allocations: 16.86 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.3656, allocations: 4.078 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000174/0.3658, allocations: 103.3 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.3658, allocations: 0 / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003069/0.3661, allocations: 137.5 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.3661, allocations: 55.39 kB / 1.093 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.3663, allocations: 132.6 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.3663, allocations: 37.7 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.268e-05/0.3664, allocations: 99.97 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.3664, allocations: 23.81 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.3666, allocations: 73.66 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3667, allocations: 322.8 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.3669, allocations: 91.94 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.3671, allocations: 130 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.3674, allocations: 242.5 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3674, allocations: 0 / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005814/0.368, allocations: 378.5 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.393e-05/0.3681, allocations: 105.1 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3681, allocations: 4.375 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.3681, allocations: 0 / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.676e-05/0.3682, allocations: 8 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.3682, allocations: 7.938 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.3687, allocations: 83.75 kB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-05/0.3687, allocations: 23.97 kB / 1.094 GB, free: 10.79 MB / 0.8575 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.0001302/0.3689, allocations: 130.8 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.553e-05/0.3689, allocations: 7.906 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.3689, allocations: 8.375 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3689, allocations: 4 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.369, allocations: 0 / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.369, allocations: 3.984 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001851/0.3692, allocations: 197.5 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3692, allocations: 0 / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.246e-05/0.3692, allocations: 4 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3692, allocations: 0 / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.3692, allocations: 7.922 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3692, allocations: 0 / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3692, allocations: 0 / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.3694, allocations: 140.9 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.371e-05/0.3695, allocations: 85.02 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.3695, allocations: 7.984 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.094e-05/0.3695, allocations: 0 / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.345e-05/0.3696, allocations: 11.98 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/0.3696, allocations: 4 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.189e-05/0.3697, allocations: 99.27 kB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3697, allocations: 0 / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002585/0.3699, allocations: 40 kB / 1.095 GB, free: 9.957 MB / 0.8575 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.0001981/0.3701, allocations: 113.3 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004762/0.3706, allocations: 369.9 kB / 1.095 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3706, allocations: 0 / 1.095 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.622e-05/0.3707, allocations: 31.98 kB / 1.095 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.371, allocations: 28.11 kB / 1.095 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003981/0.3714, allocations: 197.7 kB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.3716, allocations: 0.6924 MB / 1.096 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.784e-05/0.3717, allocations: 4.438 kB / 1.096 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.3717, allocations: 19.42 kB / 1.096 GB, free: 8.418 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.3717, allocations: 0 / 1.096 GB, free: 8.418 MB / 0.8575 GB Notification: Performance of Templates: time 0.005787/0.3775, allocations: 2.715 MB / 1.099 GB, free: 5.734 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches