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.001781/0.001781, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00193/0.00193, allocations: 192.8 kB / 16.25 MB, free: 6.629 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.594/1.594, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.916/2.916, allocations: 437 MB / 0.7101 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 71.88 kB / 0.8688 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7864/0.7885, allocations: 151.6 MB / 1.017 GB, free: 2.883 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002128/0.7906, allocations: 0.6874 MB / 1.017 GB, free: 2.199 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.7918, allocations: 0.8157 MB / 1.018 GB, free: 1.371 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.922e-05/0.7918, allocations: 4 kB / 1.018 GB, free: 1.367 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.686e-05/0.7919, allocations: 3.938 kB / 1.018 GB, free: 1.363 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.282e-05/0.792, allocations: 4 kB / 1.018 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.7921, allocations: 12 kB / 1.018 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.055e-05/0.7922, allocations: 23.92 kB / 1.018 GB, free: 1.324 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.7923, allocations: 8 kB / 1.018 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.704e-05/0.7924, allocations: 15.91 kB / 1.018 GB, free: 1.301 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.015e-05/0.7924, allocations: 11.98 kB / 1.018 GB, free: 1.289 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.7925, allocations: 4 kB / 1.018 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.7925, allocations: 0 / 1.018 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.142e-05/0.7925, allocations: 11.94 kB / 1.018 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.846e-05/0.7925, allocations: 8 kB / 1.018 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.059e-05/0.7926, allocations: 27.88 kB / 1.018 GB, free: 1.238 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7927, allocations: 0 / 1.018 GB, free: 1.238 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.854e-06/0.7927, allocations: 4 kB / 1.018 GB, free: 1.234 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.361e-06/0.7927, allocations: 0 / 1.018 GB, free: 1.234 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.0005263/0.7932, allocations: 341.5 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.7933, allocations: 8.031 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.7933, allocations: 4.938 kB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.7935, allocations: 172.2 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.7935, allocations: 4.375 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.7935, allocations: 4.375 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.7937, allocations: 50.23 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.7937, allocations: 4.172 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.7937, allocations: 3.938 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.7937, allocations: 0 / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.7939, allocations: 39.95 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000379/0.7943, allocations: 249 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001483/0.7945, allocations: 46.44 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.106e-05/0.7946, allocations: 24.89 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.7946, allocations: 0 / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.7946, allocations: 38.56 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.7947, allocations: 3.938 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0003813/0.795, allocations: 85.58 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.7951, allocations: 51.41 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.245e-05/0.7952, allocations: 101.8 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.7952, allocations: 25.7 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.756e-05/0.7953, allocations: 88.27 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.7953, allocations: 11.84 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.363e-05/0.7954, allocations: 9.719 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.7955, allocations: 318.8 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.469e-05/0.7956, allocations: 15.98 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.701e-05/0.7957, allocations: 15.98 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000165/0.7959, allocations: 48.88 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7959, allocations: 0 / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002158/0.7961, allocations: 73.53 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.7961, allocations: 5.562 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.7961, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.7962, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.7963, allocations: 16.02 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.7963, allocations: 0 / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.306e-05/0.7964, allocations: 4 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.7964, allocations: 3.984 kB / 1.02 GB, free: 15.18 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 0.0001075/0.7965, allocations: 117.8 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.749e-05/0.7965, allocations: 3.906 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.15e-05/0.7966, allocations: 3.125 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.7966, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.7966, allocations: 4 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.7966, allocations: 3.938 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.7968, allocations: 165.6 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.7968, allocations: 4 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.15e-05/0.7969, allocations: 7.984 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.7969, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.7969, allocations: 8 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.7969, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.7969, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002811/0.7972, allocations: 167.4 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.794e-05/0.7973, allocations: 81.11 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.7973, allocations: 3.938 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.023e-05/0.7974, allocations: 7.984 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/0.7974, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.7975, allocations: 3.984 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.548e-05/0.7975, allocations: 87.31 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7975, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002195/0.7977, allocations: 4 kB / 1.021 GB, free: 14.42 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.000141/0.7979, allocations: 96.11 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002361/0.7981, allocations: 43.89 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.7981, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.483e-05/0.7982, allocations: 28.03 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.7986, allocations: 9.828 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000413/0.799, allocations: 105.6 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.7994, allocations: 0.6806 MB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.087e-05/0.7994, allocations: 8.062 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.107e-05/0.7995, allocations: 7.438 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.7995, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of Templates: time 0.003106/0.8026, allocations: 0.5256 MB / 1.022 GB, free: 12.87 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