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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009749/0.000975, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001062/0.001062, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.643/2.643, allocations: 390.9 MB / 0.666 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.0003822, allocations: 12 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8735/0.8739, allocations: 142.4 MB / 0.9544 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0008745/0.8748, allocations: 414.2 kB / 0.9548 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.8762, allocations: 1.166 MB / 0.956 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.402e-05/0.8763, allocations: 0 / 0.956 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.944e-05/0.8763, allocations: 0 / 0.956 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.02e-05/0.8764, allocations: 17.66 kB / 0.956 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006247/0.877, allocations: 207.1 kB / 0.9562 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.8772, allocations: 135.3 kB / 0.9563 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.069e-05/0.8773, allocations: 4.469 kB / 0.9563 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.312e-05/0.8774, allocations: 64.66 kB / 0.9564 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.958e-05/0.8775, allocations: 54.06 kB / 0.9564 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.8775, allocations: 8 kB / 0.9564 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.304e-05/0.8776, allocations: 19.11 kB / 0.9565 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.97e-05/0.8776, allocations: 11.22 kB / 0.9565 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.223e-05/0.8777, allocations: 37.02 kB / 0.9565 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.8778, allocations: 113.5 kB / 0.9566 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.8779, allocations: 0 / 0.9566 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.064e-06/0.8779, allocations: 0 / 0.9566 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.8779, allocations: 1 kB / 0.9566 GB, free: 6.25 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.0004365/0.8783, allocations: 417 kB / 0.957 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.8784, allocations: 8.938 kB / 0.957 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.706e-05/0.8784, allocations: 7.094 kB / 0.957 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.555e-05/0.8785, allocations: 177.8 kB / 0.9572 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.8786, allocations: 9.062 kB / 0.9572 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.8786, allocations: 17.52 kB / 0.9572 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.8787, allocations: 52.06 kB / 0.9573 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.8787, allocations: 0 / 0.9573 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.8788, allocations: 3.984 kB / 0.9573 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.8788, allocations: 5.078 kB / 0.9573 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.807e-05/0.8788, allocations: 11.09 kB / 0.9573 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004684/0.8793, allocations: 352.3 kB / 0.9576 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.039e-05/0.8794, allocations: 37.61 kB / 0.9577 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.799e-05/0.8794, allocations: 23.62 kB / 0.9577 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.8794, allocations: 1.281 kB / 0.9577 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001723/0.8796, allocations: 100.2 kB / 0.9578 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 2.074e-06/0.8796, allocations: 0 / 0.9578 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.000265/0.8799, allocations: 129 kB / 0.9579 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.8799, allocations: 56.56 kB / 0.958 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.434e-05/0.88, allocations: 119.7 kB / 0.9581 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.88, allocations: 34.95 kB / 0.9581 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.788e-05/0.8801, allocations: 93.17 kB / 0.9582 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.846e-05/0.8801, allocations: 14.88 kB / 0.9582 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.03e-05/0.8801, allocations: 6.938 kB / 0.9582 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.266e-05/0.8802, allocations: 321.9 kB / 0.9585 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.8803, allocations: 59.5 kB / 0.9586 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.8805, allocations: 106.8 kB / 0.9587 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001329/0.8806, allocations: 122.7 kB / 0.9588 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.8806, allocations: 0 / 0.9588 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004005/0.881, allocations: 287 kB / 0.9591 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/0.8811, allocations: 74.06 kB / 0.9592 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.8811, allocations: 1.844 kB / 0.9592 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.8811, allocations: 6.109 kB / 0.9592 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.76e-05/0.8812, allocations: 7.531 kB / 0.9592 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.8812, allocations: 3.625 kB / 0.9592 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.8815, allocations: 84.95 kB / 0.9593 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.8815, allocations: 13.56 kB / 0.9593 GB, free: 3.785 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 ($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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.972e-05/0.8816, allocations: 127.5 kB / 0.9594 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.8816, allocations: 6.656 kB / 0.9594 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.471e-05/0.8817, allocations: 13.7 kB / 0.9594 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.8817, allocations: 1.375 kB / 0.9594 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.8817, allocations: 1.375 kB / 0.9594 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.8817, allocations: 0 / 0.9594 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.882, allocations: 353.5 kB / 0.9597 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.882, allocations: 4 kB / 0.9597 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.109e-05/0.882, allocations: 13.27 kB / 0.9598 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.882, allocations: 1.375 kB / 0.9598 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.882, allocations: 9.312 kB / 0.9598 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.882, allocations: 0 / 0.9598 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.882, allocations: 1.375 kB / 0.9598 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001463/0.8822, allocations: 195.4 kB / 0.96 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.8822, allocations: 83.8 kB / 0.96 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.8822, allocations: 9.328 kB / 0.96 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.861e-05/0.8823, allocations: 4 kB / 0.9601 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.8823, allocations: 8.109 kB / 0.9601 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.8823, allocations: 2.75 kB / 0.9601 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.469e-05/0.8824, allocations: 95.52 kB / 0.9602 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8824, allocations: 0 / 0.9602 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002661/0.8827, allocations: 28.88 kB / 0.9602 GB, free: 2.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001332/0.8828, allocations: 113.5 kB / 0.9603 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003036/0.8831, allocations: 259.8 kB / 0.9605 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8831, allocations: 192 / 0.9605 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.818e-05/0.8832, allocations: 36.23 kB / 0.9606 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.8835, allocations: 15.64 kB / 0.9606 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003098/0.8838, allocations: 186 kB / 0.9608 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.8839, allocations: 0.6864 MB / 0.9614 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.003e-05/0.884, allocations: 9.5 kB / 0.9614 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.891e-05/0.884, allocations: 12.41 kB / 0.9615 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.884, allocations: 3.938 kB / 0.9615 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of Templates: time 0.004772/0.8888, allocations: 1.747 MB / 0.9632 GB, free: 0.8203 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