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.001143/0.001143, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.009091/0.009092, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.616/1.616, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.101/3.101, allocations: 483.2 MB / 0.7564 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0004672/0.0004673, allocations: 11.94 kB / 0.9276 GB, free: 29.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4163/0.4168, allocations: 164.5 MB / 1.088 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001076/0.4179, allocations: 409.4 kB / 1.089 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00185/0.4197, allocations: 1.221 MB / 1.09 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.418e-05/0.4198, allocations: 4 kB / 1.09 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.027e-05/0.4198, allocations: 3.938 kB / 1.09 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.114e-05/0.4199, allocations: 3.938 kB / 1.09 GB, free: 8.668 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000645/0.4206, allocations: 201.7 kB / 1.09 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000213/0.4208, allocations: 159.7 kB / 1.09 GB, free: 8.32 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.4209, allocations: 12 kB / 1.09 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.421, allocations: 71.77 kB / 1.09 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.4211, allocations: 43.86 kB / 1.09 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.028e-05/0.4212, allocations: 8 kB / 1.09 GB, free: 8.188 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.514e-05/0.4213, allocations: 23.98 kB / 1.09 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.16e-05/0.4213, allocations: 11.94 kB / 1.09 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.4214, allocations: 77.58 kB / 1.09 GB, free: 8.07 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.4217, allocations: 151.5 kB / 1.091 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4217, allocations: 0 / 1.091 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4217, allocations: 0 / 1.091 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.4217, allocations: 0 / 1.091 GB, free: 7.922 MB / 0.8419 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.0006079/0.4223, allocations: 415.1 kB / 1.091 GB, free: 7.457 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4224, allocations: 8.031 kB / 1.091 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.824e-05/0.4224, allocations: 12.84 kB / 1.091 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.4226, allocations: 172.2 kB / 1.091 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/0.4227, allocations: 8.375 kB / 1.091 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.4227, allocations: 12.36 kB / 1.091 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.4228, allocations: 53.75 kB / 1.091 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4229, allocations: 0 / 1.091 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.4229, allocations: 7.984 kB / 1.091 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.4229, allocations: 4 kB / 1.091 GB, free: 7.141 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.614e-05/0.423, allocations: 12 kB / 1.091 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006484/0.4236, allocations: 360.7 kB / 1.092 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.4237, allocations: 38.52 kB / 1.092 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.489e-05/0.4238, allocations: 16.94 kB / 1.092 GB, free: 6.66 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.4238, allocations: 0 / 1.092 GB, free: 6.66 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.424, allocations: 95.27 kB / 1.092 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.424, allocations: 3.938 kB / 1.092 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9): time 0.0003079/0.4243, allocations: 125.6 kB / 1.092 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.4244, allocations: 51.78 kB / 1.092 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.4245, allocations: 121.8 kB / 1.092 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.171e-05/0.4246, allocations: 37.62 kB / 1.092 GB, free: 6.188 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.4247, allocations: 96.36 kB / 1.092 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.4247, allocations: 19.75 kB / 1.092 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.4248, allocations: 29.7 kB / 1.092 GB, free: 6.031 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001894/0.425, allocations: 322.8 kB / 1.093 GB, free: 5.707 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.4251, allocations: 59.97 kB / 1.093 GB, free: 5.648 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.4253, allocations: 107.8 kB / 1.093 GB, free: 5.523 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.4256, allocations: 181.3 kB / 1.093 GB, free: 5.312 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.4256, allocations: 0 / 1.093 GB, free: 5.312 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004856/0.4261, allocations: 288.8 kB / 1.093 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.514e-05/0.4262, allocations: 71.39 kB / 1.093 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4262, allocations: 0 / 1.093 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.4262, allocations: 4 kB / 1.093 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.218e-05/0.4263, allocations: 4 kB / 1.093 GB, free: 4.922 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.4263, allocations: 3.938 kB / 1.093 GB, free: 4.918 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004053/0.4267, allocations: 83.89 kB / 1.093 GB, free: 4.836 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.4267, allocations: 16 kB / 1.093 GB, free: 4.82 MB / 0.8419 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.0001471/0.4269, allocations: 129.8 kB / 1.093 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.4269, allocations: 7.906 kB / 1.093 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.622e-05/0.4269, allocations: 8.375 kB / 1.093 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.427, allocations: 0 / 1.093 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.427, allocations: 4 kB / 1.093 GB, free: 4.664 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.427, allocations: 0 / 1.093 GB, free: 4.664 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003878/0.4274, allocations: 362.4 kB / 1.094 GB, free: 4.254 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4274, allocations: 4 kB / 1.094 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.137e-05/0.4274, allocations: 0 / 1.094 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.4274, allocations: 7.938 kB / 1.094 GB, free: 4.242 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.4274, allocations: 7.938 kB / 1.094 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4274, allocations: 0 / 1.094 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.4274, allocations: 3.938 kB / 1.094 GB, free: 4.23 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/0.4277, allocations: 199.5 kB / 1.094 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.956e-05/0.4277, allocations: 85.19 kB / 1.094 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.4278, allocations: 3.938 kB / 1.094 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.359e-05/0.4278, allocations: 4 kB / 1.094 GB, free: 3.91 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.686e-05/0.4279, allocations: 15.92 kB / 1.094 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.4279, allocations: 4 kB / 1.094 GB, free: 3.891 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.227e-05/0.428, allocations: 91.27 kB / 1.094 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.428, allocations: 0 / 1.094 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002828/0.4283, allocations: 32 kB / 1.094 GB, free: 3.77 MB / 0.8419 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.0001853/0.4284, allocations: 103.2 kB / 1.094 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004022/0.4289, allocations: 258.8 kB / 1.095 GB, free: 3.383 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4289, allocations: 4.125 kB / 1.095 GB, free: 3.379 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.94e-05/0.4289, allocations: 31.98 kB / 1.095 GB, free: 3.348 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.4292, allocations: 19.7 kB / 1.095 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004052/0.4297, allocations: 194 kB / 1.095 GB, free: 3.117 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.43, allocations: 0.6848 MB / 1.095 GB, free: 2.406 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.44e-05/0.4301, allocations: 8.656 kB / 1.095 GB, free: 2.398 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.4301, allocations: 19.38 kB / 1.095 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.4301, allocations: 0 / 1.095 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of Templates: time 0.004887/0.435, allocations: 1.813 MB / 1.097 GB, free: 0.5898 MB / 0.8419 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=400 -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