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.323/2.323, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.002295/0.002295, allocations: 184.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.558/1.558, allocations: 221.3 MB / 0.7915 GB, free: 5.395 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.0008395/0.0008394, allocations: 87.95 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.75e-05/2.765e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2887, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8652/1.154, allocations: 149.6 MB / 1.365 GB, free: 4.395 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/1.154, allocations: 60.97 kB / 1.365 GB, free: 4.363 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001828/1.156, allocations: 0.7231 MB / 1.366 GB, free: 3.707 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.523e-06/1.156, allocations: 0 / 1.366 GB, free: 3.707 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.561e-06/1.156, allocations: 4 kB / 1.366 GB, free: 3.703 MB / 0.823 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.0003242/1.156, allocations: 333.3 kB / 1.366 GB, free: 3.336 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/1.156, allocations: 12.03 kB / 1.366 GB, free: 3.324 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.125e-05/1.156, allocations: 3.984 kB / 1.366 GB, free: 3.32 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/1.157, allocations: 171.6 kB / 1.366 GB, free: 3.113 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/1.157, allocations: 0 / 1.366 GB, free: 3.113 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/1.157, allocations: 0 / 1.366 GB, free: 3.113 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.476e-05/1.157, allocations: 41.19 kB / 1.366 GB, free: 3.07 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/1.157, allocations: 1.969 kB / 1.366 GB, free: 3.07 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/1.157, allocations: 0 / 1.366 GB, free: 3.07 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/1.157, allocations: 0 / 1.366 GB, free: 3.07 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.839e-05/1.157, allocations: 11.88 kB / 1.366 GB, free: 3.062 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003322/1.157, allocations: 259 kB / 1.366 GB, free: 2.77 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 5.45e-05/1.157, allocations: 32.95 kB / 1.366 GB, free: 2.734 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.547e-05/1.157, allocations: 11.92 kB / 1.366 GB, free: 2.723 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/1.157, allocations: 4 kB / 1.366 GB, free: 2.719 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/1.157, allocations: 34.55 kB / 1.366 GB, free: 2.676 MB / 0.823 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/1.157, allocations: 4 kB / 1.366 GB, free: 2.672 MB / 0.823 GB Notification: Performance of matching and sorting (n=2): time 0.0001375/1.157, allocations: 36.45 kB / 1.367 GB, free: 2.633 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/1.157, allocations: 55.41 kB / 1.367 GB, free: 2.566 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.908e-05/1.158, allocations: 103.6 kB / 1.367 GB, free: 2.461 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/1.158, allocations: 29.64 kB / 1.367 GB, free: 2.426 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.622e-05/1.158, allocations: 83.7 kB / 1.367 GB, free: 2.344 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/1.158, allocations: 4.781 kB / 1.367 GB, free: 2.34 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-06/1.158, allocations: 0 / 1.367 GB, free: 2.34 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.46e-05/1.158, allocations: 321.9 kB / 1.367 GB, free: 2.02 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.128e-05/1.158, allocations: 4 kB / 1.367 GB, free: 2.016 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.599e-05/1.158, allocations: 7.438 kB / 1.367 GB, free: 2.012 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.013e-05/1.158, allocations: 0 / 1.367 GB, free: 2.012 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/1.158, allocations: 4 kB / 1.367 GB, free: 2.008 MB / 0.823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.616e-05/1.158, allocations: 44 kB / 1.367 GB, free: 1.965 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/1.158, allocations: 11.94 kB / 1.367 GB, free: 1.953 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/1.158, allocations: 0 / 1.367 GB, free: 1.953 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.408e-06/1.158, allocations: 4.094 kB / 1.367 GB, free: 1.949 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/1.158, allocations: 11.98 kB / 1.367 GB, free: 1.938 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/1.158, allocations: 3.938 kB / 1.367 GB, free: 1.934 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.209e-05/1.158, allocations: 11.98 kB / 1.367 GB, free: 1.922 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/1.158, allocations: 4.141 kB / 1.367 GB, free: 1.918 MB / 0.823 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 () * 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 5.202e-05/1.158, allocations: 101 kB / 1.367 GB, free: 1.812 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.491e-05/1.158, allocations: 4 kB / 1.367 GB, free: 1.809 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.006e-05/1.158, allocations: 14.23 kB / 1.367 GB, free: 1.801 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/1.158, allocations: 0 / 1.367 GB, free: 1.801 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/1.158, allocations: 0 / 1.367 GB, free: 1.801 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/1.158, allocations: 0 / 1.367 GB, free: 1.801 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/1.158, allocations: 164.2 kB / 1.367 GB, free: 1.598 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/1.158, allocations: 0 / 1.367 GB, free: 1.598 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.65e-05/1.158, allocations: 15.98 kB / 1.367 GB, free: 1.582 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/1.159, allocations: 0 / 1.367 GB, free: 1.582 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/1.159, allocations: 3.438 kB / 1.367 GB, free: 1.582 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/1.159, allocations: 4 kB / 1.367 GB, free: 1.578 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/1.159, allocations: 0 / 1.367 GB, free: 1.578 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001139/1.159, allocations: 146.1 kB / 1.368 GB, free: 1.426 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/1.159, allocations: 85.05 kB / 1.368 GB, free: 1.324 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/1.159, allocations: 0 / 1.368 GB, free: 1.324 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.085e-05/1.159, allocations: 7.984 kB / 1.368 GB, free: 1.316 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/1.159, allocations: 12.02 kB / 1.368 GB, free: 1.305 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/1.159, allocations: 0 / 1.368 GB, free: 1.305 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.097e-05/1.159, allocations: 82.78 kB / 1.368 GB, free: 1.227 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.51e-07/1.159, allocations: 0 / 1.368 GB, free: 1.227 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001971/1.159, allocations: 4 kB / 1.368 GB, free: 1.223 MB / 0.823 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 () * 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.0001085/1.159, allocations: 107.2 kB / 1.368 GB, free: 1.105 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 7.96e-05/1.159, allocations: 22.55 kB / 1.368 GB, free: 1.09 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/1.159, allocations: 3.938 kB / 1.368 GB, free: 1.086 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 3.108e-05/1.159, allocations: 23.25 kB / 1.368 GB, free: 1.066 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/1.16, allocations: 5.156 kB / 1.368 GB, free: 1.062 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000195/1.16, allocations: 64.61 kB / 1.368 GB, free: 0.9805 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/1.16, allocations: 0.677 MB / 1.369 GB, free: 284 kB / 0.823 GB Notification: Performance of simCode: alias equations: time 3.435e-05/1.16, allocations: 4 kB / 1.369 GB, free: 280 kB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.386e-05/1.16, allocations: 11.5 kB / 1.369 GB, free: 268 kB / 0.823 GB Notification: Performance of SimCode: time 3.41e-07/1.16, allocations: 0 / 1.369 GB, free: 268 kB / 0.823 GB Notification: Performance of Templates: time 0.002189/1.162, allocations: 0.4956 MB / 1.369 GB, free: 15.78 MB / 0.8386 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