Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_10_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_10_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.001336/0.001336, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 193 kB / 16.66 MB, free: 6.582 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.649/1.649, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.182/3.182, allocations: 437 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.91 kB / 1.019 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.4032, allocations: 151.6 MB / 1.167 GB, free: 6.953 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002301/0.4055, allocations: 0.6852 MB / 1.167 GB, free: 6.262 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002108/0.4076, allocations: 1.206 MB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.549e-05/0.4077, allocations: 0 / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.722e-05/0.4078, allocations: 7.922 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.4079, allocations: 7.922 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008015/0.4087, allocations: 219.8 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003016/0.409, allocations: 191.7 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.4091, allocations: 8 kB / 1.169 GB, free: 4.617 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.4093, allocations: 71.88 kB / 1.169 GB, free: 4.547 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.4094, allocations: 75.7 kB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.025e-05/0.4095, allocations: 16 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.4096, allocations: 23.98 kB / 1.169 GB, free: 4.434 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.405e-05/0.4096, allocations: 8 kB / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.4097, allocations: 63.81 kB / 1.169 GB, free: 4.363 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.41, allocations: 159.5 kB / 1.169 GB, free: 4.207 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.4101, allocations: 0 / 1.169 GB, free: 4.207 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.132e-06/0.4101, allocations: 3.938 kB / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.4101, allocations: 0 / 1.169 GB, free: 4.203 MB / 0.92 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.0005954/0.4107, allocations: 442.6 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.4107, allocations: 8.031 kB / 1.17 GB, free: 3.703 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.991e-05/0.4108, allocations: 12.89 kB / 1.17 GB, free: 3.691 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.411, allocations: 176.3 kB / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.411, allocations: 8.375 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.411, allocations: 16.38 kB / 1.17 GB, free: 3.457 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.4111, allocations: 49.61 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.4112, allocations: 0 / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.4112, allocations: 4 kB / 1.17 GB, free: 3.398 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.4112, allocations: 7.984 kB / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.146e-05/0.4112, allocations: 15.92 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000525/0.4118, allocations: 352.7 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001014/0.4119, allocations: 46.56 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.954e-05/0.4119, allocations: 12.86 kB / 1.17 GB, free: 2.91 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 8.796e-06/0.412, allocations: 4 kB / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002086/0.4122, allocations: 95.33 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.4122, allocations: 0 / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0003096/0.4125, allocations: 121.6 kB / 1.171 GB, free: 2.676 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.4125, allocations: 59.78 kB / 1.171 GB, free: 2.605 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.4127, allocations: 121.8 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.101e-05/0.4127, allocations: 29.7 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/0.4128, allocations: 88.38 kB / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.4128, allocations: 31.77 kB / 1.171 GB, free: 2.32 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.4129, allocations: 53.69 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001908/0.4131, allocations: 322.8 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.4133, allocations: 63.89 kB / 1.171 GB, free: 1.875 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.4135, allocations: 116.3 kB / 1.171 GB, free: 1.742 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.4138, allocations: 181.3 kB / 1.172 GB, free: 1.531 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4138, allocations: 0 / 1.172 GB, free: 1.531 MB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006/0.4144, allocations: 288.8 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.031e-05/0.4144, allocations: 73.27 kB / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4145, allocations: 0 / 1.172 GB, free: 1.148 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.4145, allocations: 4 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.42e-05/0.4145, allocations: 4 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.4146, allocations: 0 / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.4149, allocations: 56.03 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-05/0.4149, allocations: 19.98 kB / 1.172 GB, free: 1.066 MB / 0.92 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.0001184/0.4151, allocations: 128 kB / 1.172 GB, free: 0.9336 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.4151, allocations: 7.953 kB / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.821e-05/0.4151, allocations: 16.36 kB / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4151, allocations: 4 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4152, allocations: 0 / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.4152, allocations: 0 / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003895/0.4156, allocations: 358.5 kB / 1.173 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4156, allocations: 0 / 1.173 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.009e-05/0.4156, allocations: 0 / 1.173 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.4156, allocations: 7.984 kB / 1.173 GB, free: 500 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.4156, allocations: 0 / 1.173 GB, free: 500 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4156, allocations: 0 / 1.173 GB, free: 500 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.4156, allocations: 3.938 kB / 1.173 GB, free: 496 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002252/0.4159, allocations: 203.5 kB / 1.173 GB, free: 276 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.577e-05/0.4159, allocations: 81.16 kB / 1.173 GB, free: 176 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.4159, allocations: 11.92 kB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.771e-05/0.416, allocations: 4 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.4161, allocations: 3.938 kB / 1.173 GB, free: 156 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.4161, allocations: 7.984 kB / 1.173 GB, free: 148 kB / 0.92 GB Notification: Performance of sorting global known variables: time 6.835e-05/0.4162, allocations: 103.6 kB / 1.173 GB, free: 44 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4162, allocations: 4 kB / 1.173 GB, free: 40 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003/0.4165, allocations: 36 kB / 1.173 GB, free: 4 kB / 0.92 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.0002003/0.4167, allocations: 103.2 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004178/0.4171, allocations: 254.7 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.4171, allocations: 4 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.316e-05/0.4172, allocations: 31.94 kB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.4175, allocations: 28.23 kB / 1.173 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004819/0.418, allocations: 166.3 kB / 1.174 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005833/0.4186, allocations: 0.6924 MB / 1.174 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.69e-05/0.4186, allocations: 4.672 kB / 1.174 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.4187, allocations: 11.44 kB / 1.174 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of SimCode: time 5.31e-07/0.4187, allocations: 3.938 kB / 1.174 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of Templates: time 0.005626/0.4243, allocations: 1.924 MB / 1.176 GB, free: 12.73 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches