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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001027/0.001027, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001052/0.001052, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.071/3.071, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003811, allocations: 8.75 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.3513, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0009271/0.3523, allocations: 343.4 kB / 1.058 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009876/0.3533, allocations: 0.8196 MB / 1.059 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.164e-05/0.3533, allocations: 0 / 1.059 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.109e-05/0.3534, allocations: 0 / 1.059 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.161e-05/0.3535, allocations: 7.922 kB / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001728/0.3536, allocations: 12 kB / 1.059 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.398e-05/0.3537, allocations: 23.91 kB / 1.059 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.3539, allocations: 8 kB / 1.059 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.921e-05/0.3539, allocations: 11.98 kB / 1.059 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.042e-05/0.354, allocations: 15.92 kB / 1.059 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.3541, allocations: 0 / 1.059 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.108e-05/0.3541, allocations: 0 / 1.059 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.501e-05/0.3541, allocations: 4 kB / 1.059 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.095e-05/0.3541, allocations: 25.7 kB / 1.059 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.975e-05/0.3542, allocations: 15.95 kB / 1.059 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.078e-05/0.3542, allocations: 4 kB / 1.059 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3542, allocations: 0 / 1.059 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.3542, allocations: 0 / 1.059 GB, free: 4.023 MB / 0.8106 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.0005521/0.3548, allocations: 339.6 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.3549, allocations: 8.031 kB / 1.06 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.3549, allocations: 4 kB / 1.06 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.3551, allocations: 174.8 kB / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.3551, allocations: 3.984 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.3551, allocations: 7.953 kB / 1.06 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.3554, allocations: 57.67 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3554, allocations: 0 / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.3554, allocations: 4 kB / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3554, allocations: 0 / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001854/0.3556, allocations: 47.95 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.3561, allocations: 256.9 kB / 1.06 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.3563, allocations: 42.5 kB / 1.06 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.558e-05/0.3564, allocations: 36.89 kB / 1.06 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.3564, allocations: 0 / 1.06 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.3564, allocations: 34.56 kB / 1.06 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.3564, allocations: 3.938 kB / 1.06 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0004084/0.3568, allocations: 101.6 kB / 1.06 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/0.3569, allocations: 59.34 kB / 1.06 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.357, allocations: 101.8 kB / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.3571, allocations: 25.7 kB / 1.061 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.574e-05/0.3571, allocations: 88.27 kB / 1.061 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.467e-05/0.3572, allocations: 3.906 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-06/0.3572, allocations: 4 kB / 1.061 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.3574, allocations: 310.8 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.551e-05/0.3575, allocations: 23.97 kB / 1.061 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.818e-05/0.3575, allocations: 23.98 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.64e-05/0.3576, allocations: 27.94 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3576, allocations: 0 / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001983/0.3578, allocations: 77.72 kB / 1.061 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3579, allocations: 8 kB / 1.061 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.3579, allocations: 3.984 kB / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.3579, allocations: 3.938 kB / 1.061 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.358, allocations: 8 kB / 1.061 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.358, allocations: 0 / 1.061 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.614e-05/0.3581, allocations: 20.02 kB / 1.061 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.3581, allocations: 0 / 1.061 GB, free: 1.934 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.3582, allocations: 109.8 kB / 1.061 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.3583, allocations: 4 kB / 1.061 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.74e-05/0.3583, allocations: 7.109 kB / 1.061 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3583, allocations: 0 / 1.061 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3583, allocations: 0 / 1.061 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3583, allocations: 0 / 1.061 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001891/0.3585, allocations: 157.7 kB / 1.061 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3585, allocations: 3.953 kB / 1.061 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.508e-05/0.3586, allocations: 19.98 kB / 1.061 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3586, allocations: 0 / 1.061 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.3586, allocations: 0 / 1.061 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3586, allocations: 0 / 1.061 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3586, allocations: 0 / 1.061 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000261/0.3589, allocations: 187.3 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.3589, allocations: 81.06 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.359, allocations: 3.938 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.3591, allocations: 11.98 kB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.3591, allocations: 192 / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.3591, allocations: 8.031 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.343e-05/0.3592, allocations: 87.25 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3592, allocations: 0 / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002068/0.3594, allocations: 4 kB / 1.062 GB, free: 1.172 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001179/0.3595, allocations: 99.25 kB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002135/0.3597, allocations: 55.89 kB / 1.062 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3598, allocations: 0 / 1.062 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.77e-05/0.3598, allocations: 27.92 kB / 1.062 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.3601, allocations: 4 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002995/0.3604, allocations: 108.8 kB / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.3607, allocations: 0.677 MB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.016e-05/0.3607, allocations: 0 / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.306e-05/0.3608, allocations: 15.44 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3608, allocations: 0 / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of Templates: time 0.002582/0.3634, allocations: 0.4976 MB / 1.063 GB, free: 15.63 MB / 0.8262 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/jenkins/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