Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001116/0.001116, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001157/0.001157, allocations: 194.9 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.784/1.784, allocations: 292.2 MB / 0.5485 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001693, allocations: 71.47 kB / 0.671 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3468, allocations: 114.5 MB / 0.7829 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002649/0.3495, allocations: 0.7389 MB / 0.7836 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00182/0.3513, allocations: 1.196 MB / 0.7848 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.53e-05/0.3514, allocations: 0 / 0.7848 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.542e-05/0.3515, allocations: 3.938 kB / 0.7848 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.932e-05/0.3516, allocations: 15.91 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007011/0.3523, allocations: 197.8 kB / 0.785 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.3525, allocations: 183.7 kB / 0.7851 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.3527, allocations: 19.98 kB / 0.7852 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.3528, allocations: 63.89 kB / 0.7852 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.3529, allocations: 59.78 kB / 0.7853 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.949e-05/0.353, allocations: 19.94 kB / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.3531, allocations: 28 kB / 0.7853 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.401e-05/0.3531, allocations: 11.98 kB / 0.7853 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.3532, allocations: 67.75 kB / 0.7854 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.3535, allocations: 155.9 kB / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.984e-06/0.3535, allocations: 0 / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.625e-06/0.3535, allocations: 4 kB / 0.7856 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.3535, allocations: 0 / 0.7856 GB, free: 11.12 MB / 0.6075 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.0006751/0.3542, allocations: 441.1 kB / 0.786 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.3543, allocations: 8.031 kB / 0.786 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.264e-05/0.3544, allocations: 12.84 kB / 0.786 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.3545, allocations: 172.3 kB / 0.7862 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.3546, allocations: 4.375 kB / 0.7862 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.3546, allocations: 12.36 kB / 0.7862 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.3548, allocations: 50.25 kB / 0.7862 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3548, allocations: 4.188 kB / 0.7862 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.3548, allocations: 7.922 kB / 0.7862 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.3548, allocations: 4 kB / 0.7862 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.764e-05/0.3549, allocations: 15.94 kB / 0.7863 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006067/0.3555, allocations: 360.6 kB / 0.7866 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.234e-05/0.3556, allocations: 34.52 kB / 0.7866 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.399e-05/0.3556, allocations: 20.94 kB / 0.7866 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.3556, allocations: 0 / 0.7866 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.3559, allocations: 95.3 kB / 0.7867 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.884e-06/0.3559, allocations: 0 / 0.7867 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0003534/0.3562, allocations: 125.5 kB / 0.7869 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.3563, allocations: 51.41 kB / 0.7869 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.566e-05/0.3564, allocations: 122.2 kB / 0.787 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.3564, allocations: 41.69 kB / 0.7871 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.588e-05/0.3565, allocations: 92.28 kB / 0.7872 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.3566, allocations: 19.8 kB / 0.7872 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.367e-05/0.3567, allocations: 53.62 kB / 0.7872 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3568, allocations: 322.8 kB / 0.7875 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.3569, allocations: 59.97 kB / 0.7876 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.3571, allocations: 113.9 kB / 0.7877 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.3573, allocations: 181.3 kB / 0.7879 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3573, allocations: 4 kB / 0.7879 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004397/0.3578, allocations: 276.8 kB / 0.7881 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.923e-05/0.3579, allocations: 73.98 kB / 0.7882 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3579, allocations: 4 kB / 0.7882 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3579, allocations: 3.938 kB / 0.7882 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.507e-05/0.3579, allocations: 7.984 kB / 0.7882 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.358, allocations: 4 kB / 0.7882 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003377/0.3583, allocations: 60.03 kB / 0.7883 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.3584, allocations: 19.98 kB / 0.7883 GB, free: 7.98 MB / 0.6075 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.0001184/0.3585, allocations: 130.4 kB / 0.7884 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.3585, allocations: 7.906 kB / 0.7884 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.877e-05/0.3585, allocations: 12.45 kB / 0.7884 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3585, allocations: 7.984 kB / 0.7885 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3586, allocations: 4 kB / 0.7885 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.3586, allocations: 0 / 0.7885 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003785/0.3589, allocations: 358.5 kB / 0.7888 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.359, allocations: 0 / 0.7888 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.727e-06/0.359, allocations: 0 / 0.7888 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.359, allocations: 0 / 0.7888 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.359, allocations: 7.984 kB / 0.7888 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.359, allocations: 0 / 0.7888 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.359, allocations: 0 / 0.7888 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000197/0.3592, allocations: 207.3 kB / 0.789 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.3593, allocations: 85.02 kB / 0.7891 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.3593, allocations: 3.984 kB / 0.7891 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.92e-05/0.3593, allocations: 0 / 0.7891 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.3594, allocations: 8 kB / 0.7891 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.3594, allocations: 7.984 kB / 0.7891 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.614e-05/0.3595, allocations: 91.22 kB / 0.7892 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3595, allocations: 0 / 0.7892 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002741/0.3598, allocations: 39.98 kB / 0.7892 GB, free: 6.93 MB / 0.6075 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.0001923/0.36, allocations: 107.2 kB / 0.7893 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004229/0.3604, allocations: 254.7 kB / 0.7896 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3604, allocations: 3.938 kB / 0.7896 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.739e-05/0.3605, allocations: 32 kB / 0.7896 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.3608, allocations: 23.33 kB / 0.7896 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004065/0.3612, allocations: 190.4 kB / 0.7898 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.3615, allocations: 0.6923 MB / 0.7905 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.918e-05/0.3615, allocations: 12.67 kB / 0.7905 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.126e-05/0.3616, allocations: 11.44 kB / 0.7905 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.3616, allocations: 0 / 0.7905 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of Templates: time 0.004554/0.3661, allocations: 1.906 MB / 0.7924 GB, free: 3.645 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)