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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001206/0.001206, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 195.4 kB / 16.63 MB, free: 6.609 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.538/1.538, allocations: 222.9 MB / 240.3 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.841/2.841, allocations: 390.3 MB / 0.6648 GB, free: 136 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 66.47 kB / 0.9509 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3602, allocations: 140.4 MB / 1.088 GB, free: 1.398 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002219/0.3625, allocations: 0.6227 MB / 1.089 GB, free: 0.7734 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001096/0.3636, allocations: 0.82 MB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.814e-05/0.3636, allocations: 0 / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.778e-05/0.3637, allocations: 3.844 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.695e-05/0.3638, allocations: 7.938 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.3639, allocations: 11.98 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.917e-05/0.364, allocations: 27.92 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.3642, allocations: 4 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.846e-05/0.3642, allocations: 15.92 kB / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.27e-05/0.3643, allocations: 11.97 kB / 1.089 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.3643, allocations: 4 kB / 1.089 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.085e-05/0.3644, allocations: 4 kB / 1.089 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.311e-05/0.3644, allocations: 7.938 kB / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.585e-05/0.3644, allocations: 12 kB / 1.089 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.94e-05/0.3645, allocations: 31.88 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3645, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3645, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.3645, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 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.0005098/0.3651, allocations: 331.5 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3651, allocations: 12.03 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.3651, allocations: 4.844 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.3653, allocations: 164.4 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.3653, allocations: 8.375 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.3654, allocations: 8.297 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/0.3656, allocations: 54.23 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3656, allocations: 192 / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.3656, allocations: 7.875 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3656, allocations: 0 / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.3658, allocations: 35.95 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004847/0.3663, allocations: 249 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.3664, allocations: 46.44 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.961e-05/0.3665, allocations: 24.89 kB / 1.09 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.3666, allocations: 4 kB / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.3666, allocations: 34.56 kB / 1.09 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3666, allocations: 0 / 1.09 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0004009/0.367, allocations: 81.64 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.3671, allocations: 51.41 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.3672, allocations: 105.8 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.3672, allocations: 29.7 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.3672, allocations: 96.11 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.3673, allocations: 0 / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.3673, allocations: 13.72 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3675, allocations: 314.8 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.756e-05/0.3676, allocations: 15.98 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.794e-05/0.3676, allocations: 19.98 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.3678, allocations: 44.88 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3678, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001941/0.368, allocations: 69.59 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.368, allocations: 4 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3681, allocations: 3.938 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.3681, allocations: 4 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.3682, allocations: 8.016 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.3682, allocations: 4 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.599e-05/0.3683, allocations: 11.91 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.3683, allocations: 3.984 kB / 1.091 GB, free: 13.75 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 9.32e-05/0.3684, allocations: 113.8 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.182e-05/0.3684, allocations: 0 / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.137e-05/0.3685, allocations: 3.125 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3685, allocations: 0 / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3685, allocations: 4 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3685, allocations: 4 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.3687, allocations: 165.6 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3687, allocations: 3.938 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.529e-05/0.3687, allocations: 11.98 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.3688, allocations: 4 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.3688, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3688, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3688, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003145/0.3691, allocations: 171.4 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.501e-05/0.3692, allocations: 81.11 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.3692, allocations: 0 / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.088e-05/0.3693, allocations: 7.984 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.509e-05/0.3693, allocations: 4.188 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-06/0.3693, allocations: 7.984 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.308e-05/0.3694, allocations: 79.27 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3694, allocations: 4.031 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002101/0.3696, allocations: 7.938 kB / 1.092 GB, free: 12.99 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.0001772/0.3698, allocations: 99.25 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000273/0.3701, allocations: 39.95 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3701, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.3702, allocations: 31.97 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.3706, allocations: 11.88 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003893/0.371, allocations: 109.5 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.3713, allocations: 0.6768 MB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.359e-05/0.3714, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.565e-05/0.3714, allocations: 11.44 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.3714, allocations: 4.062 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of Templates: time 0.003245/0.3747, allocations: 0.5869 MB / 1.093 GB, free: 11.37 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