Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.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.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.365/2.365, allocations: 393.5 MB / 408.4 MB, free: 11.07 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.00114/0.00114, allocations: 187.8 kB / 0.4902 GB, free: 2.309 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.627/1.627, allocations: 223.2 MB / 0.7992 GB, free: 14.8 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.0008696/0.0008695, allocations: 112.8 kB / 0.9396 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004137/0.0004137, allocations: 14.11 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3138, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2412/0.5551, allocations: 149.6 MB / 1.375 GB, free: 4.012 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003463/0.5555, allocations: 71.95 kB / 1.375 GB, free: 3.941 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00269/0.5582, allocations: 0.7116 MB / 1.376 GB, free: 3.227 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.445e-06/0.5582, allocations: 0 / 1.376 GB, free: 3.227 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.01e-05/0.5583, allocations: 0 / 1.376 GB, free: 3.227 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004972/0.5588, allocations: 345.2 kB / 1.376 GB, free: 2.844 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.5588, allocations: 8.562 kB / 1.376 GB, free: 2.836 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.724e-05/0.5589, allocations: 7.844 kB / 1.376 GB, free: 2.828 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.5591, allocations: 171 kB / 1.377 GB, free: 2.621 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.5591, allocations: 0 / 1.377 GB, free: 2.621 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.5591, allocations: 0 / 1.377 GB, free: 2.621 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002675/0.5594, allocations: 57.67 kB / 1.377 GB, free: 2.559 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.5594, allocations: 0 / 1.377 GB, free: 2.559 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.5594, allocations: 7.984 kB / 1.377 GB, free: 2.551 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.5595, allocations: 0 / 1.377 GB, free: 2.551 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.5597, allocations: 47.97 kB / 1.377 GB, free: 2.504 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004896/0.5602, allocations: 252.9 kB / 1.377 GB, free: 2.207 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.5604, allocations: 50.55 kB / 1.377 GB, free: 2.148 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.5605, allocations: 3.984 kB / 1.377 GB, free: 2.145 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.5605, allocations: 30.56 kB / 1.377 GB, free: 2.105 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.703e-06/0.5605, allocations: 0 / 1.377 GB, free: 2.105 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0005485/0.5611, allocations: 105.6 kB / 1.377 GB, free: 1.996 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.5612, allocations: 55.41 kB / 1.377 GB, free: 1.93 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.404e-05/0.5613, allocations: 92.98 kB / 1.377 GB, free: 1.832 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.5613, allocations: 29.7 kB / 1.377 GB, free: 1.797 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.949e-05/0.5614, allocations: 88.27 kB / 1.377 GB, free: 1.707 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.5614, allocations: 11.83 kB / 1.377 GB, free: 1.695 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-06/0.5614, allocations: 0 / 1.377 GB, free: 1.695 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5615, allocations: 314.8 kB / 1.378 GB, free: 1.379 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.5617, allocations: 27.97 kB / 1.378 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.5618, allocations: 23.98 kB / 1.378 GB, free: 1.328 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.562, allocations: 19.98 kB / 1.378 GB, free: 1.309 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.562, allocations: 0 / 1.378 GB, free: 1.309 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003234/0.5623, allocations: 81.72 kB / 1.378 GB, free: 1.223 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.5623, allocations: 5.875 kB / 1.378 GB, free: 1.219 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.5624, allocations: 3.938 kB / 1.378 GB, free: 1.215 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.5624, allocations: 0 / 1.378 GB, free: 1.215 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.5625, allocations: 15.98 kB / 1.378 GB, free: 1.199 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.5626, allocations: 0 / 1.378 GB, free: 1.199 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.005e-05/0.5627, allocations: 15.92 kB / 1.378 GB, free: 1.184 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.357e-06/0.5627, allocations: 4.031 kB / 1.378 GB, free: 1.18 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.0001103/0.5628, allocations: 113.8 kB / 1.378 GB, free: 1.059 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.739e-05/0.5628, allocations: 3.906 kB / 1.378 GB, free: 1.055 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.261e-05/0.5629, allocations: 3.125 kB / 1.378 GB, free: 1.055 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.5629, allocations: 4 kB / 1.378 GB, free: 1.051 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.5629, allocations: 3.984 kB / 1.378 GB, free: 1.047 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.5629, allocations: 0 / 1.378 GB, free: 1.047 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.5631, allocations: 161.6 kB / 1.378 GB, free: 0.8398 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.5632, allocations: 0 / 1.378 GB, free: 0.8398 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.5633, allocations: 15.98 kB / 1.378 GB, free: 0.8242 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.5633, allocations: 0 / 1.378 GB, free: 0.8242 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.5633, allocations: 4 kB / 1.378 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.5633, allocations: 0 / 1.378 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5633, allocations: 0 / 1.378 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000393/0.5637, allocations: 179.4 kB / 1.378 GB, free: 0.6289 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.5638, allocations: 85.09 kB / 1.378 GB, free: 0.5273 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.5638, allocations: 0 / 1.378 GB, free: 0.5273 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.564, allocations: 7.938 kB / 1.378 GB, free: 0.5195 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.268e-05/0.564, allocations: 7.984 kB / 1.378 GB, free: 0.5117 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.5641, allocations: 4.031 kB / 1.378 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.505e-05/0.5641, allocations: 87.27 kB / 1.379 GB, free: 432 kB / 0.8698 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5641, allocations: 0 / 1.379 GB, free: 432 kB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003598/0.5645, allocations: 7.938 kB / 1.379 GB, free: 424 kB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000167/0.5647, allocations: 104 kB / 1.379 GB, free: 312 kB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003204/0.565, allocations: 51.95 kB / 1.379 GB, free: 260 kB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.565, allocations: 0 / 1.379 GB, free: 260 kB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.5652, allocations: 31.92 kB / 1.379 GB, free: 228 kB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.5655, allocations: 3.953 kB / 1.379 GB, free: 224 kB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000421/0.5659, allocations: 112.8 kB / 1.379 GB, free: 80 kB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.5662, allocations: 0.6848 MB / 1.38 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.3e-05/0.5663, allocations: 0 / 1.38 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.5663, allocations: 15.44 kB / 1.38 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of SimCode: time 3.51e-07/0.5663, allocations: 0 / 1.38 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of Templates: time 0.003309/0.5697, allocations: 0.49 MB / 1.38 GB, free: 14.86 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches