Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_latest_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.004993/0.004994, allocations: 100.2 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.00123/0.00123, allocations: 195.9 kB / 16.67 MB, free: 6.391 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.693/2.693, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.91 kB / 1.054 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2846, allocations: 157.4 MB / 1.207 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002003/0.2867, allocations: 0.6243 MB / 1.208 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2878, allocations: 0.8234 MB / 1.209 GB, free: 8.785 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4e-05/0.2879, allocations: 0 / 1.209 GB, free: 8.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.025e-05/0.288, allocations: 0 / 1.209 GB, free: 8.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.635e-05/0.2881, allocations: 3.938 kB / 1.209 GB, free: 8.781 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.2882, allocations: 19.98 kB / 1.209 GB, free: 8.762 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.396e-05/0.2883, allocations: 27.92 kB / 1.209 GB, free: 8.734 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.2885, allocations: 4 kB / 1.209 GB, free: 8.73 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.372e-05/0.2885, allocations: 15.92 kB / 1.209 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.381e-05/0.2886, allocations: 11.98 kB / 1.209 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.2886, allocations: 4 kB / 1.209 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.2886, allocations: 4 kB / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.786e-05/0.2887, allocations: 7.922 kB / 1.209 GB, free: 8.688 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.126e-05/0.2887, allocations: 8 kB / 1.209 GB, free: 8.68 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 8.815e-05/0.2888, allocations: 19.91 kB / 1.209 GB, free: 8.66 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.2888, allocations: 3.984 kB / 1.209 GB, free: 8.656 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.923e-06/0.2888, allocations: 0 / 1.209 GB, free: 8.656 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.729e-06/0.2888, allocations: 0 / 1.209 GB, free: 8.656 MB / 0.9669 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.0004951/0.2893, allocations: 343.7 kB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.2894, allocations: 12.62 kB / 1.209 GB, free: 8.258 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.341e-05/0.2894, allocations: 38.69 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.515e-05/0.2895, allocations: 0.9375 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.2896, allocations: 168.4 kB / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.2896, allocations: 384 / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.2896, allocations: 384 / 1.209 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.2898, allocations: 54.22 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.2898, allocations: 3.938 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.2898, allocations: 0 / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.2899, allocations: 8 kB / 1.209 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.2901, allocations: 31.95 kB / 1.209 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003656/0.2904, allocations: 260.8 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.2906, allocations: 42.48 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.691e-05/0.2907, allocations: 28.91 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.2907, allocations: 0 / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.2907, allocations: 34.5 kB / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.2908, allocations: 0 / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0004052/0.2912, allocations: 89.56 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.2912, allocations: 59.53 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.505e-05/0.2913, allocations: 97.86 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.2913, allocations: 25.7 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.191e-05/0.2914, allocations: 84.12 kB / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.2914, allocations: 3.906 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-05/0.2914, allocations: 17.72 kB / 1.21 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.2916, allocations: 310.8 kB / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.2917, allocations: 27.97 kB / 1.21 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.2e-05/0.2918, allocations: 15.98 kB / 1.21 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.2919, allocations: 36.83 kB / 1.211 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.2919, allocations: 3.938 kB / 1.211 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002289/0.2922, allocations: 73.66 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2922, allocations: 16.02 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2922, allocations: 0 / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.2922, allocations: 0 / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-05/0.2923, allocations: 4 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.2923, allocations: 4 kB / 1.211 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.33e-05/0.2924, allocations: 3.984 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.2924, allocations: 4 kB / 1.211 GB, free: 6.555 MB / 0.9669 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.056e-05/0.2925, allocations: 109.8 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.2925, allocations: 8 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.144e-05/0.2926, allocations: 11.11 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2926, allocations: 0 / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2926, allocations: 0 / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.2926, allocations: 192 / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.2928, allocations: 157.6 kB / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2928, allocations: 0 / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.153e-05/0.2928, allocations: 15.97 kB / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.2928, allocations: 0 / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.2929, allocations: 3.938 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2929, allocations: 4 kB / 1.211 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2929, allocations: 7.922 kB / 1.211 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003021/0.2932, allocations: 171.4 kB / 1.211 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.174e-05/0.2932, allocations: 77.11 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.2932, allocations: 0 / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.228e-05/0.2933, allocations: 12.02 kB / 1.211 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.2934, allocations: 8 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.2934, allocations: 0 / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.783e-05/0.2934, allocations: 83.27 kB / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2935, allocations: 3.938 kB / 1.211 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002261/0.2937, allocations: 8 kB / 1.211 GB, free: 5.797 MB / 0.9669 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.0005545/0.2942, allocations: 0.6967 MB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002271/0.2945, allocations: 39.95 kB / 1.212 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2945, allocations: 0 / 1.212 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.876e-05/0.2946, allocations: 24.08 kB / 1.212 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002709/0.2949, allocations: 13.53 kB / 1.212 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004633/0.2954, allocations: 143.1 kB / 1.212 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.2956, allocations: 0.6768 MB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.627e-05/0.2957, allocations: 7.906 kB / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.428e-05/0.2957, allocations: 7.438 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.2957, allocations: 4 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.3159, allocations: 1.471 MB / 1.214 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.727/8.043, allocations: 10.88 kB / 1.214 GB, free: 2.75 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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