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.007379/0.007379, allocations: 101 kB / 15.87 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.00196/0.00196, allocations: 197.1 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.39/1.39, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.786/2.786, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 65.09 kB / 0.8991 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3045, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002038/0.3066, allocations: 0.7356 MB / 1.053 GB, free: 7.516 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001607/0.3083, allocations: 1.233 MB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.929e-05/0.3083, allocations: 0 / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.351e-05/0.3084, allocations: 0 / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.98e-05/0.3085, allocations: 19.91 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000643/0.3091, allocations: 199.2 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.3093, allocations: 159.7 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.3094, allocations: 12 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.3096, allocations: 63.88 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.3097, allocations: 47.88 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.3097, allocations: 8 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.946e-05/0.3098, allocations: 23.98 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.377e-05/0.3099, allocations: 15.91 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.884e-05/0.31, allocations: 51.83 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.3101, allocations: 107.8 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3101, allocations: 0 / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3101, allocations: 0 / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.3102, allocations: 4 kB / 1.055 GB, free: 5.578 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.0005625/0.3107, allocations: 446.9 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3108, allocations: 12.03 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.436e-05/0.3108, allocations: 8.844 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.3109, allocations: 168.3 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.311, allocations: 4.375 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.311, allocations: 12.38 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.3111, allocations: 53.8 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3112, allocations: 0 / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.3112, allocations: 8 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.3112, allocations: 0 / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.248e-05/0.3112, allocations: 19.98 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005271/0.3118, allocations: 364.5 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.413e-05/0.3119, allocations: 38.52 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.182e-05/0.3119, allocations: 20.94 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.965e-06/0.3119, allocations: 4 kB / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001638/0.3121, allocations: 87.3 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 3.236e-06/0.3121, allocations: 0 / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002842/0.3124, allocations: 133.4 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.3124, allocations: 55.41 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.784e-05/0.3125, allocations: 117.8 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.3126, allocations: 33.7 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.786e-05/0.3127, allocations: 100.4 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.3127, allocations: 19.8 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.735e-05/0.3128, allocations: 49.69 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3129, allocations: 322.8 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.313, allocations: 59.97 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.3132, allocations: 114 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.3134, allocations: 177.3 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3134, allocations: 4 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004567/0.3139, allocations: 276.8 kB / 1.058 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.259e-05/0.314, allocations: 71.39 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.314, allocations: 0 / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.314, allocations: 4 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.215e-05/0.3141, allocations: 7.938 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.3141, allocations: 7.984 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/0.3144, allocations: 63.94 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/0.3145, allocations: 12.36 kB / 1.058 GB, free: 2.441 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.0001245/0.3146, allocations: 129.8 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.3146, allocations: 4 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.3147, allocations: 8.375 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3147, allocations: 3.938 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.3147, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3147, allocations: 12.02 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003284/0.315, allocations: 362.4 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3151, allocations: 0 / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.387e-05/0.3151, allocations: 8 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3151, allocations: 3.938 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.3151, allocations: 0 / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.3151, allocations: 3.984 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3151, allocations: 3.938 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001882/0.3153, allocations: 199.5 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.3153, allocations: 81.02 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.3154, allocations: 4 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.575e-05/0.3154, allocations: 3.984 kB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.595e-05/0.3155, allocations: 7.938 kB / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.3155, allocations: 8 kB / 1.059 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.536e-05/0.3156, allocations: 91.81 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3156, allocations: 0 / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003055/0.3159, allocations: 28 kB / 1.059 GB, free: 1.398 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.0001428/0.316, allocations: 113.1 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003483/0.3164, allocations: 258.6 kB / 1.059 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3164, allocations: 0 / 1.059 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.796e-05/0.3165, allocations: 40.09 kB / 1.059 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.3168, allocations: 25.97 kB / 1.059 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003501/0.3171, allocations: 205.8 kB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.3174, allocations: 0.6848 MB / 1.06 GB, free: 16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.424e-05/0.3174, allocations: 15.42 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3174, allocations: 4 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of Templates: time 0.003216/0.3206, allocations: 1.478 MB / 1.062 GB, free: 14.51 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/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