Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 105.8 kB / 18.84 MB, free: 3.043 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 192.1 kB / 22.11 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 225.6 MB / 250.8 MB, free: 13.06 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.38/3.38, allocations: 495.8 MB / 0.783 GB, free: 33.43 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch")
translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 65.36 kB / 1.137 GB, free: 33.82 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.5215/0.5235, allocations: 173.6 MB / 1.307 GB, free: 1.844 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.003195/0.5267, allocations: 0.8417 MB / 1.308 GB, free: 1.004 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.002988/0.5297, allocations: 1.295 MB / 1.309 GB, free: 15.7 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.5298, allocations: 0 / 1.309 GB, free: 15.7 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 9.523e-05/0.5299, allocations: 11.81 kB / 1.309 GB, free: 15.68 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.5301, allocations: 23.8 kB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.5313, allocations: 325.6 kB / 1.309 GB, free: 15.35 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.000468/0.5318, allocations: 291.5 kB / 1.309 GB, free: 15.06 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.532, allocations: 25.62 kB / 1.309 GB, free: 15.03 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.5322, allocations: 115.8 kB / 1.31 GB, free: 14.92 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.5324, allocations: 119.5 kB / 1.31 GB, free: 14.8 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 6.395e-05/0.5325, allocations: 28 kB / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.5326, allocations: 39.98 kB / 1.31 GB, free: 14.73 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 4.012e-05/0.5326, allocations: 23.92 kB / 1.31 GB, free: 14.71 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.5328, allocations: 103.7 kB / 1.31 GB, free: 14.61 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.000473/0.5332, allocations: 267 kB / 1.31 GB, free: 14.35 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.5333, allocations: 4 kB / 1.31 GB, free: 14.34 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.214e-06/0.5333, allocations: 0 / 1.31 GB, free: 14.34 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 7.725e-06/0.5333, allocations: 0 / 1.31 GB, free: 14.34 MB / 1.014 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 19
 * Number of variables: 19
Notification: Performance of Generate backend data structure: time 0.0008846/0.5341, allocations: 466.8 kB / 1.311 GB, free: 13.84 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.5342, allocations: 8.922 kB / 1.311 GB, free: 13.83 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.926e-05/0.5343, allocations: 24.89 kB / 1.311 GB, free: 13.81 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.5344, allocations: 122.9 kB / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.101e-05/0.5345, allocations: 20.12 kB / 1.311 GB, free: 13.64 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.5345, allocations: 23.98 kB / 1.311 GB, free: 13.62 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.5347, allocations: 88.06 kB / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.5347, allocations: 0 / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.5347, allocations: 0 / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.5348, allocations: 4 kB / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.5349, allocations: 47.97 kB / 1.311 GB, free: 13.48 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008255/0.5357, allocations: 471.4 kB / 1.311 GB, free: 12.98 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.536, allocations: 70.5 kB / 1.311 GB, free: 12.9 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 6.153e-05/0.536, allocations: 28.97 kB / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.536, allocations: 0 / 1.311 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.5362, allocations: 114.7 kB / 1.312 GB, free: 12.75 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=14): time 3.557e-06/0.5362, allocations: 4 kB / 1.312 GB, free: 12.74 MB / 1.014 GB
Notification: Performance of matching and sorting (n=14): time 0.0004633/0.5367, allocations: 177.5 kB / 1.312 GB, free: 12.56 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.5368, allocations: 55.41 kB / 1.312 GB, free: 12.5 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.5369, allocations: 160.6 kB / 1.312 GB, free: 12.33 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 5.802e-05/0.537, allocations: 37.7 kB / 1.312 GB, free: 12.29 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.5371, allocations: 112.1 kB / 1.312 GB, free: 12.18 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.034e-05/0.5371, allocations: 27.8 kB / 1.312 GB, free: 12.15 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.5373, allocations: 73.67 kB / 1.312 GB, free: 12.07 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001759/0.5375, allocations: 326.8 kB / 1.313 GB, free: 11.74 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002582/0.5377, allocations: 99.88 kB / 1.313 GB, free: 11.64 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.538, allocations: 142 kB / 1.313 GB, free: 11.48 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.5384, allocations: 257.1 kB / 1.313 GB, free: 11.2 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.5384, allocations: 0 / 1.313 GB, free: 11.2 MB / 1.014 GB
Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007827/0.5392, allocations: 418.3 kB / 1.313 GB, free: 10.76 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 9.978e-05/0.5393, allocations: 103.6 kB / 1.313 GB, free: 10.64 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.5393, allocations: 4 kB / 1.313 GB, free: 10.64 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.5393, allocations: 4 kB / 1.313 GB, free: 10.64 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-05/0.5394, allocations: 11.94 kB / 1.314 GB, free: 10.62 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.5394, allocations: 8 kB / 1.314 GB, free: 10.62 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005002/0.5399, allocations: 83.8 kB / 1.314 GB, free: 10.54 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.5399, allocations: 23.98 kB / 1.314 GB, free: 10.51 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 7
 * Number of states: 0 ()
 * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (17):
 * Single equations (assignments): 14
 * 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.0001892/0.5401, allocations: 147 kB / 1.314 GB, free: 10.36 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.5401, allocations: 11.89 kB / 1.314 GB, free: 10.35 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.5402, allocations: 12.78 kB / 1.314 GB, free: 10.34 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.5402, allocations: 0 / 1.314 GB, free: 10.34 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.5402, allocations: 4 kB / 1.314 GB, free: 10.33 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5402, allocations: 0 / 1.314 GB, free: 10.33 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.5404, allocations: 192.6 kB / 1.314 GB, free: 10.1 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.5404, allocations: 4 kB / 1.314 GB, free: 10.1 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-05/0.5405, allocations: 11.94 kB / 1.314 GB, free: 10.09 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.5405, allocations: 4 kB / 1.314 GB, free: 10.08 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.5405, allocations: 3.984 kB / 1.314 GB, free: 10.08 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5405, allocations: 0 / 1.314 GB, free: 10.08 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.5405, allocations: 0 / 1.314 GB, free: 10.08 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.5408, allocations: 169 kB / 1.314 GB, free: 9.895 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.5408, allocations: 15.84 kB / 1.314 GB, free: 9.879 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.5408, allocations: 0 / 1.314 GB, free: 9.879 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.255e-05/0.5408, allocations: 11.94 kB / 1.314 GB, free: 9.867 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.5409, allocations: 11.97 kB / 1.314 GB, free: 9.855 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.5409, allocations: 12 kB / 1.314 GB, free: 9.844 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0001043/0.541, allocations: 118.9 kB / 1.314 GB, free: 9.73 MB / 1.014 GB
Notification: Performance of sort global known variables: time 9e-08/0.541, allocations: 0 / 1.314 GB, free: 9.73 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002937/0.5413, allocations: 51.94 kB / 1.314 GB, free: 9.68 MB / 1.014 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (14):
 * Single equations (assignments): 11
 * 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.0002433/0.5415, allocations: 99.25 kB / 1.314 GB, free: 9.574 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0006063/0.5421, allocations: 350 kB / 1.315 GB, free: 9.195 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5421, allocations: 0 / 1.315 GB, free: 9.195 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 9.408e-05/0.5422, allocations: 47.61 kB / 1.315 GB, free: 9.152 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.5426, allocations: 28.19 kB / 1.315 GB, free: 9.125 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005905/0.5431, allocations: 251.8 kB / 1.315 GB, free: 8.855 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.5436, allocations: 0.7122 MB / 1.316 GB, free: 8.117 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 4.397e-05/0.5436, allocations: 8.656 kB / 1.316 GB, free: 8.109 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.5437, allocations: 19.44 kB / 1.316 GB, free: 8.09 MB / 1.014 GB
Notification: Performance of SimCode: time 4.11e-07/0.5437, allocations: 0 / 1.316 GB, free: 8.09 MB / 1.014 GB
Notification: Performance of Templates: time 0.008082/0.5517, allocations: 2.845 MB / 1.319 GB, free: 5.273 MB / 1.014 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.89389581233263]