Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001148/0.001148, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001169/0.001169, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.356/1.356, allocations: 222.9 MB / 240.6 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.537/2.537, allocations: 437 MB / 0.7107 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 63.91 kB / 0.8694 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6315/0.6327, allocations: 151.6 MB / 1.017 GB, free: 2.742 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001941/0.6347, allocations: 0.742 MB / 1.018 GB, free: 1.996 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.6361, allocations: 1.191 MB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.904e-05/0.6362, allocations: 0 / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.626e-05/0.6362, allocations: 0 / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.039e-05/0.6363, allocations: 11.92 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000632/0.637, allocations: 215.7 kB / 1.02 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.6372, allocations: 191.6 kB / 1.02 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.911e-05/0.6373, allocations: 8 kB / 1.02 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.929e-05/0.6374, allocations: 67.89 kB / 1.02 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.414e-05/0.6375, allocations: 51.86 kB / 1.02 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.95e-05/0.6375, allocations: 16 kB / 1.02 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.378e-05/0.6376, allocations: 35.98 kB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.338e-05/0.6376, allocations: 15.92 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.43e-05/0.6377, allocations: 59.88 kB / 1.02 GB, free: 140 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001555/0.6379, allocations: 103.8 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.6379, allocations: 7.938 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.502e-06/0.6379, allocations: 0 / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.6379, allocations: 0 / 1.02 GB, free: 28 kB / 0.7637 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.0005171/0.6384, allocations: 440.7 kB / 1.021 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.6385, allocations: 11.97 kB / 1.021 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.816e-05/0.6385, allocations: 16.84 kB / 1.021 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.6386, allocations: 176.2 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.6387, allocations: 4.375 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.6387, allocations: 16.36 kB / 1.021 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.6388, allocations: 49.81 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.6388, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.6389, allocations: 3.984 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.6389, allocations: 4 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.537e-05/0.6389, allocations: 8 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.6394, allocations: 364.6 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.889e-05/0.6395, allocations: 34.52 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.349e-05/0.6395, allocations: 24.94 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.234e-06/0.6395, allocations: 0 / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001552/0.6397, allocations: 103.3 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.6397, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0002675/0.64, allocations: 125.5 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.64, allocations: 55.41 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.286e-05/0.6401, allocations: 117.8 kB / 1.022 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.6402, allocations: 37.69 kB / 1.022 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.154e-05/0.6402, allocations: 88.38 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.6403, allocations: 19.75 kB / 1.022 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.368e-05/0.6404, allocations: 49.69 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.6405, allocations: 330.8 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.6406, allocations: 63.91 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.6408, allocations: 108.5 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.641, allocations: 185.3 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.641, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004299/0.6414, allocations: 277.2 kB / 1.023 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.642e-05/0.6415, allocations: 71.39 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.6415, allocations: 4.156 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.6415, allocations: 4 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.137e-05/0.6416, allocations: 15.86 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.6416, allocations: 3.984 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003617/0.642, allocations: 55.84 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.642, allocations: 15.98 kB / 1.023 GB, free: 12.89 MB / 0.7794 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.0001094/0.6421, allocations: 133.5 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.6421, allocations: 4 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.6422, allocations: 16.36 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.6422, allocations: 0 / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6422, allocations: 4 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.6422, allocations: 0 / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003135/0.6425, allocations: 366.3 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.6425, allocations: 0 / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-05/0.6425, allocations: 7.938 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.6425, allocations: 4 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.6426, allocations: 3.984 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.6426, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.6426, allocations: 3.938 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.6427, allocations: 199.5 kB / 1.024 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-05/0.6428, allocations: 81.02 kB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.025e-05/0.6428, allocations: 3.984 kB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.466e-05/0.6429, allocations: 8 kB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.6429, allocations: 11.94 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.6429, allocations: 3.984 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.808e-05/0.643, allocations: 95.22 kB / 1.024 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.643, allocations: 192 / 1.024 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000294/0.6433, allocations: 35.98 kB / 1.024 GB, free: 11.83 MB / 0.7794 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.0001334/0.6434, allocations: 103.2 kB / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003499/0.6438, allocations: 270.7 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.6438, allocations: 0 / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.397e-05/0.6439, allocations: 35.94 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.6442, allocations: 15.97 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003465/0.6445, allocations: 212.5 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.6448, allocations: 0.6885 MB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.022e-05/0.6448, allocations: 11.44 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6448, allocations: 0 / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of Templates: time 0.002886/0.6477, allocations: 1.483 MB / 1.027 GB, free: 8.941 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches