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.0008464/0.0008465, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006164/0.006164, allocations: 174.4 kB / 16.27 MB, free: 6.66 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.439/1.439, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.524/2.524, allocations: 390.9 MB / 0.6663 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005826/0.0005828, allocations: 12 kB / 0.816 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8707/0.8713, allocations: 142.4 MB / 0.9551 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0009503/0.8723, allocations: 408 kB / 0.9554 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001764/0.8741, allocations: 1.205 MB / 0.9566 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.959e-05/0.8742, allocations: 1.406 kB / 0.9566 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.906e-05/0.8742, allocations: 3.938 kB / 0.9566 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.908e-05/0.8743, allocations: 13.31 kB / 0.9566 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007286/0.8751, allocations: 205.6 kB / 0.9568 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.8753, allocations: 151.1 kB / 0.957 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.8754, allocations: 4.562 kB / 0.957 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.8755, allocations: 68.53 kB / 0.9571 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.8757, allocations: 54.14 kB / 0.9571 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.8757, allocations: 8.75 kB / 0.9571 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.746e-05/0.8758, allocations: 31.2 kB / 0.9571 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.636e-05/0.8758, allocations: 7.922 kB / 0.9571 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.674e-05/0.8759, allocations: 80.3 kB / 0.9572 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001938/0.8761, allocations: 135.3 kB / 0.9574 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.8762, allocations: 0 / 0.9574 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8762, allocations: 3.938 kB / 0.9574 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.8762, allocations: 0 / 0.9574 GB, free: 6.035 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.0004733/0.8766, allocations: 416.9 kB / 0.9578 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.8767, allocations: 9.5 kB / 0.9578 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.478e-05/0.8768, allocations: 12.81 kB / 0.9578 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.8769, allocations: 175.3 kB / 0.9579 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.8769, allocations: 5.031 kB / 0.9579 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.877, allocations: 9.219 kB / 0.958 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.8771, allocations: 59.67 kB / 0.958 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.8771, allocations: 0 / 0.958 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.8772, allocations: 1.469 kB / 0.958 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.8772, allocations: 0 / 0.958 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.091e-05/0.8772, allocations: 16.3 kB / 0.958 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006271/0.8778, allocations: 356 kB / 0.9584 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.878, allocations: 45.27 kB / 0.9584 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.348e-05/0.878, allocations: 19.98 kB / 0.9584 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.293e-06/0.878, allocations: 0 / 0.9584 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.8782, allocations: 96.41 kB / 0.9585 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.8782, allocations: 1.156 kB / 0.9585 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0004355/0.8787, allocations: 124.3 kB / 0.9586 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.8787, allocations: 54.16 kB / 0.9587 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.8789, allocations: 123.5 kB / 0.9588 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.082e-05/0.8789, allocations: 33.83 kB / 0.9588 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.879, allocations: 90.25 kB / 0.9589 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.8791, allocations: 30.38 kB / 0.959 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.794e-05/0.8791, allocations: 21.97 kB / 0.959 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.8792, allocations: 329.5 kB / 0.9593 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.8795, allocations: 64.91 kB / 0.9594 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.8797, allocations: 107.5 kB / 0.9595 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.88, allocations: 188.1 kB / 0.9596 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.88, allocations: 5.312 kB / 0.9596 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006418/0.8807, allocations: 276.5 kB / 0.9599 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.844e-05/0.8808, allocations: 68.27 kB / 0.96 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.8808, allocations: 5.531 kB / 0.96 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.886e-05/0.8808, allocations: 3.969 kB / 0.96 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.144e-05/0.8809, allocations: 6.609 kB / 0.96 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.8809, allocations: 6.438 kB / 0.96 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/0.8815, allocations: 77.3 kB / 0.9601 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-05/0.8816, allocations: 14.2 kB / 0.9601 GB, free: 3.48 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 0.0001436/0.8817, allocations: 124.8 kB / 0.9602 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.8818, allocations: 6.969 kB / 0.9602 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.8818, allocations: 13.64 kB / 0.9602 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.8818, allocations: 5.312 kB / 0.9602 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.8818, allocations: 0 / 0.9602 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.8818, allocations: 1.281 kB / 0.9602 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004104/0.8823, allocations: 356.8 kB / 0.9606 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.8823, allocations: 1.031 kB / 0.9606 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.475e-05/0.8823, allocations: 0.9062 kB / 0.9606 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.8823, allocations: 4.906 kB / 0.9606 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.8823, allocations: 10.02 kB / 0.9606 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.8823, allocations: 0 / 0.9606 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.8824, allocations: 8.938 kB / 0.9606 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.8826, allocations: 196.4 kB / 0.9608 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.8827, allocations: 86.83 kB / 0.9609 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.773e-05/0.8827, allocations: 5.953 kB / 0.9609 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.35e-05/0.8828, allocations: 1.219 kB / 0.9609 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.074e-05/0.8828, allocations: 7.156 kB / 0.9609 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.8829, allocations: 15.27 kB / 0.9609 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.367e-05/0.8829, allocations: 96.14 kB / 0.961 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8829, allocations: 3.938 kB / 0.961 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004173/0.8834, allocations: 32.39 kB / 0.961 GB, free: 2.59 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.000225/0.8836, allocations: 111.7 kB / 0.9611 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004495/0.8841, allocations: 257.5 kB / 0.9614 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.8841, allocations: 0 / 0.9614 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.703e-05/0.8841, allocations: 31.55 kB / 0.9614 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.8846, allocations: 21.8 kB / 0.9614 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004275/0.885, allocations: 182.7 kB / 0.9616 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.8852, allocations: 0.6942 MB / 0.9623 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.214e-05/0.8852, allocations: 5.953 kB / 0.9623 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.937e-05/0.8852, allocations: 11.31 kB / 0.9623 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of SimCode: time 1.052e-06/0.8853, allocations: 0 / 0.9623 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of Templates: time 0.004532/0.8898, allocations: 1.819 MB / 0.9641 GB, free: 488 kB / 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