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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.007401/0.007402, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001312/0.001312, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.601/1.601, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.193/3.193, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 71.89 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3919, allocations: 157.4 MB / 1.208 GB, free: 9.629 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002808/0.3947, allocations: 0.6745 MB / 1.208 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002186/0.3969, allocations: 1.198 MB / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.538e-05/0.3971, allocations: 0 / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.513e-05/0.3971, allocations: 11.88 kB / 1.21 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.522e-05/0.3972, allocations: 11.86 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009925/0.3982, allocations: 220.3 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003315/0.3986, allocations: 191.7 kB / 1.21 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.3987, allocations: 8 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003932/0.3991, allocations: 75.81 kB / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.3993, allocations: 67.83 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.3993, allocations: 16 kB / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.567e-05/0.3994, allocations: 28 kB / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.063e-05/0.3995, allocations: 15.92 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003503/0.3998, allocations: 55.88 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002832/0.4001, allocations: 155.6 kB / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4001, allocations: 4 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4001, allocations: 0 / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.134e-05/0.4001, allocations: 0 / 1.21 GB, free: 6.902 MB / 0.9669 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.0008269/0.401, allocations: 442.6 kB / 1.211 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.401, allocations: 8.031 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.762e-05/0.4011, allocations: 12.94 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.4013, allocations: 172.3 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.4013, allocations: 12.31 kB / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.086e-05/0.4014, allocations: 12.36 kB / 1.211 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.4015, allocations: 49.62 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.4015, allocations: 0 / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.4015, allocations: 3.984 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.4016, allocations: 0 / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.593e-05/0.4016, allocations: 16 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000611/0.4022, allocations: 360.7 kB / 1.211 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.4023, allocations: 34.52 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.352e-05/0.4024, allocations: 20.94 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 8.365e-06/0.4024, allocations: 3.938 kB / 1.212 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001627/0.4026, allocations: 91.77 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=9): time 3.246e-06/0.4026, allocations: 7.938 kB / 1.212 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9): time 0.0003186/0.4029, allocations: 125.5 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.403, allocations: 59.34 kB / 1.212 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.4032, allocations: 121.8 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/0.4033, allocations: 33.69 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.555e-05/0.4033, allocations: 88.38 kB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/0.4034, allocations: 23.7 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/0.4037, allocations: 53.69 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002532/0.4039, allocations: 326.8 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.404, allocations: 55.97 kB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.4042, allocations: 110 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.4045, allocations: 193.3 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4046, allocations: 0 / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005485/0.4051, allocations: 276.8 kB / 1.213 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.378e-05/0.4052, allocations: 67.39 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.4052, allocations: 4 kB / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.4052, allocations: 4.156 kB / 1.213 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.509e-05/0.4053, allocations: 11.92 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.4053, allocations: 4 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005101/0.4058, allocations: 51.88 kB / 1.213 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.4058, allocations: 15.98 kB / 1.213 GB, free: 3.77 MB / 0.9669 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.0001084/0.406, allocations: 129.8 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/0.406, allocations: 7.906 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.406, allocations: 8.375 kB / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.406, allocations: 0 / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.406, allocations: 0 / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.406, allocations: 4 kB / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004804/0.4065, allocations: 362.4 kB / 1.214 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4065, allocations: 0 / 1.214 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.054e-05/0.4066, allocations: 8.406 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.4066, allocations: 0 / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.4066, allocations: 4 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.4066, allocations: 4 kB / 1.214 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4066, allocations: 3.938 kB / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.4069, allocations: 203.4 kB / 1.214 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.407, allocations: 89 kB / 1.214 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.407, allocations: 4 kB / 1.214 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.056e-05/0.4071, allocations: 0 / 1.214 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.4071, allocations: 15.92 kB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.4072, allocations: 8 kB / 1.214 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.34e-05/0.4072, allocations: 91.27 kB / 1.214 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4072, allocations: 0 / 1.214 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002833/0.4075, allocations: 32 kB / 1.214 GB, free: 2.711 MB / 0.9669 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.0001924/0.4077, allocations: 108.9 kB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004631/0.4082, allocations: 258.9 kB / 1.214 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4082, allocations: 4.062 kB / 1.214 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.797e-05/0.4083, allocations: 31.98 kB / 1.214 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.4086, allocations: 11.98 kB / 1.214 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.409, allocations: 177 kB / 1.215 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004744/0.4094, allocations: 0.6885 MB / 1.215 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.928e-05/0.4095, allocations: 12.66 kB / 1.215 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.326e-05/0.4095, allocations: 11.44 kB / 1.215 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.4095, allocations: 288 / 1.215 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of Templates: time 0.005472/0.415, allocations: 1.982 MB / 1.217 GB, free: 15.38 MB / 0.9825 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