Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.001993/0.001993, 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.002561/0.002561, allocations: 190.7 kB / 22.11 MB, free: 5.152 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.716/1.716, allocations: 225.6 MB / 250.8 MB, free: 13.08 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.248/3.248, allocations: 495.8 MB / 0.783 GB, free: 33.7 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.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch")
translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 70.64 kB / 1.137 GB, free: 33.83 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4408/0.4429, allocations: 173.6 MB / 1.307 GB, free: 1.855 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002433/0.4453, allocations: 0.7691 MB / 1.308 GB, free: 1.086 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001886/0.4472, allocations: 1.256 MB / 1.309 GB, free: 15.82 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 7.293e-05/0.4473, allocations: 4 kB / 1.309 GB, free: 15.81 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 4.833e-05/0.4474, allocations: 11.81 kB / 1.309 GB, free: 15.8 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 9.542e-05/0.4474, allocations: 15.86 kB / 1.309 GB, free: 15.79 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0008289/0.4483, allocations: 258.1 kB / 1.309 GB, free: 15.54 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0003647/0.4486, allocations: 255.6 kB / 1.309 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.4488, allocations: 48.98 kB / 1.309 GB, free: 15.24 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.449, allocations: 95.81 kB / 1.309 GB, free: 15.14 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.4492, allocations: 107.7 kB / 1.309 GB, free: 15.04 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 5.217e-05/0.4492, allocations: 28 kB / 1.31 GB, free: 15.01 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 9.942e-05/0.4493, allocations: 39.92 kB / 1.31 GB, free: 14.97 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 5.039e-05/0.4494, allocations: 39.83 kB / 1.31 GB, free: 14.93 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.4495, allocations: 103.7 kB / 1.31 GB, free: 14.83 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003559/0.4499, allocations: 251.1 kB / 1.31 GB, free: 14.59 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.4499, allocations: 0 / 1.31 GB, free: 14.59 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.964e-06/0.4499, allocations: 0 / 1.31 GB, free: 14.59 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.242e-06/0.4499, allocations: 0 / 1.31 GB, free: 14.59 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: 26
 * Number of variables: 26
