Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.001754/0.001754, 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.001974/0.001974, allocations: 190.7 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.629/1.629, 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.368/3.368, allocations: 495.8 MB / 0.783 GB, free: 33.62 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.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter")
translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 69.69 kB / 1.137 GB, free: 33.78 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4594/0.4614, allocations: 173.6 MB / 1.307 GB, free: 1.812 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002184/0.4636, allocations: 0.6955 MB / 1.307 GB, free: 1.117 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.00215/0.4658, allocations: 1.214 MB / 1.309 GB, free: 15.89 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.364e-05/0.4658, allocations: 4 kB / 1.309 GB, free: 15.89 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.825e-05/0.4659, allocations: 3.938 kB / 1.309 GB, free: 15.88 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 8.149e-05/0.4659, allocations: 15.92 kB / 1.309 GB, free: 15.87 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0008328/0.4668, allocations: 217.8 kB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002873/0.4671, allocations: 183.7 kB / 1.309 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.4672, allocations: 8 kB / 1.309 GB, free: 15.47 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.4673, allocations: 71.88 kB / 1.309 GB, free: 15.4 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.4675, allocations: 67.84 kB / 1.309 GB, free: 15.34 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.052e-05/0.4675, allocations: 16 kB / 1.309 GB, free: 15.32 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 9.064e-05/0.4676, allocations: 27.98 kB / 1.309 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.231e-05/0.4676, allocations: 4 kB / 1.309 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.4678, allocations: 67.81 kB / 1.309 GB, free: 15.22 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.468, allocations: 163.5 kB / 1.309 GB, free: 15.06 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.468, allocations: 0 / 1.309 GB, free: 15.06 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.014e-06/0.468, allocations: 0 / 1.309 GB, free: 15.06 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 7.604e-06/0.468, allocations: 0 / 1.309 GB, free: 15.06 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.0006406/0.4687, allocations: 369.5 kB / 1.31 GB, free: 14.66 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.4687, allocations: 12.92 kB / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.001e-05/0.4688, allocations: 12.89 kB / 1.31 GB, free: 14.64 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.4689, allocations: 110.5 kB / 1.31 GB, free: 14.5 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.469, allocations: 4.375 kB / 1.31 GB, free: 14.5 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.469, allocations: 12.38 kB / 1.31 GB, free: 14.49 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.4692, allocations: 53.61 kB / 1.31 GB, free: 14.43 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.4692, allocations: 0 / 1.31 GB, free: 14.43 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.4692, allocations: 0 / 1.31 GB, free: 14.43 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.4692, allocations: 0 / 1.31 GB, free: 14.43 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.088e-05/0.4693, allocations: 23.92 kB / 1.31 GB, free: 14.41 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006525/0.4699, allocations: 327.8 kB / 1.31 GB, free: 14.04 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 9.803e-05/0.47, allocations: 30.56 kB / 1.31 GB, free: 14 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 3.223e-05/0.47, allocations: 12.86 kB / 1.31 GB, free: 13.99 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.4701, allocations: 4 kB / 1.31 GB, free: 13.98 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001874/0.4702, allocations: 103.3 kB / 1.31 GB, free: 13.87 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.4703, allocations: 0 / 1.31 GB, free: 13.87 MB / 1.014 GB
Notification: Performance of matching and sorting (n=9): time 0.0003842/0.4706, allocations: 125.6 kB / 1.311 GB, free: 13.74 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.316e-05/0.4707, allocations: 55.41 kB / 1.311 GB, free: 13.68 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.4708, allocations: 125.7 kB / 1.311 GB, free: 13.54 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 4.792e-05/0.4709, allocations: 37.7 kB / 1.311 GB, free: 13.5 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 9.19e-05/0.471, allocations: 92.36 kB / 1.311 GB, free: 13.4 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.471, allocations: 23.84 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.4711, allocations: 53.69 kB / 1.311 GB, free: 13.32 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001569/0.4713, allocations: 322.8 kB / 1.311 GB, free: 13 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.4714, allocations: 59.97 kB / 1.311 GB, free: 12.94 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.4716, allocations: 113.9 kB / 1.311 GB, free: 12.8 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.4719, allocations: 185.3 kB / 1.312 GB, free: 12.59 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4719, allocations: 0 / 1.312 GB, free: 12.59 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005196/0.4724, allocations: 280.8 kB / 1.312 GB, free: 12.3 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 7.928e-05/0.4725, allocations: 75.55 kB / 1.312 GB, free: 12.21 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.4725, allocations: 0 / 1.312 GB, free: 12.21 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.4725, allocations: 4 kB / 1.312 GB, free: 12.21 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.043e-05/0.4726, allocations: 7.938 kB / 1.312 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.4726, allocations: 0 / 1.312 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.4729, allocations: 51.88 kB / 1.312 GB, free: 12.15 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.473, allocations: 19.98 kB / 1.312 GB, free: 12.13 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: 12 (onCounter.y,$PRE.onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,reset.y,$PRE.reset.y,$whenCondition2,booPul.y,$PRE.booPul.y,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (12):
 * Single equations (assignments): 10
 * 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.0001553/0.4731, allocations: 133.7 kB / 1.312 GB, free: 11.99 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.4732, allocations: 11.94 kB / 1.312 GB, free: 11.98 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.011e-05/0.4732, allocations: 12.38 kB / 1.312 GB, free: 11.96 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.4732, allocations: 0 / 1.312 GB, free: 11.96 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4732, allocations: 0 / 1.312 GB, free: 11.96 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4732, allocations: 0 / 1.312 GB, free: 11.96 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/0.4736, allocations: 333.8 kB / 1.312 GB, free: 11.59 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.4736, allocations: 0 / 1.312 GB, free: 11.59 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.498e-05/0.4737, allocations: 11.98 kB / 1.312 GB, free: 11.57 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.4737, allocations: 0 / 1.312 GB, free: 11.57 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.4737, allocations: 0 / 1.312 GB, free: 11.57 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4737, allocations: 3.938 kB / 1.312 GB, free: 11.57 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.4737, allocations: 3.938 kB / 1.313 GB, free: 11.57 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.4739, allocations: 199.4 kB / 1.313 GB, free: 11.36 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.276e-05/0.4739, allocations: 3.953 kB / 1.313 GB, free: 11.35 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.007e-05/0.474, allocations: 12.08 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.636e-05/0.474, allocations: 8 kB / 1.313 GB, free: 11.33 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.94e-05/0.4741, allocations: 15.91 kB / 1.313 GB, free: 11.32 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.4741, allocations: 8 kB / 1.313 GB, free: 11.31 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0001039/0.4742, allocations: 91.27 kB / 1.313 GB, free: 11.22 MB / 1.014 GB
Notification: Performance of sort global known variables: time 1.1e-07/0.4742, allocations: 0 / 1.313 GB, free: 11.22 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002982/0.4745, allocations: 28 kB / 1.313 GB, free: 11.19 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: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y)
 * Number of discrete states: 1 (onCounter.y)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (9):
 * Single equations (assignments): 6
 * 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.0002654/0.4748, allocations: 113.5 kB / 1.313 GB, free: 11.07 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0004733/0.4752, allocations: 234.7 kB / 1.313 GB, free: 10.82 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4753, allocations: 0 / 1.313 GB, free: 10.82 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 6.883e-05/0.4753, allocations: 27.92 kB / 1.313 GB, free: 10.79 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.4757, allocations: 16.36 kB / 1.313 GB, free: 10.78 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005233/0.4762, allocations: 174.4 kB / 1.313 GB, free: 10.58 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.4766, allocations: 0.6927 MB / 1.314 GB, free: 9.863 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.296e-05/0.4766, allocations: 4.672 kB / 1.314 GB, free: 9.859 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.862e-05/0.4767, allocations: 11.44 kB / 1.314 GB, free: 9.848 MB / 1.014 GB
Notification: Performance of SimCode: time 7.11e-07/0.4767, allocations: 0 / 1.314 GB, free: 9.848 MB / 1.014 GB
Notification: Performance of Templates: time 0.005688/0.4823, allocations: 1.966 MB / 1.316 GB, free: 7.906 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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: 10.094600334763527]