Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.462/2.462, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 177 kB / 0.4902 GB, free: 2.246 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 223.2 MB / 0.7992 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009118/0.0009119, allocations: 102.4 kB / 0.9396 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003584, allocations: 10.28 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3295, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2023/0.5319, allocations: 150.2 MB / 1.376 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.5321, allocations: 67.97 kB / 1.376 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.0086/0.5407, allocations: 2.96 MB / 1.379 GB, free: 12 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5408, allocations: 0 / 1.379 GB, free: 12 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.5408, allocations: 0 / 1.379 GB, free: 12 MB / 0.8855 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.0004563/0.5413, allocations: 418.6 kB / 1.379 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.5413, allocations: 8.562 kB / 1.379 GB, free: 11.53 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.258e-05/0.5414, allocations: 11.91 kB / 1.379 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.5415, allocations: 171 kB / 1.379 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.5416, allocations: 16 kB / 1.379 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.324e-05/0.5416, allocations: 8 kB / 1.379 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.5417, allocations: 49.8 kB / 1.38 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.5417, allocations: 4 kB / 1.38 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.5418, allocations: 3.938 kB / 1.38 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.5418, allocations: 0 / 1.38 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.029e-05/0.5418, allocations: 15.98 kB / 1.38 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005139/0.5423, allocations: 364.6 kB / 1.38 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 8.221e-05/0.5424, allocations: 42.56 kB / 1.38 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.5424, allocations: 0 / 1.38 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.5426, allocations: 95.33 kB / 1.38 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.5426, allocations: 0 / 1.38 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9): time 0.0002745/0.5429, allocations: 121.5 kB / 1.38 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.543, allocations: 67.36 kB / 1.38 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.966e-05/0.5431, allocations: 108.9 kB / 1.38 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.5431, allocations: 33.7 kB / 1.38 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.969e-05/0.5432, allocations: 96.27 kB / 1.38 GB, free: 10.19 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.5432, allocations: 19.8 kB / 1.38 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.746e-05/0.5433, allocations: 4 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.5434, allocations: 322.8 kB / 1.381 GB, free: 9.84 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.5435, allocations: 59.97 kB / 1.381 GB, free: 9.781 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.5437, allocations: 113.9 kB / 1.381 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001541/0.5438, allocations: 115.3 kB / 1.381 GB, free: 9.523 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.5439, allocations: 4 kB / 1.381 GB, free: 9.52 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000428/0.5443, allocations: 276.8 kB / 1.381 GB, free: 9.23 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.06e-05/0.5444, allocations: 67.39 kB / 1.381 GB, free: 9.152 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.5444, allocations: 4 kB / 1.381 GB, free: 9.148 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.5444, allocations: 4 kB / 1.381 GB, free: 9.145 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.186e-05/0.5445, allocations: 7.984 kB / 1.381 GB, free: 9.137 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.5445, allocations: 3.938 kB / 1.381 GB, free: 9.133 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.5448, allocations: 83.98 kB / 1.381 GB, free: 9.051 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.5449, allocations: 15.97 kB / 1.382 GB, free: 9.035 MB / 0.8855 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 0.0001126/0.545, allocations: 132.6 kB / 1.382 GB, free: 8.898 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.545, allocations: 7.906 kB / 1.382 GB, free: 8.891 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.545, allocations: 4.375 kB / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.545, allocations: 0 / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.545, allocations: 0 / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.5451, allocations: 4 kB / 1.382 GB, free: 8.879 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003299/0.5454, allocations: 358.8 kB / 1.382 GB, free: 8.473 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.5454, allocations: 4.094 kB / 1.382 GB, free: 8.469 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.298e-05/0.5454, allocations: 15.88 kB / 1.382 GB, free: 8.453 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.5454, allocations: 0 / 1.382 GB, free: 8.453 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.5455, allocations: 0 / 1.382 GB, free: 8.453 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.5455, allocations: 0 / 1.382 GB, free: 8.453 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.5455, allocations: 7.984 kB / 1.382 GB, free: 8.445 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001935/0.5457, allocations: 199.3 kB / 1.382 GB, free: 8.234 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.5457, allocations: 81.02 kB / 1.382 GB, free: 8.137 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.5457, allocations: 4 kB / 1.382 GB, free: 8.133 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.034e-05/0.5458, allocations: 4 kB / 1.382 GB, free: 8.129 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.5458, allocations: 12.08 kB / 1.382 GB, free: 8.117 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.5459, allocations: 0 / 1.382 GB, free: 8.117 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.579e-05/0.5459, allocations: 95.22 kB / 1.382 GB, free: 8.023 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5459, allocations: 4 kB / 1.382 GB, free: 8.02 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002812/0.5462, allocations: 36 kB / 1.382 GB, free: 7.984 MB / 0.8855 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.000171/0.5464, allocations: 127.9 kB / 1.383 GB, free: 7.852 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003483/0.5467, allocations: 258.6 kB / 1.383 GB, free: 7.574 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5468, allocations: 0 / 1.383 GB, free: 7.574 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.382e-05/0.5468, allocations: 31.98 kB / 1.383 GB, free: 7.543 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.547, allocations: 17.08 kB / 1.383 GB, free: 7.527 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003271/0.5474, allocations: 183.3 kB / 1.383 GB, free: 7.316 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.5476, allocations: 0.6926 MB / 1.384 GB, free: 6.598 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.036e-05/0.5477, allocations: 8.938 kB / 1.384 GB, free: 6.59 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.049e-05/0.5477, allocations: 11.44 kB / 1.384 GB, free: 6.578 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.5477, allocations: 0 / 1.384 GB, free: 6.578 MB / 0.8855 GB Notification: Performance of Templates: time 0.004086/0.5518, allocations: 1.737 MB / 1.385 GB, free: 4.863 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches