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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008372/0.008372, allocations: 100.8 kB / 15.73 MB, free: 6.027 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.002009/0.002009, allocations: 183.5 kB / 16.67 MB, free: 5.965 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.418/2.418, allocations: 390.3 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 66.27 kB / 0.9504 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3001, allocations: 140.4 MB / 1.087 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001832/0.302, allocations: 0.621 MB / 1.088 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008965/0.3029, allocations: 0.8277 MB / 1.089 GB, free: 0.5898 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.765e-05/0.303, allocations: 4 kB / 1.089 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.612e-05/0.303, allocations: 0 / 1.089 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.181e-05/0.3031, allocations: 7.938 kB / 1.089 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.3033, allocations: 11.97 kB / 1.089 GB, free: 0.5664 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.058e-05/0.3034, allocations: 27.92 kB / 1.089 GB, free: 0.5391 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.3035, allocations: 4 kB / 1.089 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.734e-05/0.3035, allocations: 15.92 kB / 1.089 GB, free: 0.5195 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.887e-05/0.3036, allocations: 11.94 kB / 1.089 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.631e-05/0.3036, allocations: 4 kB / 1.089 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.476e-06/0.3037, allocations: 4 kB / 1.089 GB, free: 0.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.179e-05/0.3037, allocations: 15.91 kB / 1.089 GB, free: 496 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.3037, allocations: 8 kB / 1.089 GB, free: 488 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 8.073e-05/0.3038, allocations: 27.89 kB / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3038, allocations: 0 / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3038, allocations: 0 / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.3038, allocations: 0 / 1.089 GB, free: 460 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.0004684/0.3043, allocations: 334.4 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3043, allocations: 8.031 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.252e-05/0.3044, allocations: 34.75 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.778e-05/0.3044, allocations: 8.844 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.3046, allocations: 164.3 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.3046, allocations: 384 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.3046, allocations: 4.375 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.3048, allocations: 54.22 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.3048, allocations: 7.875 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.3049, allocations: 4 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3049, allocations: 3.984 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.3051, allocations: 39.95 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003507/0.3054, allocations: 248.9 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.3056, allocations: 46.53 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.3057, allocations: 24.91 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.3057, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.3057, allocations: 34.56 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3057, allocations: 0 / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0004008/0.3061, allocations: 89.56 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.3062, allocations: 51.41 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.747e-05/0.3063, allocations: 105.9 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.3063, allocations: 25.7 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.988e-05/0.3063, allocations: 88.12 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.3064, allocations: 4.562 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.3064, allocations: 13.72 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3065, allocations: 310.8 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.275e-05/0.3066, allocations: 19.97 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.327e-05/0.3067, allocations: 23.98 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.3069, allocations: 40.81 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.3069, allocations: 3.938 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002064/0.3071, allocations: 69.52 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.3071, allocations: 9.547 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3072, allocations: 4.094 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3072, allocations: 3.938 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.3073, allocations: 8 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3073, allocations: 7.984 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.57e-05/0.3074, allocations: 4 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.3074, allocations: 4 kB / 1.091 GB, free: 14.35 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.617e-05/0.3075, allocations: 115.8 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.3075, allocations: 3.984 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.247e-05/0.3075, allocations: 7.125 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3075, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/0.3076, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3076, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.3078, allocations: 169.8 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.3078, allocations: 0 / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.301e-05/0.3078, allocations: 7.984 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3079, allocations: 0 / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-06/0.3079, allocations: 4 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.3079, allocations: 3.984 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3079, allocations: 4 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.3081, allocations: 167.4 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.3082, allocations: 81.05 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.3082, allocations: 4 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.3083, allocations: 3.984 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.3084, allocations: 8.031 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.3084, allocations: 0 / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.518e-05/0.3084, allocations: 87.27 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3084, allocations: 0 / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002207/0.3086, allocations: 4 kB / 1.091 GB, free: 13.6 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.0005422/0.3092, allocations: 0.7045 MB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002328/0.3094, allocations: 43.95 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3094, allocations: 0 / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.762e-05/0.3095, allocations: 19.97 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.3099, allocations: 12.16 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004311/0.3103, allocations: 135.3 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.3106, allocations: 0.6806 MB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.119e-05/0.3106, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.382e-05/0.3106, allocations: 15.44 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of SimCode: time 3.21e-07/0.3107, allocations: 0 / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01836/0.329, allocations: 1.451 MB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/8.009, allocations: 11.98 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/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