Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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_1.6_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.001212/0.001212, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001265/0.001265, allocations: 194.7 kB / 16.14 MB, free: 6.664 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.578/1.578, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.103/3.103, allocations: 472.6 MB / 0.7447 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.42 kB / 0.9114 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.412, allocations: 159.9 MB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002093/0.4141, allocations: 0.7378 MB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001641/0.4158, allocations: 1.225 MB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.486e-05/0.4158, allocations: 0 / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.182e-05/0.4159, allocations: 0 / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.245e-05/0.4159, allocations: 11.91 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006243/0.4166, allocations: 202.5 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.4167, allocations: 163.6 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.4169, allocations: 12 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.453e-05/0.417, allocations: 59.88 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.4171, allocations: 51.86 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.4171, allocations: 8 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.488e-05/0.4172, allocations: 23.98 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.141e-05/0.4172, allocations: 15.92 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.184e-05/0.4173, allocations: 51.81 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.4176, allocations: 143.7 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4176, allocations: 7.938 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.492e-06/0.4176, allocations: 4 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.4176, allocations: 4 kB / 1.07 GB, free: 8.238 MB / 0.8262 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.0005699/0.4182, allocations: 438.9 kB / 1.071 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.4182, allocations: 12.03 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.942e-05/0.4183, allocations: 8.938 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.4185, allocations: 172.2 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.4185, allocations: 12.36 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.4185, allocations: 8.375 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.4187, allocations: 57.8 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.4187, allocations: 8 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.4187, allocations: 0 / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.4187, allocations: 0 / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.329e-05/0.4188, allocations: 15.98 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005588/0.4193, allocations: 364.5 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.823e-05/0.4194, allocations: 30.58 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.398e-05/0.4195, allocations: 24.94 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-06/0.4195, allocations: 0 / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/0.4197, allocations: 95.2 kB / 1.071 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.4197, allocations: 4 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0003017/0.42, allocations: 121.5 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.42, allocations: 55.41 kB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.97e-05/0.4201, allocations: 113.8 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.4202, allocations: 41.7 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.102e-05/0.4203, allocations: 92.36 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.4203, allocations: 19.8 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.4204, allocations: 49.69 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4205, allocations: 322.8 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.4207, allocations: 60.34 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.4208, allocations: 116.4 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.4211, allocations: 181.3 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.4211, allocations: 4 kB / 1.072 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004601/0.4215, allocations: 280.7 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.227e-05/0.4216, allocations: 67.39 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.4216, allocations: 0 / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.4216, allocations: 4 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.412e-05/0.4217, allocations: 7.938 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.4217, allocations: 11.98 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/0.4221, allocations: 63.94 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.4221, allocations: 11.98 kB / 1.073 GB, free: 5.105 MB / 0.8262 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.0001142/0.4222, allocations: 130.5 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.4223, allocations: 7.906 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.4223, allocations: 4.375 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.4223, allocations: 3.938 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4223, allocations: 4 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.4223, allocations: 7.922 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003288/0.4227, allocations: 362.5 kB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.4227, allocations: 0 / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.083e-05/0.4227, allocations: 4 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4227, allocations: 0 / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.4227, allocations: 0 / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4227, allocations: 7.984 kB / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4227, allocations: 3.938 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001842/0.4229, allocations: 199.4 kB / 1.074 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.423, allocations: 77.11 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.423, allocations: 4 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.514e-05/0.4231, allocations: 4.172 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.4231, allocations: 11.94 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.4231, allocations: 7.938 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.603e-05/0.4232, allocations: 91.81 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4232, allocations: 4 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002751/0.4235, allocations: 35.91 kB / 1.074 GB, free: 4.055 MB / 0.8262 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.0001748/0.4237, allocations: 103.2 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003691/0.424, allocations: 258.8 kB / 1.074 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.424, allocations: 0 / 1.074 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.943e-05/0.4241, allocations: 35.92 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.4244, allocations: 20.72 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.4248, allocations: 180.2 kB / 1.074 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.4251, allocations: 0.6848 MB / 1.075 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.298e-05/0.4251, allocations: 16.64 kB / 1.075 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.95e-05/0.4251, allocations: 11.44 kB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of SimCode: time 4.2e-07/0.4251, allocations: 0 / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of Templates: time 0.004486/0.4296, allocations: 1.832 MB / 1.077 GB, free: 0.8633 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)