Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01256/0.01256, allocations: 104.8 kB / 15.74 MB, free: 6.039 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.002607/0.002607, allocations: 195.2 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.612/2.612, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 58.66 kB / 0.9508 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.356, allocations: 140.4 MB / 1.088 GB, free: 1.637 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001888/0.3579, allocations: 0.617 MB / 1.089 GB, free: 1.02 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009839/0.3589, allocations: 0.8277 MB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.848e-05/0.359, allocations: 0 / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.303e-05/0.359, allocations: 0 / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.636e-05/0.3591, allocations: 3.938 kB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.3593, allocations: 15.97 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.62e-05/0.3594, allocations: 27.92 kB / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3595, allocations: 4 kB / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.356e-05/0.3596, allocations: 15.86 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.975e-05/0.3596, allocations: 11.98 kB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/0.3597, allocations: 4 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.279e-05/0.3597, allocations: 8 kB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.087e-05/0.3597, allocations: 11.92 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.3597, allocations: 4 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.476e-05/0.3598, allocations: 31.89 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3599, allocations: 0 / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3599, allocations: 0 / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.3599, allocations: 0 / 1.089 GB, free: 44 kB / 0.8419 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.0005081/0.3604, allocations: 331.5 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.3604, allocations: 12.03 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.171e-05/0.3605, allocations: 8.844 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.3606, allocations: 164.3 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.3606, allocations: 4.359 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.3607, allocations: 8.359 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.3609, allocations: 50.23 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.3609, allocations: 192 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.3609, allocations: 3.938 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3609, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.3611, allocations: 47.89 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.3615, allocations: 248.9 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.3616, allocations: 42.5 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.3617, allocations: 20.91 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.3618, allocations: 11.98 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.3618, allocations: 30.56 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.3618, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003981/0.3622, allocations: 85.58 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.3623, allocations: 51.41 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.478e-05/0.3624, allocations: 106 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.3624, allocations: 29.7 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.495e-05/0.3624, allocations: 88.03 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.3625, allocations: 0 / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.3625, allocations: 17.72 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3626, allocations: 310.8 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.27e-05/0.3627, allocations: 19.97 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.087e-05/0.3628, allocations: 19.98 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.363, allocations: 44.81 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.363, allocations: 4 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002014/0.3632, allocations: 73.53 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3632, allocations: 4 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3632, allocations: 0 / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.3633, allocations: 12.03 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.3634, allocations: 7.984 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.3634, allocations: 0 / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.519e-05/0.3635, allocations: 7.906 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-06/0.3635, allocations: 0 / 1.091 GB, free: 13.99 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.657e-05/0.3636, allocations: 121.8 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.3636, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.978e-05/0.3636, allocations: 3.125 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.3636, allocations: 4 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3636, allocations: 4 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3636, allocations: 0 / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.3638, allocations: 161.6 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.3638, allocations: 0 / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.904e-05/0.3639, allocations: 8 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.3639, allocations: 3.938 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.3639, allocations: 3.984 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3639, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3639, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/0.3642, allocations: 171.4 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.062e-05/0.3642, allocations: 81.11 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.3643, allocations: 0 / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.036e-05/0.3644, allocations: 11.98 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.163e-05/0.3644, allocations: 192 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.3644, allocations: 8.031 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.23e-05/0.3645, allocations: 87.25 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3645, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002166/0.3647, allocations: 7.938 kB / 1.092 GB, free: 13.23 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001214/0.3648, allocations: 99.25 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000241/0.3651, allocations: 39.89 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3651, allocations: 4.062 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.867e-05/0.3652, allocations: 23.98 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.3655, allocations: 7.922 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003341/0.3659, allocations: 117.5 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.3661, allocations: 0.6729 MB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.832e-05/0.3662, allocations: 8.047 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.219e-05/0.3662, allocations: 11.44 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.3662, allocations: 0 / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of Templates: time 0.002942/0.3692, allocations: 0.5963 MB / 1.093 GB, free: 11.6 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches