Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/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 8.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.666/1.666, allocations: 297.4 MB / 312.6 MB, free: 2.957 MB / 234.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.001025/0.001025, allocations: 186 kB / 382.3 MB, free: 14.84 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.681/1.681, allocations: 225.7 MB / 0.6617 GB, free: 7.195 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008508/0.0008509, allocations: 91.3 kB / 0.7789 GB, free: 46.95 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003944/0.0003945, allocations: 12 kB / 0.9059 GB, free: 4.91 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8339/0.8343, allocations: 119.2 MB / 1.022 GB, free: 58.3 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.00106/0.8354, allocations: 409.4 kB / 1.023 GB, free: 58.14 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001686/0.8371, allocations: 1.43 MB / 1.024 GB, free: 57.24 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.72e-05/0.8371, allocations: 1.25 kB / 1.024 GB, free: 57.24 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.979e-05/0.8372, allocations: 4.734 kB / 1.024 GB, free: 57.24 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 8.709e-05/0.8373, allocations: 10.42 kB / 1.024 GB, free: 57.23 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007496/0.838, allocations: 202.5 kB / 1.024 GB, free: 57.18 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.8383, allocations: 156.2 kB / 1.024 GB, free: 57.13 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.8384, allocations: 12.53 kB / 1.024 GB, free: 57.12 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.8385, allocations: 63.77 kB / 1.024 GB, free: 57.11 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.8386, allocations: 41.84 kB / 1.025 GB, free: 57.1 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.8387, allocations: 13.62 kB / 1.025 GB, free: 57.09 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.63e-05/0.8388, allocations: 24.72 kB / 1.025 GB, free: 57.09 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.8388, allocations: 6.406 kB / 1.025 GB, free: 57.09 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.8389, allocations: 85.56 kB / 1.025 GB, free: 57.04 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.8392, allocations: 147 kB / 1.025 GB, free: 57 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.8392, allocations: 1.031 kB / 1.025 GB, free: 57 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.276e-06/0.8392, allocations: 0 / 1.025 GB, free: 57 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.8392, allocations: 0 / 1.025 GB, free: 57 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.0004902/0.8397, allocations: 413 kB / 1.025 GB, free: 56.57 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.8398, allocations: 9.625 kB / 1.025 GB, free: 56.57 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.322e-05/0.8399, allocations: 8.625 kB / 1.025 GB, free: 56.57 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.315e-05/0.84, allocations: 177.2 kB / 1.025 GB, free: 56.36 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.84, allocations: 11.19 kB / 1.025 GB, free: 56.36 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.84, allocations: 10.3 kB / 1.025 GB, free: 56.36 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.8402, allocations: 49.02 kB / 1.025 GB, free: 56.32 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.8402, allocations: 192 / 1.025 GB, free: 56.32 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.8402, allocations: 5.562 kB / 1.025 GB, free: 56.32 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.8402, allocations: 4.109 kB / 1.025 GB, free: 56.32 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.378e-05/0.8403, allocations: 20.36 kB / 1.025 GB, free: 56.31 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006221/0.8409, allocations: 353.5 kB / 1.026 GB, free: 56.01 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.976e-05/0.841, allocations: 40.77 kB / 1.026 GB, free: 55.97 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.324e-05/0.8411, allocations: 21.2 kB / 1.026 GB, free: 55.96 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.8411, allocations: 1.062 kB / 1.026 GB, free: 55.96 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.8413, allocations: 96.92 kB / 1.026 GB, free: 55.89 MB / 0.698 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.8413, allocations: 0 / 1.026 GB, free: 55.89 MB / 0.698 GB Notification: Performance of matching and sorting (n=9): time 0.0003109/0.8416, allocations: 122.8 kB / 1.026 GB, free: 55.84 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.8417, allocations: 59.64 kB / 1.026 GB, free: 55.77 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.984e-05/0.8418, allocations: 122.3 kB / 1.026 GB, free: 55.66 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.8418, allocations: 30.84 kB / 1.026 GB, free: 55.63 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.499e-05/0.8419, allocations: 91.55 kB / 1.026 GB, free: 55.54 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.8419, allocations: 23.28 kB / 1.026 GB, free: 55.52 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.842, allocations: 7.797 kB / 1.026 GB, free: 55.52 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.671e-05/0.842, allocations: 315.7 kB / 1.027 GB, free: 55.21 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.8422, allocations: 63.38 kB / 1.027 GB, free: 55.19 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.8424, allocations: 112.3 kB / 1.027 GB, free: 55.11 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.8426, allocations: 190.7 kB / 1.027 GB, free: 54.95 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.8426, allocations: 0 / 1.027 GB, free: 54.95 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004151/0.8431, allocations: 276.6 kB / 1.027 GB, free: 54.79 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/0.8431, allocations: 73.94 kB / 1.027 GB, free: 54.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.8431, allocations: 4.922 kB / 1.027 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.8432, allocations: 4.438 kB / 1.027 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.762e-05/0.8432, allocations: 10.45 kB / 1.027 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.8433, allocations: 3.688 kB / 1.027 GB, free: 54.71 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.8437, allocations: 76.06 kB / 1.027 GB, free: 54.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/0.8437, allocations: 15.28 kB / 1.028 GB, free: 54.7 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 0.0001275/0.8439, allocations: 134.6 kB / 1.028 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.415e-05/0.8439, allocations: 6.344 kB / 1.028 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.924e-05/0.8439, allocations: 12.56 kB / 1.028 GB, free: 54.56 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.844, allocations: 0.8125 kB / 1.028 GB, free: 54.56 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.844, allocations: 0 / 1.028 GB, free: 54.56 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.844, allocations: 1.938 kB / 1.028 GB, free: 54.56 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004181/0.8444, allocations: 358.7 kB / 1.028 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.8444, allocations: 4 kB / 1.028 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.384e-05/0.8444, allocations: 4.984 kB / 1.028 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.8444, allocations: 0.5625 kB / 1.028 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.8445, allocations: 2.594 kB / 1.028 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.8445, allocations: 1.375 kB / 1.028 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.8445, allocations: 0 / 1.028 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.8447, allocations: 206.1 kB / 1.028 GB, free: 54.06 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.431e-05/0.8448, allocations: 83.17 kB / 1.028 GB, free: 53.96 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.762e-05/0.8448, allocations: 10.08 kB / 1.028 GB, free: 53.96 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.932e-05/0.8449, allocations: 2.641 kB / 1.028 GB, free: 53.96 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/0.8449, allocations: 5.469 kB / 1.028 GB, free: 53.96 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.845, allocations: 4.875 kB / 1.028 GB, free: 53.96 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.503e-05/0.845, allocations: 94.05 kB / 1.028 GB, free: 53.88 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8451, allocations: 0 / 1.028 GB, free: 53.88 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003187/0.8454, allocations: 37.88 kB / 1.028 GB, free: 53.87 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.0002257/0.8456, allocations: 118.2 kB / 1.029 GB, free: 53.77 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004154/0.846, allocations: 254.7 kB / 1.029 GB, free: 53.59 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.846, allocations: 0 / 1.029 GB, free: 53.59 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 7.018e-05/0.8461, allocations: 36.06 kB / 1.029 GB, free: 53.58 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.8465, allocations: 13.14 kB / 1.029 GB, free: 53.58 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004995/0.847, allocations: 198 kB / 1.029 GB, free: 53.42 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.8472, allocations: 0.6898 MB / 1.03 GB, free: 52.73 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.626e-05/0.8473, allocations: 3.422 kB / 1.03 GB, free: 52.72 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.537e-05/0.8473, allocations: 11.56 kB / 1.03 GB, free: 52.72 MB / 0.698 GB Notification: Performance of SimCode: time 2.1e-07/0.8473, allocations: 1.312 kB / 1.03 GB, free: 52.72 MB / 0.698 GB Notification: Performance of Templates: time 0.005518/0.8528, allocations: 1.835 MB / 1.032 GB, free: 52.56 MB / 0.698 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)