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.008066/0.008066, allocations: 102.6 kB / 15.73 MB, free: 6.492 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.001709/0.001709, allocations: 192 kB / 16.67 MB, free: 6.379 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.362/2.362, allocations: 390.3 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002226, allocations: 63.53 kB / 0.9504 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3257, allocations: 140.4 MB / 1.087 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002053/0.3279, allocations: 0.6181 MB / 1.088 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.329, allocations: 0.8277 MB / 1.089 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.3291, allocations: 0 / 1.089 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.319e-05/0.3291, allocations: 4 kB / 1.089 GB, free: 0.582 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.627e-05/0.3292, allocations: 3.938 kB / 1.089 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001841/0.3294, allocations: 11.98 kB / 1.089 GB, free: 0.5664 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.071e-05/0.3295, allocations: 31.91 kB / 1.089 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.3296, allocations: 8 kB / 1.089 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.409e-05/0.3297, allocations: 11.92 kB / 1.089 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.587e-05/0.3298, allocations: 11.98 kB / 1.089 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.3298, allocations: 0 / 1.089 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.057e-05/0.3298, allocations: 4 kB / 1.089 GB, free: 0.5 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.955e-05/0.3298, allocations: 11.94 kB / 1.089 GB, free: 500 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.433e-05/0.3299, allocations: 11.98 kB / 1.089 GB, free: 488 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.042e-05/0.33, allocations: 27.89 kB / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.33, allocations: 0 / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.833e-06/0.33, allocations: 0 / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.33, 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.0006558/0.3307, allocations: 338.3 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.3307, allocations: 8.031 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.411e-05/0.3308, allocations: 30.75 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.3308, allocations: 8.844 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.3309, allocations: 164.4 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.331, allocations: 384 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.331, allocations: 4.375 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.3312, allocations: 58.2 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.3312, allocations: 7.875 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.3312, allocations: 4 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3312, allocations: 0 / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.3315, allocations: 43.89 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004555/0.332, allocations: 240.9 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.3321, allocations: 42.53 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.649e-05/0.3322, allocations: 24.91 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.3323, allocations: 4 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.3323, allocations: 34.55 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.383e-06/0.3323, allocations: 0 / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0004953/0.3328, allocations: 89.58 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.3329, allocations: 51.41 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.3331, allocations: 101.9 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.3331, allocations: 33.69 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.314e-05/0.3332, allocations: 88.08 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.3332, allocations: 4.562 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.3333, allocations: 9.719 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001953/0.3335, allocations: 318.8 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.3337, allocations: 15.97 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.114e-05/0.3338, allocations: 19.98 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.3339, allocations: 40.81 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.334, allocations: 11.88 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000207/0.3342, allocations: 73.56 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3342, allocations: 4 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3342, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3342, allocations: 4.094 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.3343, allocations: 15.98 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.3344, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.28e-05/0.3344, allocations: 4 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.3344, allocations: 0 / 1.091 GB, free: 14.36 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 0.0002005/0.3346, allocations: 113.8 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.3347, allocations: 4 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.29e-05/0.3347, allocations: 7.125 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3347, allocations: 4 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3347, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3347, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.3349, allocations: 169.8 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3349, allocations: 4 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.903e-05/0.335, allocations: 4 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.335, allocations: 3.938 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.335, allocations: 3.984 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.335, allocations: 0 / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.335, allocations: 4 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.3353, allocations: 167.5 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.3353, allocations: 81.05 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.3354, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-05/0.3354, allocations: 7.984 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.3355, allocations: 8 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.3355, allocations: 4.031 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.26e-05/0.3356, allocations: 87.44 kB / 1.091 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.3356, allocations: 0 / 1.091 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002172/0.3358, 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.0007077/0.3365, allocations: 0.7045 MB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002237/0.3367, allocations: 39.95 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3368, allocations: 3.938 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.77e-05/0.3369, allocations: 27.97 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.3371, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004871/0.3376, allocations: 143.3 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/0.3379, allocations: 0.6768 MB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.723e-05/0.338, allocations: 4 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.338, allocations: 15.44 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of SimCode: time 5.11e-07/0.338, allocations: 0 / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.3562, allocations: 1.459 MB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.865, allocations: 12.05 kB / 1.094 GB, free: 10.54 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,reaToInt.u,reaToInt.y Variables in the result:ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,reaToInt.u,reaToInt.y,time