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.001314/0.001313, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001433/0.001433, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.507/1.507, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.829/2.829, allocations: 461.9 MB / 0.7343 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 73.22 kB / 0.8986 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4255, allocations: 157.4 MB / 1.052 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002619/0.4282, allocations: 0.7467 MB / 1.053 GB, free: 8.004 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002117/0.4303, allocations: 1.279 MB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.4304, allocations: 0 / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.465e-05/0.4305, allocations: 7.922 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.4307, allocations: 19.8 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.4317, allocations: 281.3 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004271/0.4321, allocations: 275.6 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.4323, allocations: 16.17 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.4325, allocations: 107.8 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.4326, allocations: 75.77 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.381e-05/0.4327, allocations: 24 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.4328, allocations: 35.98 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.033e-05/0.4329, allocations: 15.92 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.433, allocations: 83.8 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003151/0.4333, allocations: 219.6 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4333, allocations: 0 / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4333, allocations: 4 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.79e-06/0.4334, allocations: 0 / 1.055 GB, free: 5.574 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.0006686/0.434, allocations: 0.4885 MB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4341, allocations: 8.031 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.875e-05/0.4342, allocations: 16.84 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.4343, allocations: 172.3 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.4344, allocations: 8.375 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.863e-05/0.4344, allocations: 12.38 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.4345, allocations: 62.16 kB / 1.056 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.4345, allocations: 3.938 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.4346, allocations: 4 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.4346, allocations: 4 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.066e-05/0.4346, allocations: 19.98 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005809/0.4352, allocations: 420.4 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.977e-05/0.4353, allocations: 34.5 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.741e-05/0.4354, allocations: 20.94 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.4354, allocations: 0 / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002222/0.4356, allocations: 107.2 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.704e-06/0.4356, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003527/0.436, allocations: 137.5 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.436, allocations: 59.34 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.4362, allocations: 128.1 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.902e-05/0.4362, allocations: 37.7 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.134e-05/0.4363, allocations: 100.1 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.4364, allocations: 19.8 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.4365, allocations: 69.67 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4367, allocations: 323.1 kB / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.4369, allocations: 87.95 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.4371, allocations: 130 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.4374, allocations: 239 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4374, allocations: 3.938 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006213/0.4381, allocations: 382.5 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.623e-05/0.4381, allocations: 93.09 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.4381, allocations: 4 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.4382, allocations: 4 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.699e-05/0.4382, allocations: 3.984 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.4382, allocations: 7.938 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005388/0.4388, allocations: 95.88 kB / 1.059 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.29e-05/0.4388, allocations: 15.98 kB / 1.059 GB, free: 1.973 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.0001188/0.4389, allocations: 135.3 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.439, allocations: 7.906 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.439, allocations: 12.38 kB / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.439, allocations: 4 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.439, allocations: 0 / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.439, allocations: 0 / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.4392, allocations: 193.5 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4392, allocations: 0 / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.47e-05/0.4392, allocations: 7.938 kB / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.4392, allocations: 0 / 1.059 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.4392, allocations: 4 kB / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4392, allocations: 3.984 kB / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4392, allocations: 4 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001773/0.4394, allocations: 140.9 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.006e-05/0.4395, allocations: 88.95 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.4395, allocations: 3.984 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.64e-05/0.4395, allocations: 8 kB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.4396, allocations: 7.984 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.4396, allocations: 4 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.388e-05/0.4396, allocations: 95.36 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4397, allocations: 3.938 kB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002743/0.4399, allocations: 48 kB / 1.059 GB, free: 1.121 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.0001639/0.4401, allocations: 103.2 kB / 1.059 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004948/0.4406, allocations: 373.9 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4406, allocations: 0 / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.781e-05/0.4407, allocations: 39.92 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.441, allocations: 24.02 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004115/0.4414, allocations: 206.8 kB / 1.06 GB, free: 332 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.4417, allocations: 0.6963 MB / 1.061 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.767e-05/0.4417, allocations: 8.438 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.584e-05/0.4418, allocations: 15.42 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.4418, allocations: 0 / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of Templates: time 0.00594/0.4477, allocations: 2.605 MB / 1.063 GB, free: 13.01 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