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.005113/0.005113, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.001409/0.001409, allocations: 195.4 kB / 16.67 MB, free: 5.934 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.269/1.269, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.567/2.567, allocations: 482.6 MB / 0.755 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 71.83 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2687, allocations: 162.3 MB / 1.242 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001589/0.2703, allocations: 0.6257 MB / 1.242 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008181/0.2711, allocations: 0.8156 MB / 1.243 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.618e-05/0.2712, allocations: 4 kB / 1.243 GB, free: 8.371 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.203e-05/0.2712, allocations: 4 kB / 1.243 GB, free: 8.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.523e-05/0.2713, allocations: 3.938 kB / 1.243 GB, free: 8.363 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001116/0.2714, allocations: 15.98 kB / 1.243 GB, free: 8.348 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.025e-05/0.2714, allocations: 23.92 kB / 1.243 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.324e-05/0.2715, allocations: 4 kB / 1.243 GB, free: 8.32 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.16e-05/0.2716, allocations: 15.92 kB / 1.243 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.097e-05/0.2716, allocations: 11.98 kB / 1.243 GB, free: 8.293 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.2716, allocations: 4 kB / 1.243 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.546e-06/0.2716, allocations: 0 / 1.243 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.894e-05/0.2717, allocations: 15.92 kB / 1.243 GB, free: 8.273 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.279e-05/0.2717, allocations: 4 kB / 1.243 GB, free: 8.27 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 6.856e-05/0.2718, allocations: 27.89 kB / 1.243 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2718, allocations: 4 kB / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2718, allocations: 0 / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.2718, allocations: 0 / 1.243 GB, free: 8.238 MB / 0.9981 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.0004145/0.2722, allocations: 335.4 kB / 1.244 GB, free: 7.859 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.2723, allocations: 8.031 kB / 1.244 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.399e-05/0.2723, allocations: 38.75 kB / 1.244 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.767e-05/0.2723, allocations: 4.938 kB / 1.244 GB, free: 7.801 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.2724, allocations: 176.2 kB / 1.244 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.2725, allocations: 4.312 kB / 1.244 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.802e-06/0.2725, allocations: 4.375 kB / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.2726, allocations: 54.22 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.2727, allocations: 7.875 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.2727, allocations: 0 / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.2727, allocations: 0 / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.2729, allocations: 43.89 kB / 1.244 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002979/0.2732, allocations: 244.9 kB / 1.244 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.2733, allocations: 46.53 kB / 1.244 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.695e-05/0.2734, allocations: 20.91 kB / 1.244 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.2734, allocations: 8 kB / 1.244 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.2735, allocations: 34.55 kB / 1.244 GB, free: 7.055 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.2735, allocations: 0 / 1.244 GB, free: 7.055 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0003597/0.2738, allocations: 85.58 kB / 1.244 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.2739, allocations: 51.41 kB / 1.244 GB, free: 6.902 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.127e-05/0.2739, allocations: 102 kB / 1.245 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.274, allocations: 29.7 kB / 1.245 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.962e-05/0.274, allocations: 84.12 kB / 1.245 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.443e-05/0.274, allocations: 3.953 kB / 1.245 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.2741, allocations: 17.72 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.2742, allocations: 310.8 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.662e-05/0.2743, allocations: 19.97 kB / 1.245 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.819e-05/0.2744, allocations: 19.98 kB / 1.245 GB, free: 6.293 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.2745, allocations: 44.81 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.2746, allocations: 11.88 kB / 1.245 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000197/0.2748, allocations: 65.66 kB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.2748, allocations: 5.562 kB / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-06/0.2748, allocations: 96 / 1.245 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.2748, allocations: 8 kB / 1.245 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.938e-05/0.2749, allocations: 7.984 kB / 1.245 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.526e-06/0.2749, allocations: 0 / 1.245 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.971e-05/0.275, allocations: 4 kB / 1.245 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.275, allocations: 0 / 1.245 GB, free: 6.141 MB / 0.9981 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.131e-05/0.2751, allocations: 117.8 kB / 1.245 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.2751, allocations: 7.938 kB / 1.245 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.472e-05/0.2751, allocations: 3.125 kB / 1.245 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.2751, allocations: 4 kB / 1.245 GB, free: 6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.2751, allocations: 4 kB / 1.245 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2751, allocations: 0 / 1.245 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.2753, allocations: 161.5 kB / 1.245 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.2753, allocations: 0 / 1.245 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.781e-05/0.2754, allocations: 11.98 kB / 1.245 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.2754, allocations: 7.875 kB / 1.245 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.2754, allocations: 0 / 1.245 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2754, allocations: 3.984 kB / 1.246 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2754, allocations: 0 / 1.246 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000245/0.2756, allocations: 167.5 kB / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.083e-05/0.2757, allocations: 81.3 kB / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.2757, allocations: 0 / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.885e-05/0.2758, allocations: 7.984 kB / 1.246 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.2758, allocations: 7.984 kB / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-06/0.2758, allocations: 8.031 kB / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.917e-05/0.2759, allocations: 83.27 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2759, allocations: 0 / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001987/0.2761, allocations: 4 kB / 1.246 GB, free: 5.379 MB / 0.9981 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.0005301/0.2766, allocations: 0.705 MB / 1.247 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002051/0.2768, allocations: 39.95 kB / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2769, allocations: 0 / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.275e-05/0.277, allocations: 23.97 kB / 1.247 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/0.2772, allocations: 4 kB / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003559/0.2776, allocations: 139.2 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.2778, allocations: 0.6768 MB / 1.247 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.646e-05/0.2779, allocations: 4 kB / 1.247 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.421e-05/0.2779, allocations: 7.438 kB / 1.247 GB, free: 3.688 MB / 0.9981 GB Notification: Performance of SimCode: time 2.7e-07/0.2779, allocations: 4 kB / 1.247 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0936/0.3715, allocations: 1.452 MB / 1.249 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.43, allocations: 12.25 kB / 1.249 GB, free: 2.359 MB / 0.9981 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=400 --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) Reference file matches