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.001206/0.001207, 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.001225/0.001225, allocations: 192.2 kB / 16.14 MB, free: 6.645 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.401/1.401, allocations: 222.9 MB / 239.8 MB, free: 4.586 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.511/2.511, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 71.81 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.77/0.7713, allocations: 140.3 MB / 0.9489 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.002365/0.7737, allocations: 0.7451 MB / 0.9497 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001704/0.7754, allocations: 1.21 MB / 0.9508 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.48e-05/0.7755, allocations: 0 / 0.9508 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.093e-05/0.7756, allocations: 9.516 kB / 0.9508 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.189e-05/0.7756, allocations: 11.92 kB / 0.9509 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000712/0.7764, allocations: 201.2 kB / 0.9511 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001721/0.7765, allocations: 155.2 kB / 0.9512 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.7767, allocations: 13.48 kB / 0.9512 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.7768, allocations: 60.94 kB / 0.9513 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.241e-05/0.7769, allocations: 57.53 kB / 0.9513 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.923e-05/0.7769, allocations: 9.688 kB / 0.9513 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.831e-05/0.777, allocations: 18.38 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.7771, allocations: 12.14 kB / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.078e-05/0.7771, allocations: 55.59 kB / 0.9514 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.7774, allocations: 150.1 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.7774, allocations: 0.9688 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.61e-07/0.7774, allocations: 0 / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.7774, allocations: 0 / 0.9516 GB, free: 7.121 MB / 0.7169 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.0004837/0.7779, allocations: 440.6 kB / 0.952 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.7779, allocations: 9.688 kB / 0.952 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.572e-05/0.778, allocations: 11.94 kB / 0.952 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.677e-05/0.7781, allocations: 171 kB / 0.9522 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.7781, allocations: 9.344 kB / 0.9522 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.7782, allocations: 17.98 kB / 0.9522 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.7783, allocations: 48.44 kB / 0.9522 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.7783, allocations: 0 / 0.9522 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.7783, allocations: 3.984 kB / 0.9522 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.7783, allocations: 1.312 kB / 0.9522 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.958e-05/0.7784, allocations: 15.69 kB / 0.9523 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004823/0.7788, allocations: 363.3 kB / 0.9526 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.513e-05/0.7789, allocations: 37.64 kB / 0.9526 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.951e-05/0.779, allocations: 15.5 kB / 0.9527 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.671e-06/0.779, allocations: 4 kB / 0.9527 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001493/0.7791, allocations: 93.2 kB / 0.9527 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.7792, allocations: 0 / 0.9527 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002846/0.7794, allocations: 129.4 kB / 0.9529 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.7795, allocations: 57.81 kB / 0.9529 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.186e-05/0.7796, allocations: 115.5 kB / 0.953 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.7796, allocations: 34.41 kB / 0.9531 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.959e-05/0.7797, allocations: 93.88 kB / 0.9532 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.7797, allocations: 22.36 kB / 0.9532 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.135e-05/0.7798, allocations: 57.56 kB / 0.9532 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.091e-05/0.7798, allocations: 321.5 kB / 0.9535 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.78, allocations: 64.09 kB / 0.9536 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.7801, allocations: 111.9 kB / 0.9537 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.7803, allocations: 188.7 kB / 0.9539 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.7803, allocations: 0 / 0.9539 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004446/0.7808, allocations: 276.9 kB / 0.9542 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/0.7808, allocations: 68.55 kB / 0.9542 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.7809, allocations: 2.75 kB / 0.9542 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.7809, allocations: 5.281 kB / 0.9542 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.331e-05/0.7809, allocations: 13.11 kB / 0.9542 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.781, allocations: 2.281 kB / 0.9542 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003557/0.7813, allocations: 47.97 kB / 0.9543 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-05/0.7814, allocations: 18.42 kB / 0.9543 GB, free: 4.559 MB / 0.7169 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 8.819e-05/0.7814, allocations: 128.5 kB / 0.9544 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.715e-05/0.7815, allocations: 11.09 kB / 0.9544 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.901e-05/0.7815, allocations: 14.58 kB / 0.9544 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.7815, allocations: 0.8438 kB / 0.9544 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.7815, allocations: 0 / 0.9544 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.7815, allocations: 1.094 kB / 0.9545 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.7818, allocations: 365.8 kB / 0.9548 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7818, allocations: 0 / 0.9548 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.949e-06/0.7818, allocations: 2.219 kB / 0.9548 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.7818, allocations: 5.469 kB / 0.9548 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.7819, allocations: 5.297 kB / 0.9548 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.7819, allocations: 0 / 0.9548 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.7819, allocations: 3.938 kB / 0.9548 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.782, allocations: 201.2 kB / 0.955 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.288e-05/0.7821, allocations: 83.23 kB / 0.9551 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.7821, allocations: 4.953 kB / 0.9551 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.265e-05/0.7822, allocations: 5.156 kB / 0.9551 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.7822, allocations: 15.27 kB / 0.9551 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.7822, allocations: 11.2 kB / 0.9551 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.876e-05/0.7823, allocations: 92.7 kB / 0.9552 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7823, allocations: 0 / 0.9552 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002913/0.7826, allocations: 37.45 kB / 0.9552 GB, free: 3.66 MB / 0.7169 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.0001533/0.7827, allocations: 108.3 kB / 0.9553 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.7831, allocations: 256.5 kB / 0.9556 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7831, allocations: 4.125 kB / 0.9556 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.78e-05/0.7831, allocations: 32.84 kB / 0.9556 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.7834, allocations: 18.09 kB / 0.9556 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003344/0.7838, allocations: 180.7 kB / 0.9558 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.7839, allocations: 0.6896 MB / 0.9565 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.446e-05/0.784, allocations: 5.797 kB / 0.9565 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.106e-05/0.784, allocations: 19 kB / 0.9565 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.784, allocations: 0 / 0.9565 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of Templates: time 0.004677/0.7887, allocations: 1.824 MB / 0.9583 GB, free: 1.539 MB / 0.7169 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