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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.008118/0.008118, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.002139/0.00214, allocations: 192 kB / 16.67 MB, free: 5.48 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.8/2.8, allocations: 482.4 MB / 0.7548 GB, free: 6.887 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.69 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.277, allocations: 162.2 MB / 1.241 GB, free: 9.312 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001654/0.2787, allocations: 0.6152 MB / 1.242 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009025/0.2796, allocations: 0.8199 MB / 1.243 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.2797, allocations: 4 kB / 1.243 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.418e-05/0.2797, allocations: 3.938 kB / 1.243 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.116e-05/0.2797, allocations: 3.938 kB / 1.243 GB, free: 7.852 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000121/0.2799, allocations: 15.92 kB / 1.243 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.79e-05/0.28, allocations: 31.91 kB / 1.243 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.51e-05/0.28, allocations: 8 kB / 1.243 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.539e-05/0.2801, allocations: 11.98 kB / 1.243 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.507e-05/0.2802, allocations: 11.94 kB / 1.243 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.2802, allocations: 4 kB / 1.243 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.654e-06/0.2802, allocations: 0 / 1.243 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.739e-05/0.2802, allocations: 11.92 kB / 1.243 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.642e-05/0.2802, allocations: 11.92 kB / 1.243 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 7.838e-05/0.2803, allocations: 29.3 kB / 1.243 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2803, allocations: 4 kB / 1.243 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2803, allocations: 0 / 1.243 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.2804, allocations: 4 kB / 1.243 GB, free: 7.711 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.0004534/0.2808, allocations: 339.7 kB / 1.243 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.2809, allocations: 8.031 kB / 1.243 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.471e-05/0.2809, allocations: 34.75 kB / 1.243 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.902e-05/0.2809, allocations: 0.9375 kB / 1.243 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.2811, allocations: 168.3 kB / 1.244 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.2811, allocations: 384 / 1.244 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.478e-06/0.2811, allocations: 4.375 kB / 1.244 GB, free: 7.07 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/0.2813, allocations: 62.16 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2813, allocations: 3.938 kB / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.2813, allocations: 0 / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2813, allocations: 0 / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.2815, allocations: 35.95 kB / 1.244 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003304/0.2818, allocations: 244.9 kB / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.282, allocations: 54.47 kB / 1.244 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.567e-05/0.2821, allocations: 20.91 kB / 1.244 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.2821, allocations: 4 kB / 1.244 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.2822, allocations: 34.55 kB / 1.244 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 9.61e-07/0.2822, allocations: 0 / 1.244 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0003719/0.2825, allocations: 85.64 kB / 1.244 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.2826, allocations: 51.41 kB / 1.244 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.113e-05/0.2827, allocations: 97.86 kB / 1.244 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.2827, allocations: 33.64 kB / 1.244 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.303e-05/0.2827, allocations: 84.12 kB / 1.244 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.2828, allocations: 3.953 kB / 1.244 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.2828, allocations: 17.72 kB / 1.244 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.2829, allocations: 315 kB / 1.245 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.977e-05/0.283, allocations: 23.97 kB / 1.245 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.087e-05/0.2831, allocations: 15.98 kB / 1.245 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.2833, allocations: 44.81 kB / 1.245 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2833, allocations: 7.938 kB / 1.245 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002134/0.2835, allocations: 69.66 kB / 1.245 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.2836, allocations: 5.719 kB / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.2836, allocations: 0 / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.2836, allocations: 4 kB / 1.245 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.631e-05/0.2837, allocations: 11.92 kB / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.339e-06/0.2837, allocations: 0 / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.637e-05/0.2838, allocations: 11.89 kB / 1.245 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-06/0.2838, allocations: 4.031 kB / 1.245 GB, free: 5.613 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.596e-05/0.2839, allocations: 118.3 kB / 1.245 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/0.2839, allocations: 3.984 kB / 1.245 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.247e-05/0.2839, allocations: 3.125 kB / 1.245 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.2839, allocations: 0 / 1.245 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2839, allocations: 4 kB / 1.245 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.2839, allocations: 0 / 1.245 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.2841, allocations: 161.6 kB / 1.245 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.2841, allocations: 3.984 kB / 1.245 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.315e-05/0.2842, allocations: 12 kB / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2842, allocations: 0 / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.2842, allocations: 0 / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2842, allocations: 3.984 kB / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2842, allocations: 0 / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002652/0.2845, allocations: 167.6 kB / 1.245 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.311e-05/0.2845, allocations: 85.14 kB / 1.245 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.2846, allocations: 3.984 kB / 1.245 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.569e-05/0.2847, allocations: 7.984 kB / 1.245 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.2847, allocations: 4 kB / 1.245 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.2847, allocations: 4 kB / 1.245 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.24e-05/0.2848, allocations: 83.27 kB / 1.245 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2848, allocations: 0 / 1.245 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002182/0.285, allocations: 4 kB / 1.245 GB, free: 4.867 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.0005759/0.2856, allocations: 0.7045 MB / 1.246 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002194/0.2858, allocations: 43.92 kB / 1.246 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2858, allocations: 4.062 kB / 1.246 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.2859, allocations: 23.97 kB / 1.246 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.2862, allocations: 4 kB / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003922/0.2866, allocations: 135 kB / 1.246 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.2869, allocations: 0.6768 MB / 1.247 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.514e-05/0.2869, allocations: 8.062 kB / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.597e-05/0.287, allocations: 7.438 kB / 1.247 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of SimCode: time 2.5e-07/0.287, allocations: 4 kB / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02121/0.3082, allocations: 1.454 MB / 1.248 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.553/7.861, allocations: 8.672 kB / 1.248 GB, free: 1.84 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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) Reference file matches