Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_10_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.005686/0.005686, allocations: 99.66 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.001117/0.001118, allocations: 188 kB / 16.67 MB, free: 5.977 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.423/1.423, 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 10.1.1-maint.10.0.x/package.mo): time 2.62/2.62, allocations: 437.1 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.89 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2817, allocations: 151.6 MB / 1.166 GB, free: 7.336 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001719/0.2835, allocations: 0.6152 MB / 1.167 GB, free: 6.715 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008971/0.2844, allocations: 0.8238 MB / 1.168 GB, free: 5.879 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.2e-05/0.2844, allocations: 4 kB / 1.168 GB, free: 5.875 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.507e-05/0.2845, allocations: 0 / 1.168 GB, free: 5.875 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.784e-05/0.2846, allocations: 7.875 kB / 1.168 GB, free: 5.867 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001368/0.2847, allocations: 19.97 kB / 1.168 GB, free: 5.848 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.294e-05/0.2848, allocations: 23.94 kB / 1.168 GB, free: 5.824 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.393e-05/0.2849, allocations: 11.98 kB / 1.168 GB, free: 5.812 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.759e-05/0.2849, allocations: 4 kB / 1.168 GB, free: 5.809 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.859e-05/0.285, allocations: 15.92 kB / 1.168 GB, free: 5.793 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.285, allocations: 0 / 1.168 GB, free: 5.793 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.066e-05/0.285, allocations: 8 kB / 1.168 GB, free: 5.785 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.2851, allocations: 7.984 kB / 1.168 GB, free: 5.777 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.982e-05/0.2851, allocations: 15.92 kB / 1.168 GB, free: 5.762 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 7.433e-05/0.2852, allocations: 19.91 kB / 1.168 GB, free: 5.742 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2852, allocations: 0 / 1.168 GB, free: 5.742 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2852, allocations: 0 / 1.168 GB, free: 5.742 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.417e-06/0.2852, allocations: 0 / 1.168 GB, free: 5.742 MB / 0.92 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.0004131/0.2856, allocations: 346.2 kB / 1.168 GB, free: 5.355 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2857, allocations: 8.031 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.151e-05/0.2857, allocations: 42.67 kB / 1.168 GB, free: 5.297 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.231e-05/0.2857, allocations: 0.9375 kB / 1.168 GB, free: 5.297 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.2858, allocations: 164.4 kB / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2859, allocations: 384 / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.2859, allocations: 384 / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001693/0.2861, allocations: 54.22 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.2861, allocations: 3.938 kB / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.268e-06/0.2861, allocations: 8 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.2861, allocations: 3.984 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.2863, allocations: 39.91 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.2866, allocations: 249 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.2868, allocations: 42.48 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.62e-05/0.2869, allocations: 24.91 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.716e-05/0.2869, allocations: 4 kB / 1.169 GB, free: 4.609 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.2869, allocations: 30.56 kB / 1.169 GB, free: 4.57 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.253e-06/0.2869, allocations: 0 / 1.169 GB, free: 4.57 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0003513/0.2873, allocations: 93.48 kB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.2873, allocations: 55.39 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.05e-05/0.2874, allocations: 102 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.2874, allocations: 25.7 kB / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.959e-05/0.2875, allocations: 84.14 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.2875, allocations: 8.469 kB / 1.169 GB, free: 4.172 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.2875, allocations: 13.7 kB / 1.169 GB, free: 4.152 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.2876, allocations: 310.8 kB / 1.169 GB, free: 3.84 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.223e-05/0.2877, allocations: 19.98 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.546e-05/0.2878, allocations: 23.97 kB / 1.169 GB, free: 3.797 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.2879, allocations: 36.83 kB / 1.169 GB, free: 3.758 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.288, allocations: 11.81 kB / 1.169 GB, free: 3.746 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001925/0.2882, allocations: 65.66 kB / 1.169 GB, free: 3.676 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.2882, allocations: 8 kB / 1.169 GB, free: 3.668 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2882, allocations: 4.094 kB / 1.169 GB, free: 3.664 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.2882, allocations: 0 / 1.169 GB, free: 3.664 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.925e-05/0.2883, allocations: 11.98 kB / 1.169 GB, free: 3.652 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2883, allocations: 3.984 kB / 1.169 GB, free: 3.648 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.468e-05/0.2884, allocations: 11.98 kB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.2884, allocations: 0 / 1.17 GB, free: 3.637 MB / 0.92 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 7.329e-05/0.2885, allocations: 109.8 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.2885, allocations: 4 kB / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.748e-05/0.2885, allocations: 7.125 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.2885, allocations: 0 / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.2885, allocations: 3.984 kB / 1.17 GB, free: 3.504 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2885, allocations: 0 / 1.17 GB, free: 3.504 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.2887, allocations: 165.8 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2887, allocations: 4 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.08e-05/0.2888, allocations: 11.98 kB / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2888, allocations: 3.938 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.2888, allocations: 0 / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2888, allocations: 0 / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2888, allocations: 8 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000236/0.2891, allocations: 163.5 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.532e-05/0.2891, allocations: 88.94 kB / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.202e-05/0.2891, allocations: 0 / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-05/0.2892, allocations: 4 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/0.2893, allocations: 12.02 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.2893, allocations: 4 kB / 1.17 GB, free: 2.965 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.156e-05/0.2893, allocations: 83.45 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2893, allocations: 0 / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002236/0.2896, allocations: 4 kB / 1.17 GB, free: 2.879 MB / 0.92 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.0004896/0.2901, allocations: 0.7045 MB / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002013/0.2903, allocations: 39.95 kB / 1.171 GB, free: 2.105 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2903, allocations: 4 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.815e-05/0.2904, allocations: 15.98 kB / 1.171 GB, free: 2.086 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.2907, allocations: 8.156 kB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004075/0.2911, allocations: 139 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002153/0.2913, allocations: 0.6768 MB / 1.172 GB, free: 1.199 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.773e-05/0.2914, allocations: 4 kB / 1.172 GB, free: 1.195 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.1e-05/0.2914, allocations: 15.44 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of SimCode: time 2.31e-07/0.2914, allocations: 0 / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.3089, allocations: 1.438 MB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/8.069, allocations: 19.64 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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