Notification: Performance of Generate backend data structure: time 0.0007574/0.4506, allocations: 421.2 kB / 1.31 GB, free: 14.13 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.4507, allocations: 8.031 kB / 1.31 GB, free: 14.12 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.114e-05/0.4508, allocations: 16.89 kB / 1.31 GB, free: 14.11 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005862/0.4514, allocations: 186.5 kB / 1.311 GB, free: 13.9 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.4514, allocations: 16.36 kB / 1.311 GB, free: 13.88 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.444e-05/0.4514, allocations: 16.38 kB / 1.311 GB, free: 13.87 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.4517, allocations: 130.1 kB / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.4517, allocations: 7.922 kB / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.4517, allocations: 8 kB / 1.311 GB, free: 13.72 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4517, allocations: 0 / 1.311 GB, free: 13.72 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001549/0.4519, allocations: 73.64 kB / 1.311 GB, free: 13.65 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007186/0.4526, allocations: 423.4 kB / 1.311 GB, free: 13.19 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/0.4528, allocations: 82.55 kB / 1.311 GB, free: 13.1 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 6.445e-05/0.4528, allocations: 36.83 kB / 1.311 GB, free: 13.06 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.4529, allocations: 0 / 1.311 GB, free: 13.06 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.4532, allocations: 143.3 kB / 1.311 GB, free: 12.91 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.4532, allocations: 0 / 1.311 GB, free: 12.91 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16): time 0.0005998/0.4538, allocations: 243.2 kB / 1.312 GB, free: 12.67 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.4538, allocations: 63.34 kB / 1.312 GB, free: 12.59 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.454, allocations: 140.2 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 5.447e-05/0.4541, allocations: 33.7 kB / 1.312 GB, free: 12.41 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.4542, allocations: 108.5 kB / 1.312 GB, free: 12.3 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 4.63e-05/0.4543, allocations: 43.73 kB / 1.312 GB, free: 12.26 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.4544, allocations: 69.67 kB / 1.312 GB, free: 12.18 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001943/0.4546, allocations: 318.8 kB / 1.312 GB, free: 11.86 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.4548, allocations: 67.95 kB / 1.312 GB, free: 11.8 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/0.4551, allocations: 130.2 kB / 1.313 GB, free: 11.64 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003845/0.4555, allocations: 217.5 kB / 1.313 GB, free: 11.39 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4555, allocations: 0 / 1.313 GB, free: 11.39 MB / 1.014 GB
Notification: Performance of matching and sorting (n=24) (initialization): time 0.0008201/0.4563, allocations: 312.6 kB / 1.313 GB, free: 11.07 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 7.731e-05/0.4564, allocations: 69.11 kB / 1.313 GB, free: 10.99 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.4564, allocations: 0 / 1.313 GB, free: 10.99 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 3.514e-05/0.4565, allocations: 4 kB / 1.313 GB, free: 10.99 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.187e-05/0.4565, allocations: 12.17 kB / 1.313 GB, free: 10.98 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.4565, allocations: 8 kB / 1.313 GB, free: 10.97 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005071/0.457, allocations: 63.77 kB / 1.313 GB, free: 10.91 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.122e-05/0.4571, allocations: 16 kB / 1.313 GB, free: 10.89 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 9
 * Number of states: 0 ()
 * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,truCleFalIni.y,truCleTruIni.y,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp.y,falCleFalIni.y,falCleTruIni.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tru.y,fal.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (20):
 * Single equations (assignments): 18
 * 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.0002004/0.4573, allocations: 142.6 kB / 1.313 GB, free: 10.74 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.174e-05/0.4573, allocations: 15.89 kB / 1.313 GB, free: 10.73 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.983e-05/0.4574, allocations: 12.78 kB / 1.313 GB, free: 10.71 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.4574, allocations: 3.984 kB / 1.313 GB, free: 10.71 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4574, allocations: 0 / 1.313 GB, free: 10.71 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.309e-06/0.4574, allocations: 0 / 1.313 GB, free: 10.71 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007904/0.4582, allocations: 461.4 kB / 1.314 GB, free: 10.21 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4582, allocations: 0 / 1.314 GB, free: 10.21 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.616e-05/0.4582, allocations: 11.92 kB / 1.314 GB, free: 10.2 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4582, allocations: 3.938 kB / 1.314 GB, free: 10.2 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.4582, allocations: 12 kB / 1.314 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4582, allocations: 0 / 1.314 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4582, allocations: 0 / 1.314 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005187/0.4587, allocations: 298.1 kB / 1.314 GB, free: 9.879 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.4588, allocations: 7.953 kB / 1.314 GB, free: 9.871 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.274e-05/0.4588, allocations: 4 kB / 1.314 GB, free: 9.867 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.4589, allocations: 7.984 kB / 1.314 GB, free: 9.859 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.459, allocations: 7.984 kB / 1.314 GB, free: 9.852 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.459, allocations: 19.98 kB / 1.314 GB, free: 9.832 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0001048/0.4591, allocations: 99.27 kB / 1.314 GB, free: 9.734 MB / 1.014 GB
Notification: Performance of sort global known variables: time 1.1e-07/0.4591, allocations: 3.938 kB / 1.314 GB, free: 9.73 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0005375/0.4597, allocations: 51.89 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: 16 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,falCleTruIni.y,truCleTruIni.y,falCleFalIni.y,truCleFalIni.y,swiCleInp.y,swiCleInp1.y,cleInp.y,latInp.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (16):
 * Single equations (assignments): 8
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 8
 * 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.0002287/0.4599, allocations: 108 kB / 1.314 GB, free: 9.566 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0006453/0.4605, allocations: 267 kB / 1.315 GB, free: 9.281 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4605, allocations: 4.188 kB / 1.315 GB, free: 9.277 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.4607, allocations: 63.89 kB / 1.315 GB, free: 9.215 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.4611, allocations: 23.91 kB / 1.315 GB, free: 9.191 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007524/0.4619, allocations: 263.4 kB / 1.315 GB, free: 8.91 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004896/0.4624, allocations: 0.7085 MB / 1.316 GB, free: 8.176 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 6.431e-05/0.4625, allocations: 13.08 kB / 1.316 GB, free: 8.164 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.714e-05/0.4625, allocations: 19.44 kB / 1.316 GB, free: 8.145 MB / 1.014 GB
Notification: Performance of SimCode: time 7.91e-07/0.4625, allocations: 0 / 1.316 GB, free: 8.145 MB / 1.014 GB
Notification: Performance of Templates: time 0.008299/0.4708, allocations: 2.221 MB / 1.318 GB, free: 5.949 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.9250696785748]