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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001256/0.001256, allocations: 118.5 kB / 16.37 MB, free: 5.984 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.001177/0.001177, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.583/1.583, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.594/2.594, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 68.38 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4035, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002226/0.4058, allocations: 0.6846 MB / 1.027 GB, free: 1.371 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001581/0.4074, allocations: 1.202 MB / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.46e-05/0.4075, allocations: 4 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.813e-05/0.4075, allocations: 7.922 kB / 1.029 GB, free: 144 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.689e-05/0.4076, allocations: 15.86 kB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007348/0.4083, allocations: 217.6 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.4086, allocations: 191.7 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.4087, allocations: 12 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.4088, allocations: 71.88 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.409, allocations: 71.7 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.357e-05/0.409, allocations: 16 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.266e-05/0.4091, allocations: 27.98 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.324e-05/0.4091, allocations: 8 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.092e-05/0.4092, allocations: 63.81 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.4095, allocations: 151.7 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.4095, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.545e-06/0.4095, allocations: 3.938 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.4095, allocations: 4 kB / 1.029 GB, free: 15.31 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.0006457/0.4102, allocations: 442.7 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.118e-05/0.4102, allocations: 12.03 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.032e-05/0.4103, allocations: 8.844 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.4105, allocations: 176.2 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.4105, allocations: 4.375 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.359e-05/0.4105, allocations: 16.38 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.4107, allocations: 49.8 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.4107, allocations: 0 / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.4107, allocations: 8 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.4107, allocations: 0 / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.062e-05/0.4107, allocations: 15.98 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005697/0.4113, allocations: 356.6 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.572e-05/0.4114, allocations: 38.55 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.154e-05/0.4115, allocations: 16.86 kB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.4115, allocations: 0 / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.4117, allocations: 107.3 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.222e-06/0.4117, allocations: 0 / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002999/0.412, allocations: 117.9 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.4121, allocations: 55.41 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.4122, allocations: 125.7 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.4123, allocations: 29.8 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.317e-05/0.4123, allocations: 100.3 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/0.4124, allocations: 19.78 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.288e-05/0.4125, allocations: 49.69 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4126, allocations: 322.8 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.4127, allocations: 67.89 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.4129, allocations: 112.9 kB / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.4132, allocations: 177.3 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.4132, allocations: 4 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004435/0.4136, allocations: 284.8 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.866e-05/0.4137, allocations: 71.39 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.4137, allocations: 0 / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.4137, allocations: 4 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.567e-05/0.4138, allocations: 7.938 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.4138, allocations: 4 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.4141, allocations: 59.94 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.4142, allocations: 15.98 kB / 1.032 GB, free: 12.17 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.000126/0.4143, allocations: 129.7 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.586e-05/0.4143, allocations: 3.906 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.866e-05/0.4144, allocations: 16.36 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.4144, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.4144, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4144, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003386/0.4147, allocations: 366.4 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.676e-06/0.4148, allocations: 4 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-05/0.4148, allocations: 4 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4148, allocations: 3.984 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.4148, allocations: 0 / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.4148, allocations: 0 / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.4148, allocations: 3.938 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001842/0.415, allocations: 199.5 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.441e-05/0.415, allocations: 85.02 kB / 1.033 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.4151, allocations: 7.984 kB / 1.033 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.553e-05/0.4151, allocations: 4 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.4152, allocations: 7.938 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.4152, allocations: 3.984 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.96e-05/0.4153, allocations: 99.2 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4153, allocations: 0 / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002841/0.4155, allocations: 32 kB / 1.033 GB, free: 11.12 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.0001656/0.4157, allocations: 103.2 kB / 1.033 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003931/0.4161, allocations: 262.6 kB / 1.033 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4161, allocations: 0 / 1.033 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.85e-05/0.4162, allocations: 31.94 kB / 1.033 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.4165, allocations: 15.98 kB / 1.033 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004053/0.4169, allocations: 174.8 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.4172, allocations: 0.6885 MB / 1.034 GB, free: 9.77 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.749e-05/0.4172, allocations: 8.672 kB / 1.034 GB, free: 9.762 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.167e-05/0.4173, allocations: 15.44 kB / 1.034 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.4173, allocations: 0 / 1.034 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of Templates: time 0.004824/0.4221, allocations: 1.922 MB / 1.036 GB, free: 7.848 MB / 0.8106 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 -s cvode -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/jenkins1/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