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.001383/0.001383, allocations: 105.2 kB / 16.27 MB, free: 5.98 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.0013/0.0013, allocations: 189.8 kB / 17.2 MB, free: 5.602 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.45/1.45, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.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.532/2.532, allocations: 437.1 MB / 0.7111 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 60.31 kB / 0.8699 GB, free: 2.16 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2927, allocations: 151.6 MB / 1.018 GB, free: 10.6 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002005/0.2947, allocations: 0.6242 MB / 1.019 GB, free: 9.98 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.2958, allocations: 0.8234 MB / 1.019 GB, free: 9.145 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.053e-05/0.2958, allocations: 0 / 1.019 GB, free: 9.145 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.517e-05/0.2959, allocations: 7.938 kB / 1.019 GB, free: 9.137 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.438e-05/0.2959, allocations: 0 / 1.019 GB, free: 9.137 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001471/0.2961, allocations: 23.91 kB / 1.019 GB, free: 9.113 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.006e-05/0.2962, allocations: 23.98 kB / 1.019 GB, free: 9.09 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.2963, allocations: 4 kB / 1.019 GB, free: 9.086 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.108e-05/0.2964, allocations: 19.86 kB / 1.019 GB, free: 9.066 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.635e-05/0.2964, allocations: 11.98 kB / 1.019 GB, free: 9.055 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.515e-05/0.2964, allocations: 0 / 1.019 GB, free: 9.055 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.562e-05/0.2964, allocations: 4 kB / 1.019 GB, free: 9.051 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.845e-05/0.2965, allocations: 15.92 kB / 1.02 GB, free: 9.035 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.83e-05/0.2965, allocations: 7.938 kB / 1.02 GB, free: 9.027 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.648e-05/0.2966, allocations: 23.95 kB / 1.02 GB, free: 9.004 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2966, allocations: 0 / 1.02 GB, free: 9.004 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2966, allocations: 0 / 1.02 GB, free: 9.004 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.2966, allocations: 0 / 1.02 GB, free: 9.004 MB / 0.795 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.0005266/0.2971, allocations: 339.8 kB / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2972, allocations: 8.031 kB / 1.02 GB, free: 8.613 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.256e-05/0.2972, allocations: 4.844 kB / 1.02 GB, free: 8.609 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.2974, allocations: 172.3 kB / 1.02 GB, free: 8.402 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.2974, allocations: 4.359 kB / 1.02 GB, free: 8.398 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.2974, allocations: 384 / 1.02 GB, free: 8.398 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.2976, allocations: 50.23 kB / 1.02 GB, free: 8.344 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.2976, allocations: 8.109 kB / 1.02 GB, free: 8.336 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.2976, allocations: 3.938 kB / 1.02 GB, free: 8.332 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.2977, allocations: 4 kB / 1.02 GB, free: 8.328 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.2978, allocations: 35.89 kB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003895/0.2982, allocations: 257 kB / 1.02 GB, free: 7.992 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.2984, allocations: 38.5 kB / 1.02 GB, free: 7.945 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.702e-05/0.2985, allocations: 28.89 kB / 1.02 GB, free: 7.914 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.2985, allocations: 0 / 1.02 GB, free: 7.914 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.2986, allocations: 38.5 kB / 1.02 GB, free: 7.867 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.2986, allocations: 3.938 kB / 1.02 GB, free: 7.863 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0003735/0.299, allocations: 81.64 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.299, allocations: 55.41 kB / 1.021 GB, free: 7.711 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.148e-05/0.2991, allocations: 101.8 kB / 1.021 GB, free: 7.602 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.2991, allocations: 25.83 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.285e-05/0.2992, allocations: 84.14 kB / 1.021 GB, free: 7.484 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.2992, allocations: 7.891 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.2993, allocations: 17.72 kB / 1.021 GB, free: 7.453 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2994, allocations: 310.8 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.45e-05/0.2995, allocations: 23.97 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.58e-05/0.2996, allocations: 15.92 kB / 1.021 GB, free: 7.102 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.2998, allocations: 48.88 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2998, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000225/0.3, allocations: 69.59 kB / 1.021 GB, free: 6.977 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3001, allocations: 8 kB / 1.021 GB, free: 6.969 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.3001, allocations: 0 / 1.021 GB, free: 6.969 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.3001, allocations: 0 / 1.021 GB, free: 6.969 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.761e-05/0.3002, allocations: 12.02 kB / 1.021 GB, free: 6.957 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.3002, allocations: 4 kB / 1.021 GB, free: 6.953 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.088e-05/0.3003, allocations: 0 / 1.021 GB, free: 6.953 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.3003, allocations: 4 kB / 1.021 GB, free: 6.949 MB / 0.795 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.02e-05/0.3004, allocations: 122.4 kB / 1.021 GB, free: 6.82 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.3004, allocations: 3.906 kB / 1.021 GB, free: 6.816 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.006e-05/0.3004, allocations: 11.12 kB / 1.021 GB, free: 6.805 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.3004, allocations: 0 / 1.021 GB, free: 6.805 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.3005, allocations: 4 kB / 1.021 GB, free: 6.801 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3005, allocations: 0 / 1.021 GB, free: 6.801 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001832/0.3006, allocations: 161.6 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3007, allocations: 0 / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.032e-05/0.3007, allocations: 8 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3007, allocations: 7.922 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.3007, allocations: 0 / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3008, allocations: 0 / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3008, allocations: 0 / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.301, allocations: 171.5 kB / 1.022 GB, free: 6.395 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.205e-05/0.3011, allocations: 77.11 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.3011, allocations: 0 / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.189e-05/0.3012, allocations: 7.984 kB / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.3013, allocations: 8 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-06/0.3013, allocations: 3.938 kB / 1.022 GB, free: 6.281 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.946e-05/0.3013, allocations: 91.3 kB / 1.022 GB, free: 6.191 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3013, allocations: 0 / 1.022 GB, free: 6.191 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002084/0.3015, allocations: 7.938 kB / 1.022 GB, free: 6.184 MB / 0.795 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.0001055/0.3016, allocations: 95.58 kB / 1.022 GB, free: 6.082 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002332/0.3019, allocations: 39.95 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3019, allocations: 0 / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.461e-05/0.302, allocations: 24.05 kB / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.3023, allocations: 14.42 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00036/0.3026, allocations: 139.1 kB / 1.022 GB, free: 5.84 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.303, allocations: 0.6729 MB / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.303, allocations: 15.42 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of SimCode: time 3.61e-07/0.303, allocations: 0 / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of Templates: time 0.002075/0.3051, allocations: 0.5923 MB / 1.024 GB, free: 4.539 MB / 0.795 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/jenkins1/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