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: translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002058/0.002058, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002602/0.002602, allocations: 194.3 kB / 16.53 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.56/1.56, allocations: 222.9 MB / 240.2 MB, free: 4.367 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.901/2.901, allocations: 437 MB / 0.7104 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002059/0.00206, allocations: 63.89 kB / 0.8692 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7812/0.7833, allocations: 151.6 MB / 1.017 GB, free: 2.453 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002166/0.7855, allocations: 0.613 MB / 1.018 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001142/0.7867, allocations: 0.8195 MB / 1.019 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.884e-05/0.7867, allocations: 4 kB / 1.019 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.01e-05/0.7868, allocations: 7.938 kB / 1.019 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.01e-05/0.7868, allocations: 3.984 kB / 1.019 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001651/0.787, allocations: 23.92 kB / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.477e-05/0.7871, allocations: 19.98 kB / 1.019 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.7872, allocations: 11.92 kB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.697e-05/0.7873, allocations: 11.94 kB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.958e-05/0.7874, allocations: 11.98 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.7874, allocations: 4 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.7874, allocations: 4 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.581e-05/0.7875, allocations: 7.922 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.087e-05/0.7875, allocations: 11.98 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.737e-05/0.7876, allocations: 19.91 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.7876, allocations: 0 / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7876, allocations: 0 / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.303e-06/0.7876, allocations: 0 / 1.019 GB, free: 0.8711 MB / 0.7637 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.0005783/0.7882, allocations: 341.4 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.7883, allocations: 8.031 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.7883, allocations: 8.938 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.7885, allocations: 172.3 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.7885, allocations: 4.375 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.7885, allocations: 384 / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.7887, allocations: 54.23 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.7888, allocations: 8.125 kB / 1.019 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.7888, allocations: 3.938 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.7888, allocations: 0 / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.789, allocations: 39.95 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004334/0.7894, allocations: 249 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.7896, allocations: 38.5 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.7897, allocations: 24.89 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.7897, allocations: 4 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.7898, allocations: 38.5 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.7898, allocations: 3.938 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0004144/0.7902, allocations: 85.64 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.7903, allocations: 51.41 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.874e-05/0.7904, allocations: 102 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.7904, allocations: 25.7 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.7905, allocations: 84.14 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.7905, allocations: 15.83 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.084e-05/0.7905, allocations: 9.719 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.7907, allocations: 326.8 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.935e-05/0.7908, allocations: 11.98 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.018e-05/0.7909, allocations: 27.92 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.7911, allocations: 40.81 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7911, allocations: 0 / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002244/0.7913, allocations: 73.59 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.7913, allocations: 4 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.7914, allocations: 4.094 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.7914, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.7915, allocations: 11.98 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.7915, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.371e-05/0.7916, allocations: 4 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-06/0.7916, allocations: 3.984 kB / 1.021 GB, free: 14.8 MB / 0.7794 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 9.708e-05/0.7917, allocations: 113.7 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.7e-05/0.7917, allocations: 7.906 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.226e-05/0.7917, allocations: 11.12 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.7917, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.7918, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.7918, allocations: 4 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.792, allocations: 165.6 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.792, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.792, allocations: 7.984 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.7921, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.7921, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.7921, allocations: 4 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.7921, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002846/0.7924, allocations: 167.6 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.7924, allocations: 81.09 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.7925, allocations: 3.938 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-05/0.7926, allocations: 7.984 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.7926, allocations: 15.92 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.7926, allocations: 4.031 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.055e-05/0.7927, allocations: 79.28 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7927, allocations: 0 / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002159/0.7929, allocations: 4 kB / 1.021 GB, free: 14.05 MB / 0.7794 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.0001306/0.793, allocations: 95.25 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002529/0.7933, allocations: 47.95 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.7933, allocations: 0 / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.7934, allocations: 23.97 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.7937, allocations: 7.938 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003312/0.7941, allocations: 109.5 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.7944, allocations: 0.6806 MB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.142e-05/0.7944, allocations: 4.125 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/0.7945, allocations: 11.44 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7945, allocations: 0 / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of Templates: time 0.003233/0.7977, allocations: 0.5875 MB / 1.023 GB, free: 12.43 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches