Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0009966/0.0009966, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008881/0.008882, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.551/1.551, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.679/2.679, allocations: 390.9 MB / 0.6663 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003751/0.0003751, allocations: 8 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8464/0.8468, allocations: 142.4 MB / 0.955 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0008847/0.8477, allocations: 353.4 kB / 0.9554 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008284/0.8486, allocations: 0.8222 MB / 0.9562 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.196e-05/0.8486, allocations: 1.375 kB / 0.9562 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.003e-05/0.8486, allocations: 0 / 0.9562 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.488e-05/0.8487, allocations: 0 / 0.9562 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001478/0.8489, allocations: 12.3 kB / 0.9562 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.004e-05/0.8489, allocations: 25.92 kB / 0.9562 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.849, allocations: 6.797 kB / 0.9562 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.454e-05/0.8491, allocations: 12.3 kB / 0.9562 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.164e-05/0.8492, allocations: 11.59 kB / 0.9563 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.8492, allocations: 1.469 kB / 0.9563 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.053e-05/0.8492, allocations: 1.938 kB / 0.9563 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.709e-05/0.8492, allocations: 7.984 kB / 0.9563 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.385e-05/0.8493, allocations: 32.45 kB / 0.9563 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.122e-05/0.8494, allocations: 32.47 kB / 0.9563 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.8494, allocations: 0 / 0.9563 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.695e-06/0.8494, allocations: 0 / 0.9563 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.8494, allocations: 3.938 kB / 0.9563 GB, free: 6.684 MB / 0.7169 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.0003999/0.8498, allocations: 341.8 kB / 0.9567 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.8498, allocations: 9.719 kB / 0.9567 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.954e-05/0.8499, allocations: 5.812 kB / 0.9567 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.345e-05/0.85, allocations: 165.4 kB / 0.9568 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.85, allocations: 1.531 kB / 0.9568 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.85, allocations: 1.625 kB / 0.9568 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.8502, allocations: 63.78 kB / 0.9569 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.8502, allocations: 192 / 0.9569 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.8502, allocations: 3.938 kB / 0.9569 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.8503, allocations: 1.031 kB / 0.9569 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001865/0.8504, allocations: 41.38 kB / 0.9569 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003244/0.8508, allocations: 262.4 kB / 0.9572 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.8509, allocations: 48.33 kB / 0.9572 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.851, allocations: 32.25 kB / 0.9573 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.8511, allocations: 1.062 kB / 0.9573 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.276e-05/0.8511, allocations: 31.66 kB / 0.9573 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.8511, allocations: 0 / 0.9573 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004007/0.8515, allocations: 109.2 kB / 0.9574 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.8515, allocations: 51.41 kB / 0.9574 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.287e-05/0.8516, allocations: 99.64 kB / 0.9575 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.799e-06/0.8516, allocations: 25.7 kB / 0.9576 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.606e-05/0.8516, allocations: 81.33 kB / 0.9576 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.8517, allocations: 17.2 kB / 0.9577 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/0.8517, allocations: 9.719 kB / 0.9577 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.58e-05/0.8517, allocations: 316 kB / 0.958 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.532e-05/0.8518, allocations: 18.67 kB / 0.958 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.375e-05/0.8519, allocations: 30.81 kB / 0.958 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.8521, allocations: 50.83 kB / 0.9581 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.8521, allocations: 0 / 0.9581 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002104/0.8523, allocations: 91.94 kB / 0.9582 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.8524, allocations: 5.125 kB / 0.9582 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-06/0.8524, allocations: 0 / 0.9582 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.8524, allocations: 0 / 0.9582 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.8525, allocations: 12.73 kB / 0.9582 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.8525, allocations: 1.062 kB / 0.9582 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.675e-05/0.8526, allocations: 13.95 kB / 0.9582 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.8526, allocations: 1.438 kB / 0.9582 GB, free: 4.844 MB / 0.7169 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 5.586e-05/0.8527, allocations: 110.9 kB / 0.9583 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.8527, allocations: 1.25 kB / 0.9583 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.962e-05/0.8527, allocations: 8.344 kB / 0.9583 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.8527, allocations: 0 / 0.9583 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.8527, allocations: 1.344 kB / 0.9583 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.8527, allocations: 3.984 kB / 0.9583 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.8529, allocations: 161.9 kB / 0.9585 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.8529, allocations: 5.188 kB / 0.9585 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.259e-05/0.8529, allocations: 12.48 kB / 0.9585 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.853, allocations: 0 / 0.9585 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.853, allocations: 1.062 kB / 0.9585 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.853, allocations: 7.938 kB / 0.9585 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.853, allocations: 1.125 kB / 0.9585 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.8532, allocations: 182.2 kB / 0.9587 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.256e-05/0.8532, allocations: 82.53 kB / 0.9587 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.8533, allocations: 3.984 kB / 0.9587 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.431e-05/0.8534, allocations: 10.66 kB / 0.9588 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.242e-05/0.8534, allocations: 10.67 kB / 0.9588 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.8534, allocations: 0 / 0.9588 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.479e-05/0.8535, allocations: 78.97 kB / 0.9588 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8535, allocations: 0 / 0.9588 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000209/0.8537, allocations: 3.75 kB / 0.9588 GB, free: 4.148 MB / 0.7169 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.0001015/0.8538, allocations: 100.4 kB / 0.9589 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002405/0.854, allocations: 56.28 kB / 0.959 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.854, allocations: 0 / 0.959 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.67e-05/0.8541, allocations: 29.56 kB / 0.959 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.8544, allocations: 15.66 kB / 0.959 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000285/0.8547, allocations: 105.3 kB / 0.9591 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.8548, allocations: 0.6768 MB / 0.9598 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.226e-05/0.8549, allocations: 1.812 kB / 0.9598 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.953e-05/0.8549, allocations: 9.281 kB / 0.9598 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.8549, allocations: 4 kB / 0.9598 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of Templates: time 0.002544/0.8575, allocations: 0.5032 MB / 0.9603 GB, free: 2.922 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches