Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009269/0.009269, allocations: 101.4 kB / 15.73 MB, free: 6.055 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.002098/0.002097, allocations: 203.2 kB / 16.68 MB, free: 5.969 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.466/2.466, allocations: 390.2 MB / 0.6648 GB, free: 120 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 64.27 kB / 0.9508 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3352, allocations: 140.4 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001891/0.3371, allocations: 0.6774 MB / 1.089 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001626/0.3388, allocations: 1.204 MB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.274e-05/0.3389, allocations: 4 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.3389, allocations: 7.922 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.267e-05/0.339, allocations: 11.86 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006995/0.3397, allocations: 221.4 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003052/0.34, allocations: 191.6 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.3402, allocations: 8 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.3403, allocations: 75.81 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.3404, allocations: 67.83 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.3405, allocations: 16 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.046e-05/0.3406, allocations: 27.98 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.062e-05/0.3406, allocations: 11.94 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.316e-05/0.3407, allocations: 63.81 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002318/0.3409, allocations: 155.6 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.341, allocations: 0 / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.164e-06/0.341, allocations: 0 / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.341, allocations: 4 kB / 1.091 GB, free: 14.75 MB / 0.8575 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.00066/0.3416, allocations: 434.8 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.3417, allocations: 8.031 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.491e-05/0.3418, allocations: 12.84 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.3419, allocations: 176.3 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.3419, allocations: 4.375 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/0.342, allocations: 16.36 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.3421, allocations: 57.55 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3421, allocations: 0 / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.3422, allocations: 7.938 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.3422, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.048e-05/0.3422, allocations: 11.98 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005734/0.3428, allocations: 356.7 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.3429, allocations: 46.5 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.93e-05/0.343, allocations: 8.859 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.343, allocations: 8 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.3432, allocations: 99.28 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.704e-06/0.3432, allocations: 0 / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0003221/0.3435, allocations: 117.6 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.3436, allocations: 59.41 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.3437, allocations: 125.7 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/0.3437, allocations: 29.7 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.077e-05/0.3438, allocations: 92.38 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.3438, allocations: 23.78 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.996e-05/0.344, allocations: 53.69 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3441, allocations: 318.8 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.3443, allocations: 63.95 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.3445, allocations: 108.4 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002486/0.3447, allocations: 189.3 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3447, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004632/0.3452, allocations: 284.8 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.942e-05/0.3453, allocations: 71.39 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3453, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.3453, allocations: 4 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.714e-05/0.3454, allocations: 4 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.3454, allocations: 3.938 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.3457, allocations: 59.94 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.3458, allocations: 19.98 kB / 1.093 GB, free: 11.62 MB / 0.8575 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.0001289/0.3459, allocations: 125.7 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.588e-05/0.3459, allocations: 7.906 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.346, allocations: 12.36 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.346, allocations: 4 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.346, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.346, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003588/0.3464, allocations: 366.8 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3464, allocations: 0 / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.23e-05/0.3464, allocations: 3.938 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.3464, allocations: 7.984 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.3464, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.3464, allocations: 4 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3464, allocations: 3.938 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.3466, allocations: 191.5 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.3467, allocations: 89.02 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.3467, allocations: 3.984 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.667e-05/0.3468, allocations: 8 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.3468, allocations: 3.938 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.3468, allocations: 7.984 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.416e-05/0.3469, allocations: 87.28 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3469, allocations: 0 / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000285/0.3472, allocations: 39.98 kB / 1.094 GB, free: 10.57 MB / 0.8575 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.0002011/0.3474, allocations: 103.2 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003995/0.3478, allocations: 258.8 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3478, allocations: 0 / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.965e-05/0.3479, allocations: 32 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.3482, allocations: 16.36 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.3486, allocations: 190.6 kB / 1.095 GB, free: 9.926 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.3489, allocations: 0.6885 MB / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.971e-05/0.349, allocations: 8.75 kB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.034e-05/0.349, allocations: 11.44 kB / 1.096 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of SimCode: time 3.1e-07/0.349, allocations: 3.938 kB / 1.096 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of Templates: time 0.004794/0.3538, allocations: 1.92 MB / 1.097 GB, free: 7.293 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches