Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.775/1.775, allocations: 306.1 MB / 321.4 MB, free: 10.75 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 175.1 kB / 393.1 MB, free: 4.086 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.678/1.678, allocations: 225.7 MB / 0.6743 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000792/0.000792, allocations: 89.36 kB / 0.7935 GB, free: 40.07 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000407/0.000407, allocations: 8 kB / 0.9224 GB, free: 8.668 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7342/0.7346, allocations: 121.3 MB / 1.041 GB, free: 58.31 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0009903/0.7357, allocations: 413 kB / 1.041 GB, free: 58.1 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.7372, allocations: 1.426 MB / 1.043 GB, free: 56.96 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.482e-05/0.7372, allocations: 0 / 1.043 GB, free: 56.96 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.702e-05/0.7373, allocations: 0 / 1.043 GB, free: 56.96 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.861e-05/0.7374, allocations: 18.64 kB / 1.043 GB, free: 56.94 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006845/0.7381, allocations: 201.7 kB / 1.043 GB, free: 56.85 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.7382, allocations: 155.9 kB / 1.043 GB, free: 56.79 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.7384, allocations: 11.36 kB / 1.043 GB, free: 56.79 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.7385, allocations: 59.36 kB / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.7386, allocations: 53.98 kB / 1.043 GB, free: 56.75 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.946e-05/0.7386, allocations: 8.812 kB / 1.043 GB, free: 56.75 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.739e-05/0.7387, allocations: 19.8 kB / 1.043 GB, free: 56.75 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.325e-05/0.7387, allocations: 11.27 kB / 1.043 GB, free: 56.74 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.7389, allocations: 79.33 kB / 1.043 GB, free: 56.69 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.7391, allocations: 141.9 kB / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.7391, allocations: 2.281 kB / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7391, allocations: 0 / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.7391, allocations: 6.094 kB / 1.043 GB, free: 56.65 MB / 0.698 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.0005033/0.7396, allocations: 414.6 kB / 1.044 GB, free: 56.21 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.7397, allocations: 14.16 kB / 1.044 GB, free: 56.21 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.316e-05/0.7397, allocations: 6.156 kB / 1.044 GB, free: 56.21 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.275e-05/0.7398, allocations: 176.5 kB / 1.044 GB, free: 56.01 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.7399, allocations: 10.98 kB / 1.044 GB, free: 56 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/0.7399, allocations: 10.5 kB / 1.044 GB, free: 56 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.74, allocations: 51.7 kB / 1.044 GB, free: 55.96 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.74, allocations: 0 / 1.044 GB, free: 55.96 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.74, allocations: 3.188 kB / 1.044 GB, free: 55.96 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.74, allocations: 0 / 1.044 GB, free: 55.96 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.916e-05/0.7401, allocations: 16.14 kB / 1.044 GB, free: 55.96 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004847/0.7406, allocations: 358.1 kB / 1.044 GB, free: 55.65 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.184e-05/0.7407, allocations: 42.08 kB / 1.044 GB, free: 55.62 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.739e-05/0.7407, allocations: 19.17 kB / 1.044 GB, free: 55.61 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-06/0.7407, allocations: 1.172 kB / 1.044 GB, free: 55.61 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001835/0.7409, allocations: 98.06 kB / 1.045 GB, free: 55.54 MB / 0.698 GB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.7409, allocations: 0 / 1.045 GB, free: 55.54 MB / 0.698 GB Notification: Performance of matching and sorting (n=9): time 0.0002924/0.7412, allocations: 122.2 kB / 1.045 GB, free: 55.48 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.7413, allocations: 60.12 kB / 1.045 GB, free: 55.41 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.895e-05/0.7414, allocations: 118.4 kB / 1.045 GB, free: 55.31 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.7414, allocations: 30.58 kB / 1.045 GB, free: 55.28 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.811e-05/0.7414, allocations: 94.77 kB / 1.045 GB, free: 55.19 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.7415, allocations: 26.36 kB / 1.045 GB, free: 55.17 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.855e-05/0.7415, allocations: 5.375 kB / 1.045 GB, free: 55.17 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.033e-05/0.7416, allocations: 321.6 kB / 1.045 GB, free: 54.85 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.7417, allocations: 59.7 kB / 1.045 GB, free: 54.83 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.7418, allocations: 108.7 kB / 1.045 GB, free: 54.75 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.742, allocations: 191.8 kB / 1.046 GB, free: 54.59 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.742, allocations: 0 / 1.046 GB, free: 54.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003976/0.7424, allocations: 277.2 kB / 1.046 GB, free: 54.43 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.683e-05/0.7425, allocations: 76.78 kB / 1.046 GB, free: 54.36 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.7425, allocations: 7.875 kB / 1.046 GB, free: 54.36 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.7425, allocations: 3.25 kB / 1.046 GB, free: 54.36 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.917e-05/0.7426, allocations: 7.125 kB / 1.046 GB, free: 54.35 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.7426, allocations: 1.688 kB / 1.046 GB, free: 54.35 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/0.7429, allocations: 80.64 kB / 1.046 GB, free: 54.35 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.179e-05/0.743, allocations: 14.53 kB / 1.046 GB, free: 54.34 MB / 0.698 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 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * 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 8.746e-05/0.7431, allocations: 129.3 kB / 1.046 GB, free: 54.22 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.7431, allocations: 9.781 kB / 1.046 GB, free: 54.21 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.421e-05/0.7431, allocations: 11.19 kB / 1.046 GB, free: 54.21 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.7431, allocations: 5.359 kB / 1.046 GB, free: 54.21 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.7431, allocations: 3.812 kB / 1.046 GB, free: 54.21 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.7431, allocations: 0 / 1.046 GB, free: 54.21 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.7434, allocations: 358.1 kB / 1.047 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.7434, allocations: 0 / 1.047 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.003e-05/0.7435, allocations: 1.125 kB / 1.047 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.7435, allocations: 0 / 1.047 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.7435, allocations: 3.484 kB / 1.047 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.7435, allocations: 1.219 kB / 1.047 GB, free: 53.88 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.7435, allocations: 7.938 kB / 1.047 GB, free: 53.87 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001725/0.7437, allocations: 201.7 kB / 1.047 GB, free: 53.71 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.667e-05/0.7437, allocations: 89.95 kB / 1.047 GB, free: 53.61 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.7437, allocations: 5.031 kB / 1.047 GB, free: 53.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.933e-05/0.7438, allocations: 0.6094 kB / 1.047 GB, free: 53.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.07e-05/0.7438, allocations: 11.28 kB / 1.047 GB, free: 53.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.7438, allocations: 2.438 kB / 1.047 GB, free: 53.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.891e-05/0.7439, allocations: 100.9 kB / 1.047 GB, free: 53.52 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7439, allocations: 0 / 1.047 GB, free: 53.52 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002489/0.7441, allocations: 35.94 kB / 1.047 GB, free: 53.51 MB / 0.698 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.0001456/0.7443, allocations: 118.9 kB / 1.047 GB, free: 53.41 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003214/0.7446, allocations: 257.7 kB / 1.047 GB, free: 53.23 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.7446, allocations: 0 / 1.047 GB, free: 53.23 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 5.712e-05/0.7447, allocations: 35.97 kB / 1.047 GB, free: 53.22 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.745, allocations: 18.42 kB / 1.047 GB, free: 53.21 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003212/0.7453, allocations: 184.3 kB / 1.048 GB, free: 53.07 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.7455, allocations: 0.6958 MB / 1.048 GB, free: 52.37 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.677e-05/0.7455, allocations: 5.469 kB / 1.048 GB, free: 52.37 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.836e-05/0.7455, allocations: 11.42 kB / 1.048 GB, free: 52.36 MB / 0.698 GB Notification: Performance of SimCode: time 3.01e-07/0.7455, allocations: 0 / 1.048 GB, free: 52.36 MB / 0.698 GB Notification: Performance of Templates: time 0.004137/0.7497, allocations: 1.823 MB / 1.05 GB, free: 52.2 MB / 0.698 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 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)