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.001693/0.001693, allocations: 108 kB / 15.61 MB, free: 128 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.002158/0.002157, allocations: 198.1 kB / 16.53 MB, free: 6.672 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.646/1.646, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.962/2.962, allocations: 472.7 MB / 0.7452 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 69.16 kB / 0.9121 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3934, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002722/0.3962, allocations: 0.667 MB / 1.069 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002059/0.3983, allocations: 1.211 MB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.056e-05/0.3984, allocations: 3.938 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.331e-05/0.3984, allocations: 0 / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.834e-05/0.3985, allocations: 11.88 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009967/0.3995, allocations: 217.5 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003407/0.3999, allocations: 195.7 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.4, allocations: 7.938 kB / 1.071 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.4002, allocations: 71.89 kB / 1.071 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.4003, allocations: 55.84 kB / 1.071 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.557e-05/0.4004, allocations: 16 kB / 1.071 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.4005, allocations: 28 kB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.519e-05/0.4006, allocations: 15.92 kB / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.4007, allocations: 55.81 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002762/0.401, allocations: 151.6 kB / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.401, allocations: 4 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.527e-06/0.401, allocations: 4 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.906e-06/0.401, allocations: 0 / 1.071 GB, free: 7.672 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.0006294/0.4017, allocations: 438.9 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.4017, allocations: 12.03 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.135e-05/0.4018, allocations: 8.938 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.4019, allocations: 168.3 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.402, allocations: 12.31 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.402, allocations: 12.36 kB / 1.072 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.4022, allocations: 57.81 kB / 1.072 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.4022, allocations: 0 / 1.072 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.4022, allocations: 3.984 kB / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.4022, allocations: 0 / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.442e-05/0.4023, allocations: 12 kB / 1.072 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000675/0.403, allocations: 360.7 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.4031, allocations: 34.52 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.233e-05/0.4032, allocations: 28.88 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.4032, allocations: 0 / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002688/0.4035, allocations: 95.2 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 3.777e-06/0.4035, allocations: 0 / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0003814/0.4039, allocations: 125.5 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.4039, allocations: 59.34 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.4041, allocations: 122.2 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/0.4041, allocations: 37.69 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.057e-05/0.4042, allocations: 92.36 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.4042, allocations: 11.81 kB / 1.073 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.4044, allocations: 53.69 kB / 1.073 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.4045, allocations: 322.8 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.4048, allocations: 59.97 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.405, allocations: 111.5 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003077/0.4053, allocations: 189.3 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4053, allocations: 0 / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006046/0.4059, allocations: 276.8 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.916e-05/0.406, allocations: 67.39 kB / 1.074 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.406, allocations: 4 kB / 1.074 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.4061, allocations: 0 / 1.074 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.157e-05/0.4061, allocations: 7.984 kB / 1.074 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.4061, allocations: 7.938 kB / 1.074 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004741/0.4066, allocations: 63.94 kB / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.4067, allocations: 11.98 kB / 1.074 GB, free: 4.547 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.000145/0.4068, allocations: 128.1 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.4069, allocations: 7.906 kB / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.092e-05/0.4069, allocations: 16.36 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.4069, allocations: 4 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.4069, allocations: 0 / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.407, allocations: 8.031 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004232/0.4074, allocations: 362.8 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4074, allocations: 0 / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.367e-05/0.4074, allocations: 7.938 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.4074, allocations: 0 / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.4075, allocations: 7.984 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.4075, allocations: 4 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4075, allocations: 7.938 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.4077, allocations: 191.4 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.4078, allocations: 85.11 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.4078, allocations: 3.984 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.4079, allocations: 0 / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.391e-05/0.408, allocations: 7.938 kB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/0.408, allocations: 11.98 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.324e-05/0.4081, allocations: 91.44 kB / 1.075 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.2e-07/0.4081, allocations: 4 kB / 1.075 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000486/0.4086, allocations: 35.89 kB / 1.075 GB, free: 3.484 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.0002488/0.4089, allocations: 107.8 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005106/0.4094, allocations: 262.6 kB / 1.075 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4094, allocations: 0 / 1.075 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.955e-05/0.4095, allocations: 31.94 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004755/0.41, allocations: 22.08 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006733/0.4107, allocations: 170.4 kB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.4111, allocations: 0.6924 MB / 1.076 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.266e-05/0.4112, allocations: 4.672 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.232e-05/0.4112, allocations: 11.44 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of SimCode: time 1.432e-06/0.4112, allocations: 0 / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of Templates: time 0.009018/0.4202, allocations: 1.931 MB / 1.078 GB, free: 212 kB / 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