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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_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_latest_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.001382/0.001382, allocations: 110.4 kB / 15.99 MB, free: 6.355 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.001277/0.001278, allocations: 194 kB / 16.91 MB, free: 6.191 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.426/1.426, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.583/2.583, allocations: 469.4 MB / 0.7423 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 65.62 kB / 0.9083 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3341, allocations: 159.1 MB / 1.064 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002132/0.3363, allocations: 0.678 MB / 1.064 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.3374, allocations: 0.8196 MB / 1.065 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.493e-05/0.3374, allocations: 3.938 kB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.26e-05/0.3375, allocations: 4 kB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.408e-05/0.3375, allocations: 3.984 kB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001678/0.3377, allocations: 15.98 kB / 1.065 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.431e-05/0.3378, allocations: 19.94 kB / 1.065 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.3379, allocations: 15.92 kB / 1.065 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.836e-05/0.338, allocations: 8 kB / 1.065 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.768e-05/0.3381, allocations: 19.91 kB / 1.065 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.3381, allocations: 4 kB / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.025e-05/0.3381, allocations: 0 / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.856e-05/0.3381, allocations: 4 kB / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.846e-05/0.3382, allocations: 11.92 kB / 1.065 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 6.63e-05/0.3382, allocations: 15.97 kB / 1.065 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3382, allocations: 0 / 1.065 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3383, allocations: 0 / 1.065 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.144e-06/0.3383, allocations: 0 / 1.065 GB, free: 13.74 MB / 0.8419 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.0004632/0.3387, allocations: 339.8 kB / 1.066 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3388, allocations: 8.031 kB / 1.066 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.737e-05/0.3388, allocations: 4.844 kB / 1.066 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.339, allocations: 172.3 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.339, allocations: 384 / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.7e-05/0.339, allocations: 4.359 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002209/0.3392, allocations: 50.23 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3393, allocations: 4.188 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.482e-05/0.3393, allocations: 7.938 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3393, allocations: 4 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.3395, allocations: 35.95 kB / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006318/0.3402, allocations: 252.9 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.3404, allocations: 42.5 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.3405, allocations: 24.91 kB / 1.066 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.3406, allocations: 7.969 kB / 1.066 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.875e-05/0.3406, allocations: 34.56 kB / 1.066 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 2.215e-06/0.3406, allocations: 0 / 1.066 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0005189/0.3412, allocations: 89.58 kB / 1.066 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.3412, allocations: 55.41 kB / 1.066 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.3414, allocations: 101.8 kB / 1.066 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.3414, allocations: 25.7 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.007e-05/0.3415, allocations: 88.05 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.3415, allocations: 7.938 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.235e-05/0.3416, allocations: 9.719 kB / 1.067 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3417, allocations: 315 kB / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.502e-05/0.3418, allocations: 23.97 kB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.846e-05/0.3419, allocations: 15.98 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.3421, allocations: 44.75 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3421, allocations: 0 / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002086/0.3423, allocations: 81.5 kB / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3423, allocations: 8 kB / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3424, allocations: 0 / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3424, allocations: 0 / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.3425, allocations: 7.984 kB / 1.067 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.3425, allocations: 7.984 kB / 1.067 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.523e-05/0.3426, allocations: 8 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.3426, allocations: 0 / 1.067 GB, free: 11.67 MB / 0.8419 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.753e-05/0.3427, allocations: 119.8 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.3427, allocations: 4 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.309e-05/0.3427, allocations: 3.125 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3427, allocations: 0 / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3428, allocations: 0 / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3428, allocations: 0 / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.3429, allocations: 165.6 kB / 1.067 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.343, allocations: 0 / 1.067 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.777e-05/0.343, allocations: 8 kB / 1.067 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3431, allocations: 4 kB / 1.067 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3431, allocations: 3.984 kB / 1.067 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3431, allocations: 0 / 1.067 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3431, allocations: 0 / 1.067 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002462/0.3433, allocations: 171.4 kB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.3434, allocations: 77.11 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.3434, allocations: 4.031 kB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.021e-05/0.3435, allocations: 7.984 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.347e-05/0.3435, allocations: 4 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-06/0.3436, allocations: 4 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.029e-05/0.3436, allocations: 83.27 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3436, allocations: 0 / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002166/0.3438, allocations: 4 kB / 1.068 GB, free: 10.93 MB / 0.8419 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.0001165/0.3439, allocations: 99.25 kB / 1.068 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002333/0.3442, allocations: 47.89 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3442, allocations: 0 / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.912e-05/0.3443, allocations: 15.98 kB / 1.068 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.3446, allocations: 24.53 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003814/0.345, allocations: 143.3 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.3453, allocations: 0.6768 MB / 1.069 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.026e-05/0.3454, allocations: 11.42 kB / 1.069 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of SimCode: time 4.71e-07/0.3454, allocations: 0 / 1.069 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of Templates: time 0.002335/0.3477, allocations: 0.6012 MB / 1.069 GB, free: 9.262 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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