Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.001425/0.001425, allocations: 110 kB / 18.93 MB, free: 2.945 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.001461/0.001461, allocations: 191.3 kB / 22.23 MB, free: 5.156 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.505/1.505, 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-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.382/3.382, allocations: 0.4893 GB / 0.7884 GB, free: 33.04 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-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.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand")
translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 61.84 kB / 1.145 GB, free: 30.68 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4499/0.4519, allocations: 174.9 MB / 1.316 GB, free: 9.68 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002132/0.4541, allocations: 0.6567 MB / 1.317 GB, free: 9.023 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001744/0.4558, allocations: 1.198 MB / 1.318 GB, free: 7.812 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.295e-05/0.4559, allocations: 0 / 1.318 GB, free: 7.812 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.284e-05/0.4559, allocations: 7.938 kB / 1.318 GB, free: 7.805 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 9.097e-05/0.456, allocations: 15.86 kB / 1.318 GB, free: 7.789 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0007073/0.4567, allocations: 221.5 kB / 1.318 GB, free: 7.578 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002574/0.457, allocations: 171.7 kB / 1.318 GB, free: 7.41 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.4571, allocations: 8 kB / 1.318 GB, free: 7.402 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.4572, allocations: 71.88 kB / 1.318 GB, free: 7.332 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.4573, allocations: 55.86 kB / 1.318 GB, free: 7.277 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.028e-05/0.4574, allocations: 20 kB / 1.318 GB, free: 7.258 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 9.202e-05/0.4574, allocations: 31.92 kB / 1.318 GB, free: 7.227 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.829e-05/0.4575, allocations: 11.98 kB / 1.318 GB, free: 7.215 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 9.833e-05/0.4576, allocations: 55.84 kB / 1.318 GB, free: 7.16 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.4578, allocations: 155.5 kB / 1.319 GB, free: 7.008 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4578, allocations: 0 / 1.319 GB, free: 7.008 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.844e-06/0.4578, allocations: 0 / 1.319 GB, free: 7.008 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.252e-06/0.4578, allocations: 0 / 1.319 GB, free: 7.008 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: 5
 * Number of variables: 5
Notification: Performance of Generate backend data structure: time 0.0006026/0.4584, allocations: 357.5 kB / 1.319 GB, free: 6.613 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.4585, allocations: 16.03 kB / 1.319 GB, free: 6.598 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.823e-05/0.4585, allocations: 12.89 kB / 1.319 GB, free: 6.586 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.4587, allocations: 110.5 kB / 1.319 GB, free: 6.453 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.4587, allocations: 8.375 kB / 1.319 GB, free: 6.445 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.4587, allocations: 12.38 kB / 1.319 GB, free: 6.434 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.4588, allocations: 46.19 kB / 1.319 GB, free: 6.383 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.4589, allocations: 192 / 1.319 GB, free: 6.383 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.4589, allocations: 7.922 kB / 1.319 GB, free: 6.375 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.4589, allocations: 4 kB / 1.319 GB, free: 6.371 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 4.867e-05/0.4589, allocations: 12 kB / 1.319 GB, free: 6.359 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005298/0.4595, allocations: 327.8 kB / 1.32 GB, free: 5.996 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 8.498e-05/0.4595, allocations: 34.45 kB / 1.32 GB, free: 5.953 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 3.735e-05/0.4596, allocations: 24.88 kB / 1.32 GB, free: 5.926 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.4596, allocations: 3.984 kB / 1.32 GB, free: 5.922 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001473/0.4597, allocations: 79.36 kB / 1.32 GB, free: 5.832 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.4597, allocations: 4 kB / 1.32 GB, free: 5.828 MB / 1.014 GB
Notification: Performance of matching and sorting (n=7): time 0.0002643/0.46, allocations: 97.62 kB / 1.32 GB, free: 5.727 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.4601, allocations: 59.34 kB / 1.32 GB, free: 5.656 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.4602, allocations: 121.8 kB / 1.32 GB, free: 5.527 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.4602, allocations: 33.7 kB / 1.32 GB, free: 5.488 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 7.454e-05/0.4603, allocations: 88.14 kB / 1.32 GB, free: 5.398 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.4603, allocations: 15.89 kB / 1.32 GB, free: 5.383 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.4604, allocations: 53.67 kB / 1.32 GB, free: 5.324 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001417/0.4605, allocations: 322.8 kB / 1.32 GB, free: 5 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.4607, allocations: 63.97 kB / 1.32 GB, free: 4.938 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.4608, allocations: 88.25 kB / 1.321 GB, free: 4.836 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.4611, allocations: 163.6 kB / 1.321 GB, free: 4.648 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4611, allocations: 3.938 kB / 1.321 GB, free: 4.645 MB / 1.014 GB
Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004638/0.4615, allocations: 261.3 kB / 1.321 GB, free: 4.371 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 7.368e-05/0.4616, allocations: 67.39 kB / 1.321 GB, free: 4.293 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.4616, allocations: 0 / 1.321 GB, free: 4.293 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.4616, allocations: 7.938 kB / 1.321 GB, free: 4.285 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.361e-05/0.4617, allocations: 7.922 kB / 1.321 GB, free: 4.277 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.4617, allocations: 8.125 kB / 1.321 GB, free: 4.27 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.462, allocations: 51.94 kB / 1.321 GB, free: 4.219 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.4621, allocations: 11.98 kB / 1.321 GB, free: 4.207 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * Number of states: 0 ()
 * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,nand1.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 (9):
 * Single equations (assignments): 7
 * 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.000131/0.4622, allocations: 126.2 kB / 1.321 GB, free: 4.074 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.005e-05/0.4622, allocations: 7.953 kB / 1.321 GB, free: 4.066 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.4622, allocations: 12.38 kB / 1.321 GB, free: 4.051 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.4622, allocations: 4 kB / 1.321 GB, free: 4.047 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.4622, allocations: 0 / 1.321 GB, free: 4.047 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.4623, allocations: 64 / 1.321 GB, free: 4.047 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.4624, allocations: 152.7 kB / 1.321 GB, free: 3.855 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4624, allocations: 3.938 kB / 1.321 GB, free: 3.852 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.043e-05/0.4624, allocations: 4 kB / 1.321 GB, free: 3.848 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.4624, allocations: 0 / 1.321 GB, free: 3.848 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.4624, allocations: 4 kB / 1.321 GB, free: 3.844 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4624, allocations: 0 / 1.321 GB, free: 3.844 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4624, allocations: 0 / 1.321 GB, free: 3.844 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001658/0.4626, allocations: 121 kB / 1.322 GB, free: 3.707 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.077e-05/0.4626, allocations: 3.953 kB / 1.322 GB, free: 3.703 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.4626, allocations: 3.984 kB / 1.322 GB, free: 3.699 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.893e-05/0.4626, allocations: 4 kB / 1.322 GB, free: 3.695 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.387e-05/0.4627, allocations: 3.984 kB / 1.322 GB, free: 3.691 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.4627, allocations: 8 kB / 1.322 GB, free: 3.684 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 6.557e-05/0.4628, allocations: 91.22 kB / 1.322 GB, free: 3.594 MB / 1.014 GB
Notification: Performance of sort global known variables: time 9e-08/0.4628, allocations: 4 kB / 1.322 GB, free: 3.59 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002393/0.463, allocations: 31.98 kB / 1.322 GB, free: 3.559 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: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,nand1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (7):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * 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.0001589/0.4632, allocations: 95.25 kB / 1.322 GB, free: 3.457 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003908/0.4636, allocations: 222.6 kB / 1.322 GB, free: 3.215 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4636, allocations: 0 / 1.322 GB, free: 3.215 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 4.926e-05/0.4636, allocations: 23.98 kB / 1.322 GB, free: 3.191 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.4639, allocations: 28.39 kB / 1.322 GB, free: 3.164 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003811/0.4642, allocations: 150.7 kB / 1.322 GB, free: 2.988 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.4646, allocations: 0.6846 MB / 1.323 GB, free: 2.277 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 2.806e-05/0.4646, allocations: 7.984 kB / 1.323 GB, free: 2.27 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.379e-05/0.4646, allocations: 11.44 kB / 1.323 GB, free: 2.258 MB / 1.014 GB
Notification: Performance of SimCode: time 3.01e-07/0.4646, allocations: 0 / 1.323 GB, free: 2.258 MB / 1.014 GB
Notification: Performance of Templates: time 0.005424/0.47, allocations: 1.887 MB / 1.325 GB, free: 408 kB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.560504169203341]