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.001827/0.001827, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.002169/0.002169, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.475/1.475, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.518/2.518, allocations: 437 MB / 0.711 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 66.59 kB / 0.8699 GB, free: 2.168 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2405, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001845/0.2424, allocations: 0.6234 MB / 1.019 GB, free: 10 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008537/0.2433, allocations: 0.8195 MB / 1.019 GB, free: 9.168 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.894e-05/0.2433, allocations: 4 kB / 1.019 GB, free: 9.164 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.575e-05/0.2434, allocations: 0 / 1.019 GB, free: 9.164 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.397e-05/0.2434, allocations: 11.92 kB / 1.019 GB, free: 9.152 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001288/0.2436, allocations: 19.92 kB / 1.019 GB, free: 9.133 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.405e-05/0.2436, allocations: 16 kB / 1.019 GB, free: 9.117 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.384e-05/0.2437, allocations: 11.98 kB / 1.019 GB, free: 9.105 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.72e-05/0.2438, allocations: 7.938 kB / 1.019 GB, free: 9.098 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.135e-05/0.2438, allocations: 11.98 kB / 1.019 GB, free: 9.086 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.2439, allocations: 7.984 kB / 1.019 GB, free: 9.078 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.038e-05/0.2439, allocations: 0 / 1.019 GB, free: 9.078 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.717e-05/0.2439, allocations: 15.88 kB / 1.019 GB, free: 9.062 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.409e-05/0.2439, allocations: 7.984 kB / 1.019 GB, free: 9.055 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 6.321e-05/0.244, allocations: 23.91 kB / 1.019 GB, free: 9.031 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.244, allocations: 4 kB / 1.02 GB, free: 9.027 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.152e-06/0.244, allocations: 0 / 1.02 GB, free: 9.027 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.244, allocations: 3.938 kB / 1.02 GB, free: 9.023 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.0003987/0.2444, allocations: 337.8 kB / 1.02 GB, free: 8.645 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.2445, allocations: 8.031 kB / 1.02 GB, free: 8.637 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.2445, allocations: 8.844 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.885e-05/0.2446, allocations: 168.3 kB / 1.02 GB, free: 8.426 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.2446, allocations: 4.375 kB / 1.02 GB, free: 8.422 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.2446, allocations: 4.375 kB / 1.02 GB, free: 8.418 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.2448, allocations: 50.23 kB / 1.02 GB, free: 8.363 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.2448, allocations: 192 / 1.02 GB, free: 8.363 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.2449, allocations: 3.938 kB / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2449, allocations: 0 / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.245, allocations: 47.88 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003342/0.2454, allocations: 253 kB / 1.02 GB, free: 8.016 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.2455, allocations: 46.44 kB / 1.02 GB, free: 7.961 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.316e-05/0.2456, allocations: 24.89 kB / 1.02 GB, free: 7.934 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.2457, allocations: 0 / 1.02 GB, free: 7.934 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.2457, allocations: 38.56 kB / 1.02 GB, free: 7.887 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.2457, allocations: 0 / 1.02 GB, free: 7.887 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.000364/0.2461, allocations: 85.58 kB / 1.021 GB, free: 7.797 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.2461, allocations: 51.41 kB / 1.021 GB, free: 7.734 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.271e-05/0.2462, allocations: 101.8 kB / 1.021 GB, free: 7.625 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.2462, allocations: 25.7 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.2462, allocations: 88.27 kB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.2463, allocations: 7.906 kB / 1.021 GB, free: 7.496 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.173e-05/0.2463, allocations: 13.72 kB / 1.021 GB, free: 7.477 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.055e-05/0.2464, allocations: 314.8 kB / 1.021 GB, free: 7.16 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.685e-05/0.2465, allocations: 15.98 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.714e-05/0.2466, allocations: 19.98 kB / 1.021 GB, free: 7.125 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.2467, allocations: 48.81 kB / 1.021 GB, free: 7.074 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2468, allocations: 0 / 1.021 GB, free: 7.074 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001977/0.247, allocations: 69.59 kB / 1.021 GB, free: 7 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.247, allocations: 6.812 kB / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.247, allocations: 0 / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.247, allocations: 0 / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.349e-05/0.2471, allocations: 11.98 kB / 1.021 GB, free: 6.984 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.2471, allocations: 4.031 kB / 1.021 GB, free: 6.98 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.474e-05/0.2472, allocations: 7.984 kB / 1.021 GB, free: 6.973 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-06/0.2472, allocations: 0 / 1.021 GB, free: 6.973 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 7.445e-05/0.2473, allocations: 117.8 kB / 1.021 GB, free: 6.848 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.2473, allocations: 3.906 kB / 1.021 GB, free: 6.844 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.641e-05/0.2473, allocations: 3.125 kB / 1.021 GB, free: 6.84 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2473, allocations: 0 / 1.021 GB, free: 6.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2473, allocations: 3.938 kB / 1.021 GB, free: 6.836 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2473, allocations: 4 kB / 1.021 GB, free: 6.832 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.2475, allocations: 165.6 kB / 1.022 GB, free: 6.621 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2475, allocations: 4 kB / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-05/0.2476, allocations: 15.92 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2476, allocations: 0 / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.2476, allocations: 4 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2476, allocations: 3.938 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2476, allocations: 0 / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.2478, allocations: 163.5 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.923e-05/0.2479, allocations: 81.11 kB / 1.022 GB, free: 6.32 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.2479, allocations: 0 / 1.022 GB, free: 6.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.925e-05/0.248, allocations: 7.984 kB / 1.022 GB, free: 6.312 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.248, allocations: 7.984 kB / 1.022 GB, free: 6.305 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.248, allocations: 0 / 1.022 GB, free: 6.305 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.289e-05/0.2481, allocations: 83.28 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2481, allocations: 4.031 kB / 1.022 GB, free: 6.219 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002073/0.2483, allocations: 4 kB / 1.022 GB, free: 6.215 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 9.067e-05/0.2484, allocations: 95.25 kB / 1.022 GB, free: 6.113 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002106/0.2486, allocations: 43.89 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2486, allocations: 0 / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.009e-05/0.2487, allocations: 28.03 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.249, allocations: 7.938 kB / 1.022 GB, free: 6.035 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002854/0.2493, allocations: 139.2 kB / 1.022 GB, free: 5.867 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.2495, allocations: 0.6768 MB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/0.2495, allocations: 7.438 kB / 1.023 GB, free: 5.156 MB / 0.795 GB Notification: Performance of SimCode: time 2.6e-07/0.2495, allocations: 0 / 1.023 GB, free: 5.156 MB / 0.795 GB Notification: Performance of Templates: time 0.001613/0.2511, allocations: 0.6091 MB / 1.023 GB, free: 4.555 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=480 -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