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.009094/0.009095, allocations: 95.23 kB / 15.73 MB, free: 6.047 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.001437/0.001438, allocations: 205.8 kB / 16.68 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.495/1.495, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.449/2.449, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 66.42 kB / 0.9508 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3422, allocations: 140.4 MB / 1.088 GB, free: 1.555 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001991/0.3443, allocations: 0.6267 MB / 1.089 GB, free: 0.9258 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.3453, allocations: 0.816 MB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.247e-05/0.3454, allocations: 0 / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.513e-05/0.3454, allocations: 0 / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.694e-05/0.3455, allocations: 11.92 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001592/0.3457, allocations: 15.98 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.211e-05/0.3458, allocations: 27.92 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3459, allocations: 7.984 kB / 1.089 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.342e-05/0.3459, allocations: 11.94 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.358e-05/0.346, allocations: 11.98 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.346, allocations: 4 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.321e-05/0.3461, allocations: 0 / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.119e-05/0.3461, allocations: 12 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.83e-05/0.3462, allocations: 15.92 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.182e-05/0.3463, allocations: 23.91 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3463, allocations: 0 / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3463, allocations: 0 / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.3463, allocations: 0 / 1.089 GB, free: 15.95 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.0004824/0.3468, allocations: 345.3 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3468, allocations: 11.97 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.179e-05/0.3469, allocations: 0.9375 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.347, allocations: 168.4 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.347, allocations: 4.375 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.347, allocations: 384 / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.3472, allocations: 50.23 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.3473, allocations: 4.125 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.3473, allocations: 7.938 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3473, allocations: 0 / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.3475, allocations: 35.95 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003719/0.3479, allocations: 260.8 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001418/0.348, allocations: 38.5 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.561e-05/0.3481, allocations: 28.89 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.3481, allocations: 0 / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.3482, allocations: 34.56 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.3482, allocations: 0 / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003858/0.3486, allocations: 93.53 kB / 1.09 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.3486, allocations: 51.41 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.747e-05/0.3487, allocations: 101.8 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.3487, allocations: 25.7 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.311e-05/0.3488, allocations: 80.27 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.3488, allocations: 11.95 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.719e-05/0.3488, allocations: 13.72 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.349, allocations: 314.8 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.781e-05/0.349, allocations: 19.98 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.621e-05/0.3491, allocations: 11.98 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.3493, allocations: 44.88 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3493, allocations: 0 / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002083/0.3495, allocations: 77.53 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3496, allocations: 8 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3496, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3496, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.3497, allocations: 11.98 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.3497, allocations: 4.031 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.354e-05/0.3498, allocations: 7.984 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.3498, allocations: 0 / 1.091 GB, free: 13.9 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.175e-05/0.3499, allocations: 113.8 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.3499, allocations: 7.938 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.01e-05/0.3499, allocations: 3.125 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3499, allocations: 0 / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3499, allocations: 0 / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3499, allocations: 192 / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.3501, allocations: 169.5 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3501, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.143e-05/0.3502, allocations: 15.97 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3502, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.3502, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3502, allocations: 4 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3503, allocations: 4 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.3505, allocations: 175.3 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.3506, allocations: 77.11 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.3506, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.338e-05/0.3507, allocations: 7.984 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.276e-05/0.3507, allocations: 11.98 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.3507, allocations: 0 / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.105e-05/0.3508, allocations: 79.28 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3508, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002168/0.351, allocations: 12.03 kB / 1.092 GB, free: 13.14 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.0001135/0.3511, allocations: 99.19 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002316/0.3514, allocations: 43.89 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3514, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.633e-05/0.3515, allocations: 23.97 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.3518, allocations: 12.06 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003058/0.3521, allocations: 97.58 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.3523, allocations: 0.6768 MB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.389e-05/0.3524, allocations: 4 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.3524, allocations: 11.44 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3524, allocations: 0 / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of Templates: time 0.002683/0.3551, allocations: 0.6043 MB / 1.093 GB, free: 11.52 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