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.001245/0.001245, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001559/0.001559, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.463/1.463, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.806/2.806, allocations: 461.8 MB / 0.7342 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.00125, allocations: 63.41 kB / 0.8984 GB, free: 37.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.3722, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001978/0.3742, allocations: 0.742 MB / 1.053 GB, free: 8.105 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001567/0.3758, allocations: 1.237 MB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.941e-05/0.3759, allocations: 4 kB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.025e-05/0.3759, allocations: 3.938 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.236e-05/0.376, allocations: 7.938 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000625/0.3767, allocations: 205.3 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.3768, allocations: 151.8 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.377, allocations: 15.98 kB / 1.054 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.3771, allocations: 67.81 kB / 1.054 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.3772, allocations: 47.88 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.3772, allocations: 8 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.929e-05/0.3773, allocations: 23.98 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.325e-05/0.3773, allocations: 7.938 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.3774, allocations: 59.81 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002191/0.3777, allocations: 147.6 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3777, allocations: 0 / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3777, allocations: 0 / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.3777, allocations: 0 / 1.055 GB, free: 6.125 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.0006044/0.3783, allocations: 446.9 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.3784, allocations: 8.031 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.81e-05/0.3784, allocations: 12.84 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.3786, allocations: 168.4 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.3786, allocations: 8.375 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.3787, allocations: 12.31 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.3788, allocations: 61.73 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3788, allocations: 0 / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3788, allocations: 0 / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3788, allocations: 4 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.021e-05/0.3789, allocations: 12 kB / 1.055 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005545/0.3794, allocations: 360.6 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.014e-05/0.3795, allocations: 42.5 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.864e-05/0.3796, allocations: 16.8 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.995e-06/0.3796, allocations: 0 / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002035/0.3798, allocations: 91.45 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.3798, allocations: 0 / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0003038/0.3801, allocations: 129.5 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.3802, allocations: 51.41 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.3803, allocations: 125.7 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/0.3803, allocations: 37.64 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.3804, allocations: 96.36 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.753e-05/0.3804, allocations: 15.8 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.559e-05/0.3805, allocations: 53.69 kB / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.967e-05/0.3806, allocations: 322.8 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.3808, allocations: 63.95 kB / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.3809, allocations: 102 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.3812, allocations: 185.3 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3812, allocations: 0 / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004432/0.3816, allocations: 288.8 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.673e-05/0.3817, allocations: 67.39 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3817, allocations: 4 kB / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3817, allocations: 3.984 kB / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.515e-05/0.3818, allocations: 4 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.3818, allocations: 11.88 kB / 1.057 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.3822, allocations: 63.94 kB / 1.057 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.3822, allocations: 15.98 kB / 1.058 GB, free: 2.98 MB / 0.8106 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.0001086/0.3823, allocations: 127.6 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.448e-05/0.3823, allocations: 4 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.818e-05/0.3824, allocations: 8.375 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3824, allocations: 4 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3824, allocations: 3.938 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3824, allocations: 0 / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.3827, allocations: 366.4 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3827, allocations: 3.984 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.137e-06/0.3828, allocations: 0 / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3828, allocations: 0 / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.3828, allocations: 11.94 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3828, allocations: 0 / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.3828, allocations: 3.938 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001778/0.383, allocations: 191.5 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.383, allocations: 89 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.3831, allocations: 8 kB / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.343e-05/0.3831, allocations: 0 / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.431e-05/0.3832, allocations: 11.92 kB / 1.058 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.3832, allocations: 4 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.172e-05/0.3832, allocations: 95.27 kB / 1.058 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3832, allocations: 0 / 1.058 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002917/0.3835, allocations: 28 kB / 1.058 GB, free: 1.941 MB / 0.8106 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.0001734/0.3837, allocations: 116.3 kB / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003475/0.3841, allocations: 254.6 kB / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3841, allocations: 0 / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.949e-05/0.3842, allocations: 31.98 kB / 1.059 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.3845, allocations: 20.61 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003697/0.3849, allocations: 184.1 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.3851, allocations: 0.6887 MB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.018e-05/0.3851, allocations: 4.672 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.134e-05/0.3852, allocations: 15.44 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of SimCode: time 3.8e-07/0.3852, allocations: 0 / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of Templates: time 0.004524/0.3897, allocations: 1.824 MB / 1.061 GB, free: 14.76 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