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.001364/0.001364, allocations: 102.8 kB / 16.35 MB, free: 5.879 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.001418/0.001418, allocations: 195.6 kB / 17.3 MB, free: 5.52 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.388/1.388, allocations: 222.9 MB / 241 MB, free: 15.16 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.564/2.564, allocations: 437.1 MB / 0.7112 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001456, allocations: 56.34 kB / 0.8707 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3728, allocations: 151.6 MB / 1.019 GB, free: 9.852 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002102/0.3749, allocations: 0.6187 MB / 1.019 GB, free: 9.23 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009798/0.3759, allocations: 0.8234 MB / 1.02 GB, free: 8.395 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.935e-05/0.376, allocations: 4 kB / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/0.376, allocations: 0 / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.66e-05/0.3761, allocations: 7.922 kB / 1.02 GB, free: 8.383 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001299/0.3762, allocations: 12 kB / 1.02 GB, free: 8.371 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.629e-05/0.3763, allocations: 27.91 kB / 1.02 GB, free: 8.344 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.377e-05/0.3764, allocations: 11.98 kB / 1.02 GB, free: 8.332 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.649e-05/0.3764, allocations: 11.94 kB / 1.02 GB, free: 8.32 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.508e-05/0.3765, allocations: 7.984 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.3765, allocations: 4 kB / 1.02 GB, free: 8.309 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.057e-06/0.3765, allocations: 0 / 1.02 GB, free: 8.309 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.921e-05/0.3766, allocations: 11.94 kB / 1.02 GB, free: 8.297 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.3766, allocations: 11.97 kB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.324e-05/0.3767, allocations: 27.91 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3767, allocations: 4 kB / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3767, allocations: 0 / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.014e-06/0.3767, allocations: 0 / 1.02 GB, free: 8.254 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.0004417/0.3771, allocations: 331.5 kB / 1.021 GB, free: 7.879 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.3772, allocations: 8.031 kB / 1.021 GB, free: 7.871 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.3772, allocations: 8.844 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.3773, allocations: 172.2 kB / 1.021 GB, free: 7.656 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.3774, allocations: 384 / 1.021 GB, free: 7.656 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.3774, allocations: 8.375 kB / 1.021 GB, free: 7.648 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.3775, allocations: 50.23 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3776, allocations: 192 / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.3776, allocations: 7.938 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-06/0.3776, allocations: 3.938 kB / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.3777, allocations: 35.95 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003273/0.3781, allocations: 253 kB / 1.021 GB, free: 7.25 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.3782, allocations: 46.44 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.395e-05/0.3783, allocations: 24.89 kB / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.3784, allocations: 3.938 kB / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.3784, allocations: 34.56 kB / 1.021 GB, free: 7.121 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.3784, allocations: 4 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0003337/0.3787, allocations: 81.64 kB / 1.021 GB, free: 7.031 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.3788, allocations: 55.34 kB / 1.021 GB, free: 6.965 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.514e-05/0.3789, allocations: 101.8 kB / 1.022 GB, free: 6.855 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.3789, allocations: 25.7 kB / 1.022 GB, free: 6.824 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.221e-05/0.3789, allocations: 88.14 kB / 1.022 GB, free: 6.734 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.379, allocations: 8.031 kB / 1.022 GB, free: 6.727 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.432e-05/0.379, allocations: 13.72 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3791, allocations: 314.8 kB / 1.022 GB, free: 6.391 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.96e-05/0.3792, allocations: 15.98 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.071e-05/0.3793, allocations: 19.98 kB / 1.022 GB, free: 6.355 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.3794, allocations: 44.88 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3794, allocations: 0 / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001949/0.3796, allocations: 73.53 kB / 1.022 GB, free: 6.23 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.3797, allocations: 4 kB / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.3797, allocations: 0 / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.3797, allocations: 0 / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.327e-05/0.3798, allocations: 11.98 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3798, allocations: 4.031 kB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.09e-05/0.3799, allocations: 7.984 kB / 1.022 GB, free: 6.203 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.3799, allocations: 4 kB / 1.022 GB, free: 6.199 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.436e-05/0.3799, allocations: 113.8 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.38, allocations: 3.906 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.747e-05/0.38, allocations: 3.125 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.38, allocations: 0 / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.38, allocations: 0 / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.38, allocations: 0 / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.3802, allocations: 177.6 kB / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3802, allocations: 192 / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.644e-05/0.3803, allocations: 11.92 kB / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3803, allocations: 0 / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.3803, allocations: 7.984 kB / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3803, allocations: 0 / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.3803, allocations: 0 / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.3806, allocations: 171.4 kB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.802e-05/0.3806, allocations: 77.11 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.3806, allocations: 7.984 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.627e-05/0.3807, allocations: 0 / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.991e-05/0.3808, allocations: 7.984 kB / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.3808, allocations: 0 / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.708e-05/0.3808, allocations: 87.22 kB / 1.023 GB, free: 5.449 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3808, allocations: 0 / 1.023 GB, free: 5.449 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002047/0.3811, allocations: 8.031 kB / 1.023 GB, free: 5.441 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.0001032/0.3812, allocations: 95.25 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002118/0.3814, allocations: 43.95 kB / 1.023 GB, free: 5.297 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3814, allocations: 0 / 1.023 GB, free: 5.297 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.791e-05/0.3815, allocations: 23.91 kB / 1.023 GB, free: 5.273 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.3817, allocations: 20.06 kB / 1.023 GB, free: 5.254 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002871/0.382, allocations: 113.5 kB / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002705/0.3823, allocations: 0.6768 MB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.499e-05/0.3823, allocations: 0 / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.879e-05/0.3824, allocations: 11.44 kB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.3824, allocations: 0 / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of Templates: time 0.002583/0.385, allocations: 0.5993 MB / 1.024 GB, free: 3.809 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 gbode -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