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.001808/0.001808, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001622/0.001622, allocations: 186.3 kB / 22.22 MB, free: 5.102 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.556/1.556, allocations: 225.6 MB / 251 MB, free: 13.02 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.266/3.266, allocations: 496 MB / 0.7835 GB, free: 33.68 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.001971/0.001971, allocations: 69.69 kB / 1.138 GB, free: 33.79 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.4081, allocations: 173.6 MB / 1.307 GB, free: 1.812 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002047/0.4102, allocations: 0.7768 MB / 1.308 GB, free: 1.035 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.00179/0.412, allocations: 1.26 MB / 1.309 GB, free: 15.76 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.541e-05/0.412, allocations: 4 kB / 1.309 GB, free: 15.76 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.912e-05/0.4121, allocations: 7.875 kB / 1.309 GB, free: 15.75 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 7.583e-05/0.4122, allocations: 19.8 kB / 1.309 GB, free: 15.73 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0007049/0.4129, allocations: 253.8 kB / 1.31 GB, free: 15.49 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0003051/0.4132, allocations: 251.6 kB / 1.31 GB, free: 15.24 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.4133, allocations: 49.02 kB / 1.31 GB, free: 15.19 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.4134, allocations: 107.8 kB / 1.31 GB, free: 15.09 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.4136, allocations: 107.6 kB / 1.31 GB, free: 14.98 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.27e-05/0.4137, allocations: 24 kB / 1.31 GB, free: 14.96 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 9.134e-05/0.4137, allocations: 39.98 kB / 1.31 GB, free: 14.92 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 4.341e-05/0.4138, allocations: 35.89 kB / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.4139, allocations: 95.69 kB / 1.31 GB, free: 14.79 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.4142, allocations: 251.1 kB / 1.31 GB, free: 14.54 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.4142, allocations: 4 kB / 1.31 GB, free: 14.54 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.492e-06/0.4142, allocations: 0 / 1.31 GB, free: 14.54 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.082e-06/0.4142, allocations: 0 / 1.31 GB, free: 14.54 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.0006318/0.4149, allocations: 425.2 kB / 1.311 GB, free: 14.08 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.4149, allocations: 8.922 kB / 1.311 GB, free: 14.07 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/0.415, allocations: 16.89 kB / 1.311 GB, free: 14.05 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005043/0.4155, allocations: 178.5 kB / 1.311 GB, free: 13.86 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.4155, allocations: 16.31 kB / 1.311 GB, free: 13.84 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.4155, allocations: 28.36 kB / 1.311 GB, free: 13.81 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/0.4158, allocations: 126.8 kB / 1.311 GB, free: 13.68 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.4158, allocations: 7.922 kB / 1.311 GB, free: 13.68 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.4158, allocations: 11.98 kB / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.4158, allocations: 4 kB / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.416, allocations: 61.72 kB / 1.311 GB, free: 13.6 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000622/0.4166, allocations: 427.4 kB / 1.312 GB, free: 13.14 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.4168, allocations: 90.41 kB / 1.312 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 5.609e-05/0.4168, allocations: 28.84 kB / 1.312 GB, free: 13.01 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 7.244e-06/0.4168, allocations: 4 kB / 1.312 GB, free: 13.01 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.417, allocations: 139.1 kB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.417, allocations: 4 kB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16): time 0.0004511/0.4175, allocations: 238.6 kB / 1.312 GB, free: 12.62 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.4175, allocations: 59.39 kB / 1.312 GB, free: 12.55 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.4177, allocations: 149.2 kB / 1.312 GB, free: 12.39 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.4177, allocations: 29.7 kB / 1.312 GB, free: 12.36 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 9.115e-05/0.4178, allocations: 112.7 kB / 1.313 GB, free: 12.25 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.4178, allocations: 31.75 kB / 1.313 GB, free: 12.21 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.4179, allocations: 69.67 kB / 1.313 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.000139/0.4181, allocations: 326.8 kB / 1.313 GB, free: 11.81 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.4182, allocations: 67.95 kB / 1.313 GB, free: 11.75 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.4184, allocations: 128.7 kB / 1.313 GB, free: 11.59 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002872/0.4187, allocations: 209.4 kB / 1.313 GB, free: 11.35 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4187, allocations: 4 kB / 1.313 GB, free: 11.35 MB / 1.014 GB
Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005064/0.4192, allocations: 316.6 kB / 1.314 GB, free: 11.02 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 6.202e-05/0.4193, allocations: 71.33 kB / 1.314 GB, free: 10.94 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.4193, allocations: 4 kB / 1.314 GB, free: 10.93 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.4193, allocations: 4 kB / 1.314 GB, free: 10.93 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.571e-05/0.4193, allocations: 4 kB / 1.314 GB, free: 10.93 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.4193, allocations: 4 kB / 1.314 GB, free: 10.92 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.4196, allocations: 64.08 kB / 1.314 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.4197, allocations: 19.92 kB / 1.314 GB, free: 10.84 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.0001285/0.4198, allocations: 130.7 kB / 1.314 GB, free: 10.7 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.564e-05/0.4198, allocations: 19.88 kB / 1.314 GB, free: 10.68 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.246e-05/0.4199, allocations: 12.78 kB / 1.314 GB, free: 10.67 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4199, allocations: 11.94 kB / 1.314 GB, free: 10.66 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4199, allocations: 0 / 1.314 GB, free: 10.66 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4199, allocations: 0 / 1.314 GB, free: 10.66 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005183/0.4204, allocations: 464.7 kB / 1.314 GB, free: 10.16 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4204, allocations: 0 / 1.314 GB, free: 10.16 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.396e-05/0.4204, allocations: 4 kB / 1.314 GB, free: 10.16 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.4204, allocations: 0 / 1.314 GB, free: 10.16 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.4204, allocations: 11.98 kB / 1.314 GB, free: 10.14 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4204, allocations: 0 / 1.314 GB, free: 10.14 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.4204, allocations: 0 / 1.314 GB, free: 10.14 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003274/0.4208, allocations: 291.2 kB / 1.315 GB, free: 9.844 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.4208, allocations: 7.953 kB / 1.315 GB, free: 9.836 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.4208, allocations: 15.98 kB / 1.315 GB, free: 9.82 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.863e-05/0.4209, allocations: 0 / 1.315 GB, free: 9.82 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/0.4209, allocations: 15.97 kB / 1.315 GB, free: 9.805 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.4209, allocations: 8 kB / 1.315 GB, free: 9.797 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 6.476e-05/0.421, allocations: 99.2 kB / 1.315 GB, free: 9.699 MB / 1.014 GB
Notification: Performance of sort global known variables: time 1e-07/0.421, allocations: 4 kB / 1.315 GB, free: 9.695 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003183/0.4213, allocations: 59.88 kB / 1.315 GB, free: 9.637 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.0001645/0.4215, allocations: 108 kB / 1.315 GB, free: 9.523 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0004101/0.4219, allocations: 258.7 kB / 1.315 GB, free: 9.246 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4219, allocations: 4 kB / 1.315 GB, free: 9.242 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.422, allocations: 68.33 kB / 1.315 GB, free: 9.176 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.4223, allocations: 32.19 kB / 1.315 GB, free: 9.145 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005052/0.4228, allocations: 255.4 kB / 1.316 GB, free: 8.871 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.4232, allocations: 0.7124 MB / 1.316 GB, free: 8.133 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.938e-05/0.4232, allocations: 13.08 kB / 1.316 GB, free: 8.121 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.4233, allocations: 15.44 kB / 1.316 GB, free: 8.105 MB / 1.014 GB
Notification: Performance of SimCode: time 2.91e-07/0.4233, allocations: 0 / 1.316 GB, free: 8.105 MB / 1.014 GB
Notification: Performance of Templates: time 0.005798/0.4291, allocations: 2.217 MB / 1.318 GB, free: 5.91 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.420447185635567]