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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00125/0.001251, allocations: 106 kB / 16.35 MB, free: 5.824 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.001288/0.001288, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.481/1.481, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.477/2.477, allocations: 437.1 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 64.94 kB / 0.8707 GB, free: 1.449 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3633, allocations: 151.6 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002054/0.3654, allocations: 0.613 MB / 1.019 GB, free: 9.238 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000952/0.3664, allocations: 0.8312 MB / 1.02 GB, free: 8.395 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.294e-05/0.3665, allocations: 0 / 1.02 GB, free: 8.395 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.056e-05/0.3665, allocations: 7.938 kB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.924e-05/0.3666, allocations: 0 / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001443/0.3667, allocations: 15.92 kB / 1.02 GB, free: 8.371 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.21e-05/0.3668, allocations: 20 kB / 1.02 GB, free: 8.352 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.3669, allocations: 7.984 kB / 1.02 GB, free: 8.344 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.632e-05/0.367, allocations: 23.86 kB / 1.02 GB, free: 8.32 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.889e-05/0.367, allocations: 7.984 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.3671, allocations: 0 / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.063e-05/0.3671, allocations: 4 kB / 1.02 GB, free: 8.309 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.362e-05/0.3671, allocations: 15.92 kB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.193e-05/0.3672, allocations: 8 kB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.578e-05/0.3672, allocations: 27.89 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3673, allocations: 0 / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3673, allocations: 0 / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.3673, allocations: 0 / 1.02 GB, free: 8.258 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.0004819/0.3678, allocations: 331.5 kB / 1.021 GB, free: 7.883 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3678, allocations: 19.95 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.952e-05/0.3678, allocations: 4.844 kB / 1.021 GB, free: 7.859 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.368, allocations: 168.3 kB / 1.021 GB, free: 7.656 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.368, allocations: 4.375 kB / 1.021 GB, free: 7.652 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.368, allocations: 384 / 1.021 GB, free: 7.652 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.3682, allocations: 54.17 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.3682, allocations: 192 / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.3683, allocations: 7.938 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3683, allocations: 3.938 kB / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.3684, allocations: 35.95 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000354/0.3688, allocations: 249 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.3689, allocations: 46.48 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.231e-05/0.369, allocations: 24.91 kB / 1.021 GB, free: 7.172 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.3691, allocations: 3.938 kB / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.3691, allocations: 34.56 kB / 1.021 GB, free: 7.125 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.3691, allocations: 0 / 1.021 GB, free: 7.125 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0003596/0.3695, allocations: 81.64 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.3695, allocations: 51.41 kB / 1.021 GB, free: 6.977 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.143e-05/0.3696, allocations: 105.8 kB / 1.021 GB, free: 6.863 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.3696, allocations: 25.7 kB / 1.022 GB, free: 6.832 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.176e-05/0.3697, allocations: 84.27 kB / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.3697, allocations: 7.906 kB / 1.022 GB, free: 6.738 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.3697, allocations: 17.7 kB / 1.022 GB, free: 6.715 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3699, allocations: 310.8 kB / 1.022 GB, free: 6.402 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.861e-05/0.37, allocations: 19.98 kB / 1.022 GB, free: 6.383 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.429e-05/0.3701, allocations: 23.91 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.3702, allocations: 40.89 kB / 1.022 GB, free: 6.316 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3702, allocations: 0 / 1.022 GB, free: 6.316 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001873/0.3704, allocations: 69.59 kB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.3704, allocations: 4 kB / 1.022 GB, free: 6.238 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3704, allocations: 4 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3705, allocations: 0 / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.947e-05/0.3706, allocations: 12.02 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.3706, allocations: 0 / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.365e-05/0.3706, allocations: 7.984 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.874e-06/0.3707, allocations: 4 kB / 1.022 GB, free: 6.211 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.713e-05/0.3708, allocations: 118.4 kB / 1.022 GB, free: 6.086 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.3708, allocations: 3.906 kB / 1.022 GB, free: 6.082 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.211e-05/0.3708, allocations: 7.125 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3708, allocations: 4.188 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3708, allocations: 4 kB / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3708, allocations: 3.984 kB / 1.022 GB, free: 6.062 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.371, allocations: 169.5 kB / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.371, allocations: 0 / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.687e-05/0.3711, allocations: 15.92 kB / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3711, allocations: 0 / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.3711, allocations: 0 / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3711, allocations: 0 / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3711, allocations: 0 / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.3714, allocations: 167.5 kB / 1.023 GB, free: 5.652 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.085e-05/0.3715, allocations: 85.09 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.3715, allocations: 0 / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.953e-05/0.3716, allocations: 4 kB / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.3716, allocations: 7.922 kB / 1.023 GB, free: 5.539 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.3716, allocations: 4 kB / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.717e-05/0.3717, allocations: 83.31 kB / 1.023 GB, free: 5.453 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3717, allocations: 4 kB / 1.023 GB, free: 5.449 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002149/0.3719, allocations: 0 / 1.023 GB, free: 5.449 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.0001066/0.372, allocations: 103.2 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002154/0.3722, allocations: 35.97 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3723, allocations: 4 kB / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.75e-05/0.3723, allocations: 24.03 kB / 1.023 GB, free: 5.277 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.3726, allocations: 11.92 kB / 1.023 GB, free: 5.266 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003227/0.373, allocations: 117.4 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002618/0.3732, allocations: 0.6768 MB / 1.024 GB, free: 4.422 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.949e-05/0.3733, allocations: 4 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.006e-05/0.3733, allocations: 11.5 kB / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.3733, allocations: 0 / 1.024 GB, free: 4.406 MB / 0.795 GB Notification: Performance of Templates: time 0.002759/0.3761, allocations: 0.5984 MB / 1.024 GB, free: 3.816 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 -s cvode -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