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.001005/0.001005, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00773/0.00773, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.51/1.51, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.091/3.091, allocations: 462.7 MB / 0.7364 GB, free: 292 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003936/0.0003937, allocations: 12.88 kB / 0.9028 GB, free: 36.73 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4027, allocations: 159.6 MB / 1.059 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001087/0.4038, allocations: 406.2 kB / 1.059 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.4055, allocations: 1.229 MB / 1.06 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.383e-05/0.4056, allocations: 0 / 1.06 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.043e-05/0.4056, allocations: 0 / 1.06 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.781e-05/0.4057, allocations: 7.922 kB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006975/0.4064, allocations: 209.8 kB / 1.06 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.4066, allocations: 155.7 kB / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.4067, allocations: 8 kB / 1.061 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001152/0.4068, allocations: 67.81 kB / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.407, allocations: 39.88 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.843e-05/0.407, allocations: 12 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.861e-05/0.4071, allocations: 27.97 kB / 1.061 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.207e-05/0.4071, allocations: 15.92 kB / 1.061 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.4073, allocations: 73.59 kB / 1.061 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002469/0.4075, allocations: 147.6 kB / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4075, allocations: 0 / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4075, allocations: 0 / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.4075, allocations: 0 / 1.061 GB, free: 3.082 MB / 0.8106 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.0005577/0.4081, allocations: 415 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4082, allocations: 8.031 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.4082, allocations: 12.84 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.4084, allocations: 168.4 kB / 1.062 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.4084, allocations: 20.23 kB / 1.062 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.78e-05/0.4085, allocations: 16.36 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.4086, allocations: 49.8 kB / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.4086, allocations: 0 / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.4086, allocations: 4 kB / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.4086, allocations: 4 kB / 1.062 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.677e-05/0.4087, allocations: 8 kB / 1.062 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005283/0.4092, allocations: 368.6 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.177e-05/0.4093, allocations: 42.5 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.077e-05/0.4093, allocations: 16.86 kB / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.316e-06/0.4093, allocations: 0 / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.4095, allocations: 87.39 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 2.756e-06/0.4095, allocations: 4 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002754/0.4098, allocations: 129.5 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.4099, allocations: 59.34 kB / 1.062 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.41, allocations: 121.8 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.41, allocations: 29.7 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.888e-05/0.4101, allocations: 96.28 kB / 1.063 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.4101, allocations: 15.8 kB / 1.063 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.896e-05/0.4102, allocations: 29.7 kB / 1.063 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4103, allocations: 326.8 kB / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.4104, allocations: 59.97 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.4107, allocations: 106 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/0.4109, allocations: 189.3 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4109, allocations: 4 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004235/0.4113, allocations: 276.8 kB / 1.064 GB, free: 168 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.309e-05/0.4114, allocations: 71.39 kB / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.4114, allocations: 0 / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.4114, allocations: 8.531 kB / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.292e-05/0.4115, allocations: 4 kB / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.4115, allocations: 3.938 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004156/0.4119, allocations: 79.92 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.412, allocations: 19.88 kB / 1.064 GB, free: 15.97 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.000114/0.4121, allocations: 125.8 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.623e-05/0.4121, allocations: 7.906 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.621e-05/0.4121, allocations: 8.375 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.4122, allocations: 4 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4122, allocations: 4 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.4122, allocations: 0 / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003454/0.4125, allocations: 358.5 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4125, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.079e-05/0.4125, allocations: 7.875 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.4126, allocations: 4 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.4126, allocations: 0 / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.4126, allocations: 0 / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4126, allocations: 3.938 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001933/0.4128, allocations: 203.4 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.4128, allocations: 85.02 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.4129, allocations: 4 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.281e-05/0.4129, allocations: 4 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.098e-05/0.413, allocations: 7.922 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.413, allocations: 4 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.247e-05/0.4131, allocations: 91.27 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4131, allocations: 4 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002695/0.4133, allocations: 36 kB / 1.065 GB, free: 14.93 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.0001798/0.4135, allocations: 109.3 kB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003613/0.4139, allocations: 254.6 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4139, allocations: 192 / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.324e-05/0.414, allocations: 39.92 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.4143, allocations: 18.64 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003624/0.4146, allocations: 187 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.4149, allocations: 0.6851 MB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.89e-05/0.415, allocations: 16.59 kB / 1.066 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.186e-05/0.415, allocations: 11.44 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.415, allocations: 4 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of Templates: time 0.004685/0.4197, allocations: 1.81 MB / 1.068 GB, free: 11.75 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