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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.01385/0.01385, allocations: 97.61 kB / 15.73 MB, free: 6.043 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.002081/0.002081, allocations: 196.1 kB / 16.67 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.835/1.835, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.092/3.092, allocations: 437 MB / 0.7105 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.91 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3954/0.3968, allocations: 151.6 MB / 1.167 GB, free: 6.809 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001844/0.3987, allocations: 0.6269 MB / 1.167 GB, free: 6.176 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008736/0.3995, allocations: 0.8277 MB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.953e-05/0.3996, allocations: 0 / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.757e-05/0.3996, allocations: 0 / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.457e-05/0.3997, allocations: 3.938 kB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001365/0.3998, allocations: 15.92 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.884e-05/0.3999, allocations: 27.92 kB / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.4, allocations: 15.98 kB / 1.168 GB, free: 5.273 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.208e-05/0.4001, allocations: 11.98 kB / 1.168 GB, free: 5.262 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.909e-05/0.4002, allocations: 15.92 kB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.4002, allocations: 0 / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.057e-05/0.4002, allocations: 4 kB / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.473e-05/0.4002, allocations: 0 / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.71e-05/0.4002, allocations: 11.94 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 8.972e-05/0.4003, allocations: 27.88 kB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.4003, allocations: 0 / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.133e-06/0.4003, allocations: 0 / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.4004, allocations: 0 / 1.168 GB, free: 5.203 MB / 0.92 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.0004556/0.4008, allocations: 347.4 kB / 1.168 GB, free: 4.812 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.4009, allocations: 8.031 kB / 1.168 GB, free: 4.805 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.551e-05/0.4009, allocations: 0.9375 kB / 1.168 GB, free: 4.805 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.401, allocations: 168.3 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.401, allocations: 4.312 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.4011, allocations: 4.375 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/0.4012, allocations: 54.22 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.4012, allocations: 4.188 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.4013, allocations: 3.938 kB / 1.169 GB, free: 4.527 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.4013, allocations: 4 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.4014, allocations: 35.95 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003537/0.4018, allocations: 244.9 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.402, allocations: 50.47 kB / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.216e-05/0.4021, allocations: 24.91 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.4021, allocations: 0 / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.4021, allocations: 34.55 kB / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 7.31e-07/0.4021, allocations: 0 / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0003647/0.4025, allocations: 85.73 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.4026, allocations: 63.34 kB / 1.169 GB, free: 3.906 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.4027, allocations: 97.84 kB / 1.169 GB, free: 3.801 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.4027, allocations: 25.7 kB / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.953e-05/0.4027, allocations: 84.14 kB / 1.169 GB, free: 3.684 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.4027, allocations: 3.953 kB / 1.169 GB, free: 3.68 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-05/0.4028, allocations: 13.72 kB / 1.169 GB, free: 3.66 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.4029, allocations: 314.8 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.087e-05/0.403, allocations: 24 kB / 1.17 GB, free: 3.32 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.939e-05/0.4031, allocations: 15.98 kB / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.4032, allocations: 40.81 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4033, allocations: 0 / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000213/0.4035, allocations: 77.59 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.4035, allocations: 11.94 kB / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.4035, allocations: 0 / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.4035, allocations: 0 / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.4036, allocations: 11.98 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.4036, allocations: 4 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.636e-05/0.4037, allocations: 7.953 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.4037, allocations: 0 / 1.17 GB, free: 3.145 MB / 0.92 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.896e-05/0.4038, allocations: 117.8 kB / 1.17 GB, free: 3.02 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.392e-05/0.4038, allocations: 4 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.916e-05/0.4039, allocations: 7.312 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.4039, allocations: 3.984 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4039, allocations: 0 / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.4039, allocations: 0 / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.4041, allocations: 161.6 kB / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4041, allocations: 0 / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.701e-05/0.4041, allocations: 8 kB / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4042, allocations: 0 / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.4042, allocations: 11.98 kB / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4042, allocations: 0 / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.4042, allocations: 0 / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.4045, allocations: 171.4 kB / 1.17 GB, free: 2.594 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.4045, allocations: 77.11 kB / 1.17 GB, free: 2.5 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.4045, allocations: 0 / 1.17 GB, free: 2.5 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.482e-05/0.4046, allocations: 15.95 kB / 1.17 GB, free: 2.484 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.609e-05/0.4047, allocations: 8 kB / 1.17 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.4047, allocations: 0 / 1.17 GB, free: 2.477 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.764e-05/0.4047, allocations: 83.27 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4048, allocations: 0 / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002232/0.405, allocations: 4 kB / 1.171 GB, free: 2.391 MB / 0.92 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.0001085/0.4051, allocations: 99.19 kB / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002343/0.4053, allocations: 47.95 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4053, allocations: 0 / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.313e-05/0.4054, allocations: 19.92 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.4058, allocations: 17.95 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003061/0.4061, allocations: 105.4 kB / 1.171 GB, free: 2.07 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.4064, allocations: 0.6769 MB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.965e-05/0.4064, allocations: 7.922 kB / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.899e-05/0.4064, allocations: 11.44 kB / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of SimCode: time 2.3e-07/0.4064, allocations: 0 / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of Templates: time 0.002673/0.4091, allocations: 0.6025 MB / 1.172 GB, free: 0.75 MB / 0.92 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 -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/jenkins/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