Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007488/0.007488, allocations: 97.98 kB / 15.73 MB, free: 6.047 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.001794/0.001794, allocations: 199 kB / 16.68 MB, free: 5.969 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.913/2.913, allocations: 469.8 MB / 0.7425 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.89 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3724/0.3736, allocations: 159.1 MB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002283/0.3759, allocations: 0.625 MB / 1.221 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.377, allocations: 0.8174 MB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.992e-05/0.377, allocations: 4 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.84e-05/0.3771, allocations: 4 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.938e-05/0.3771, allocations: 3.938 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001597/0.3773, allocations: 15.98 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.198e-05/0.3774, allocations: 23.92 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.3775, allocations: 11.98 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.448e-05/0.3776, allocations: 15.92 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.194e-05/0.3777, allocations: 8 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.3777, allocations: 4 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.678e-06/0.3777, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.313e-05/0.3777, allocations: 7.922 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.979e-05/0.3777, allocations: 8 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001062/0.3779, allocations: 31.88 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3779, allocations: 0 / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3779, allocations: 0 / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.3779, allocations: 0 / 1.222 GB, free: 12.27 MB / 0.9825 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.0005572/0.3784, allocations: 343.4 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3785, allocations: 8.031 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.845e-05/0.3785, allocations: 4.891 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.3787, allocations: 168.3 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.3787, allocations: 4.375 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.3787, allocations: 4.375 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002068/0.3789, allocations: 54.22 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3789, allocations: 4.188 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.379, allocations: 3.938 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.379, allocations: 0 / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.3791, allocations: 35.95 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004162/0.3796, allocations: 256.8 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.3797, allocations: 42.48 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.849e-05/0.3798, allocations: 24.91 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.3798, allocations: 0 / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.3798, allocations: 30.56 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.3798, allocations: 4 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003643/0.3802, allocations: 93.5 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.3802, allocations: 55.41 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.974e-05/0.3803, allocations: 97.86 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.3803, allocations: 25.7 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.638e-05/0.3804, allocations: 88.22 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.3804, allocations: 7.984 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.3804, allocations: 13.72 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3805, allocations: 310.8 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.307e-05/0.3806, allocations: 19.98 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.251e-05/0.3807, allocations: 19.97 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.3809, allocations: 40.89 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3809, allocations: 0 / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001976/0.3811, allocations: 77.48 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3811, allocations: 8 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3811, allocations: 0 / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.3811, allocations: 3.984 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.3812, allocations: 4 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.3812, allocations: 12.02 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.314e-05/0.3813, allocations: 7.984 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.3813, allocations: 4 kB / 1.224 GB, free: 10.2 MB / 0.9825 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.271e-05/0.3813, allocations: 110.3 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.3814, allocations: 0 / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.237e-05/0.3814, allocations: 15.11 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.3814, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3814, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3814, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.3816, allocations: 165.6 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.3816, allocations: 0 / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.625e-05/0.3816, allocations: 11.98 kB / 1.224 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3816, allocations: 0 / 1.224 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.3816, allocations: 3.938 kB / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3816, allocations: 0 / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3816, allocations: 3.938 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002536/0.3819, allocations: 175.4 kB / 1.224 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.144e-05/0.3819, allocations: 81.06 kB / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.382, allocations: 0 / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.955e-05/0.382, allocations: 7.984 kB / 1.224 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.377e-05/0.3821, allocations: 8 kB / 1.224 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.3821, allocations: 0 / 1.224 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.35e-05/0.3821, allocations: 83.27 kB / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3821, allocations: 0 / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002105/0.3824, allocations: 8.031 kB / 1.225 GB, free: 9.453 MB / 0.9825 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.0001292/0.3825, allocations: 99.19 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002466/0.3827, allocations: 47.89 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3827, allocations: 0 / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.551e-05/0.3828, allocations: 15.98 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.3831, allocations: 15.84 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003474/0.3835, allocations: 109.3 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.3837, allocations: 0.6768 MB / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.111e-05/0.3838, allocations: 4 kB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.046e-05/0.3838, allocations: 7.438 kB / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.3838, allocations: 0 / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of Templates: time 0.002881/0.3867, allocations: 0.6156 MB / 1.226 GB, free: 7.812 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches