Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001177/0.001177, allocations: 183.1 kB / 326.5 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.222/2.222, allocations: 205.4 MB / 0.5775 GB, free: 20.19 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000994/0.000994, allocations: 99.8 kB / 0.6821 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003049/0.0003049, allocations: 9.062 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2372, allocations: 106.3 MB / 0.9001 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.177/0.4142, allocations: 131.4 MB / 1.028 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.4145, allocations: 71.95 kB / 1.029 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001973/0.4165, allocations: 0.735 MB / 1.029 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.154e-06/0.4165, allocations: 0 / 1.029 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.207e-06/0.4165, allocations: 0 / 1.029 GB, free: 11.44 MB / 0.6823 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.000407/0.4169, allocations: 347.2 kB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.417, allocations: 8.031 kB / 1.03 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.753e-05/0.417, allocations: 0 / 1.03 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.4171, allocations: 171 kB / 1.03 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.4171, allocations: 0 / 1.03 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.4172, allocations: 4 kB / 1.03 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001687/0.4173, allocations: 65.61 kB / 1.03 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-06/0.4174, allocations: 0 / 1.03 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.4174, allocations: 0 / 1.03 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-06/0.4174, allocations: 0 / 1.03 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.4176, allocations: 43.95 kB / 1.03 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003437/0.4179, allocations: 256.8 kB / 1.03 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.4181, allocations: 46.5 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.4181, allocations: 4 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.4181, allocations: 34.56 kB / 1.03 GB, free: 10.32 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.4181, allocations: 64 / 1.03 GB, free: 10.32 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0003511/0.4185, allocations: 101.8 kB / 1.03 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.4185, allocations: 55.41 kB / 1.03 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.934e-05/0.4186, allocations: 96.98 kB / 1.03 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.4186, allocations: 29.64 kB / 1.03 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.4187, allocations: 84.14 kB / 1.031 GB, free: 9.922 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.4187, allocations: 3.906 kB / 1.031 GB, free: 9.918 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.4187, allocations: 0 / 1.031 GB, free: 9.918 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.4188, allocations: 318.8 kB / 1.031 GB, free: 9.598 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.731e-05/0.4189, allocations: 31.92 kB / 1.031 GB, free: 9.566 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.849e-05/0.419, allocations: 23.98 kB / 1.031 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.231e-05/0.4191, allocations: 23.97 kB / 1.031 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.4191, allocations: 8 kB / 1.031 GB, free: 9.512 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00022/0.4193, allocations: 77.66 kB / 1.031 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.4193, allocations: 4 kB / 1.031 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.4193, allocations: 0 / 1.031 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.4194, allocations: 4 kB / 1.031 GB, free: 9.422 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.001e-05/0.4195, allocations: 16.02 kB / 1.031 GB, free: 9.406 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.4195, allocations: 0 / 1.031 GB, free: 9.406 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.468e-05/0.4195, allocations: 4 kB / 1.031 GB, free: 9.402 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-06/0.4195, allocations: 4 kB / 1.031 GB, free: 9.398 MB / 0.6823 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 7.625e-05/0.4196, allocations: 113.8 kB / 1.031 GB, free: 9.277 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.553e-05/0.4197, allocations: 0 / 1.031 GB, free: 9.277 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.103e-05/0.4197, allocations: 19.06 kB / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.4197, allocations: 0 / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.4197, allocations: 0 / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.4197, allocations: 0 / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.4199, allocations: 161.6 kB / 1.031 GB, free: 9.051 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.4199, allocations: 0 / 1.031 GB, free: 9.051 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8e-05/0.4199, allocations: 15.98 kB / 1.031 GB, free: 9.035 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.42, allocations: 4 kB / 1.031 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-06/0.42, allocations: 0 / 1.031 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.42, allocations: 0 / 1.031 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.42, allocations: 4 kB / 1.031 GB, free: 9.027 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000257/0.4202, allocations: 179.4 kB / 1.032 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.4203, allocations: 81.05 kB / 1.032 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.558e-06/0.4203, allocations: 4.031 kB / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.539e-05/0.4204, allocations: 7.984 kB / 1.032 GB, free: 8.727 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.4204, allocations: 11.98 kB / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.4205, allocations: 0 / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.454e-05/0.4205, allocations: 83.22 kB / 1.032 GB, free: 8.633 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4205, allocations: 0 / 1.032 GB, free: 8.633 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002017/0.4207, allocations: 11.94 kB / 1.032 GB, free: 8.621 MB / 0.6823 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.0001193/0.4208, allocations: 105.2 kB / 1.032 GB, free: 8.512 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000199/0.421, allocations: 51.95 kB / 1.032 GB, free: 8.461 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.4211, allocations: 0 / 1.032 GB, free: 8.461 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.262e-05/0.4212, allocations: 32.03 kB / 1.032 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.4213, allocations: 7.953 kB / 1.032 GB, free: 8.422 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002254/0.4216, allocations: 108.7 kB / 1.032 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.4218, allocations: 0.6848 MB / 1.033 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.324e-05/0.4218, allocations: 4.062 kB / 1.033 GB, free: 7.574 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.734e-05/0.4219, allocations: 11.44 kB / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of SimCode: time 6.61e-07/0.4219, allocations: 3.938 kB / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of Templates: time 0.002222/0.4241, allocations: 499.5 kB / 1.033 GB, free: 7.078 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches