Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001575/0.001575, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 192.3 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.535/1.535, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.238/3.238, allocations: 472.6 MB / 0.7448 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001398, allocations: 67.05 kB / 0.9116 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4426/0.4441, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.00238/0.4465, allocations: 0.7456 MB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001699/0.4482, allocations: 1.202 MB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.769e-05/0.4483, allocations: 0 / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.509e-05/0.4483, allocations: 3.938 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.49e-05/0.4484, allocations: 7.922 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007137/0.4491, allocations: 207 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002413/0.4494, allocations: 191.7 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.4495, allocations: 7.984 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.4496, allocations: 71.88 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.4498, allocations: 51.88 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.248e-05/0.4498, allocations: 16 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.794e-05/0.4499, allocations: 31.92 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.009e-05/0.4499, allocations: 15.92 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.572e-05/0.45, allocations: 59.83 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002298/0.4502, allocations: 155.6 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4503, allocations: 0 / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.785e-06/0.4503, allocations: 0 / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.4503, allocations: 0 / 1.07 GB, free: 7.992 MB / 0.8262 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.0006454/0.4509, allocations: 442.9 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.451, allocations: 12.03 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.955e-05/0.4511, allocations: 8.938 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.4512, allocations: 172.3 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.4512, allocations: 8.375 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.4513, allocations: 12.38 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.4514, allocations: 53.73 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.4514, allocations: 0 / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.4515, allocations: 8 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4515, allocations: 0 / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.334e-05/0.4515, allocations: 19.92 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005808/0.4521, allocations: 360.6 kB / 1.071 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.086e-05/0.4522, allocations: 38.56 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.096e-05/0.4522, allocations: 16.86 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.4523, allocations: 0 / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001887/0.4524, allocations: 99.27 kB / 1.072 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.272e-06/0.4525, allocations: 4 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002962/0.4528, allocations: 125.5 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.4528, allocations: 55.41 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.4529, allocations: 117.8 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.453, allocations: 29.7 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.4531, allocations: 92.38 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.4531, allocations: 19.8 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-05/0.4532, allocations: 53.69 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4533, allocations: 326.8 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.4535, allocations: 59.97 kB / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.4537, allocations: 109.9 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.4539, allocations: 181.3 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4539, allocations: 4 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004454/0.4543, allocations: 280.7 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.225e-05/0.4544, allocations: 71.39 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4544, allocations: 4.156 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.4544, allocations: 4 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.986e-05/0.4545, allocations: 4 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.4545, allocations: 4.375 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003534/0.4549, allocations: 63.7 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/0.4549, allocations: 12 kB / 1.073 GB, free: 4.859 MB / 0.8262 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.0001216/0.455, allocations: 139.5 kB / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.4551, allocations: 3.906 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.4551, allocations: 16.38 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.4551, allocations: 3.938 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4551, allocations: 0 / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.4551, allocations: 0 / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.4555, allocations: 358.5 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4555, allocations: 96 / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.121e-05/0.4555, allocations: 8 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.4555, allocations: 3.984 kB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.4556, allocations: 0 / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.4556, allocations: 0 / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4556, allocations: 3.938 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.4558, allocations: 203.4 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-05/0.4558, allocations: 77.11 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.4558, allocations: 8 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.089e-05/0.4559, allocations: 4 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.4559, allocations: 11.92 kB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.456, allocations: 4 kB / 1.074 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.761e-05/0.456, allocations: 99.2 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.456, allocations: 0 / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002789/0.4563, allocations: 31.91 kB / 1.074 GB, free: 3.805 MB / 0.8262 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.0002303/0.4566, allocations: 108.2 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004117/0.457, allocations: 262.8 kB / 1.074 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.457, allocations: 3.938 kB / 1.074 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.09e-05/0.4571, allocations: 31.98 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.4574, allocations: 15.98 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004207/0.4578, allocations: 190.7 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.4581, allocations: 0.6885 MB / 1.075 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.296e-05/0.4582, allocations: 4.672 kB / 1.075 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.331e-05/0.4582, allocations: 15.42 kB / 1.075 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.4582, allocations: 0 / 1.075 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of Templates: time 0.005483/0.4637, allocations: 1.913 MB / 1.077 GB, free: 0.5273 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches