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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.006137/0.006137, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001425/0.001425, allocations: 193.5 kB / 16.79 MB, free: 5.809 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.365/1.365, allocations: 222.9 MB / 240.5 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.653/2.653, allocations: 437 MB / 0.7106 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002343/0.002344, allocations: 59.91 kB / 0.8692 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7794/0.7817, allocations: 151.6 MB / 1.017 GB, free: 2.785 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002411/0.7842, allocations: 0.7342 MB / 1.018 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001808/0.786, allocations: 1.226 MB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.21e-05/0.7861, allocations: 3.938 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.03e-05/0.7862, allocations: 3.938 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.01e-05/0.7863, allocations: 11.91 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006987/0.787, allocations: 203.4 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.7872, allocations: 151.8 kB / 1.02 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.7873, allocations: 8 kB / 1.02 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.7874, allocations: 67.81 kB / 1.02 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.7876, allocations: 47.88 kB / 1.02 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.912e-05/0.7876, allocations: 8 kB / 1.02 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.7877, allocations: 23.98 kB / 1.02 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.521e-05/0.7877, allocations: 15.91 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.7878, allocations: 51.83 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.788, allocations: 115.8 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.788, allocations: 0 / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of FrontEnd: time 7.91e-07/0.788, allocations: 0 / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.7881, allocations: 0 / 1.02 GB, free: 112 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.0006209/0.7887, allocations: 442.1 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.7887, allocations: 8.031 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.797e-05/0.7888, allocations: 12.84 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.789, allocations: 176.2 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.789, allocations: 4.375 kB / 1.021 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/0.7891, allocations: 16.3 kB / 1.021 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.7892, allocations: 57.81 kB / 1.021 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.7892, allocations: 0 / 1.021 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.7892, allocations: 3.984 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.7893, allocations: 0 / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.006e-05/0.7893, allocations: 12 kB / 1.021 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005805/0.7899, allocations: 372.6 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.011e-05/0.79, allocations: 38.52 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.011e-05/0.79, allocations: 16.94 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.79, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.7903, allocations: 91.36 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.7903, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0003177/0.7906, allocations: 129.4 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.7907, allocations: 55.34 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.7908, allocations: 129.7 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.579e-05/0.7908, allocations: 33.7 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.858e-05/0.7909, allocations: 92.36 kB / 1.022 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.7909, allocations: 23.73 kB / 1.022 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.831e-05/0.791, allocations: 49.69 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.7912, allocations: 326.8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.7913, allocations: 59.97 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.7915, allocations: 110 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/0.7917, allocations: 185.3 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.7917, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004847/0.7922, allocations: 276.8 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.351e-05/0.7923, allocations: 67.39 kB / 1.023 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.7923, allocations: 4 kB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.7923, allocations: 4 kB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.595e-05/0.7924, allocations: 7.984 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.096e-06/0.7924, allocations: 4.094 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.7928, allocations: 59.84 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.7928, allocations: 15.98 kB / 1.023 GB, free: 12.97 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.0001222/0.7929, allocations: 129.3 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.7929, allocations: 4 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.793, allocations: 12.38 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.793, allocations: 7.984 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.793, allocations: 4 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.793, allocations: 0 / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003506/0.7934, allocations: 362.3 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.7934, allocations: 480 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.188e-05/0.7934, allocations: 3.938 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.7934, allocations: 0 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.7934, allocations: 7.984 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.7934, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.7934, allocations: 11.81 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001952/0.7936, allocations: 191.5 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.952e-05/0.7937, allocations: 85.02 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.7937, allocations: 3.984 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.296e-05/0.7938, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.7938, allocations: 11.94 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.7938, allocations: 7.984 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.828e-05/0.7939, allocations: 91.28 kB / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7939, allocations: 0 / 1.024 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003032/0.7942, allocations: 39.98 kB / 1.024 GB, free: 11.92 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.0001674/0.7944, allocations: 103.3 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003783/0.7948, allocations: 258.6 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.7948, allocations: 0 / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.599e-05/0.7949, allocations: 36.3 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.7952, allocations: 19.98 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004269/0.7956, allocations: 207.5 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.7959, allocations: 0.7003 MB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.433e-05/0.796, allocations: 11.44 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.796, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of Templates: time 0.003567/0.7995, allocations: 1.481 MB / 1.026 GB, free: 9.031 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