Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001469/0.001469, allocations: 113.3 kB / 16.37 MB, free: 6.012 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.001552/0.001552, allocations: 190.3 kB / 17.31 MB, free: 5.613 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.405/1.405, 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 9.1.2-maint.9.1.x/package.mo): time 2.28/2.28, allocations: 390.3 MB / 0.6655 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002057/0.002058, allocations: 62.78 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3955, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.003083/0.3987, allocations: 0.6165 MB / 0.9517 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001627/0.4003, allocations: 0.8333 MB / 0.9525 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.429e-05/0.4004, allocations: 4 kB / 0.9526 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.857e-05/0.4005, allocations: 3.938 kB / 0.9526 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.872e-05/0.4006, allocations: 0 / 0.9526 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.4008, allocations: 23.91 kB / 0.9526 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.778e-05/0.4009, allocations: 23.98 kB / 0.9526 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.4011, allocations: 7.938 kB / 0.9526 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.4012, allocations: 15.92 kB / 0.9526 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.094e-05/0.4013, allocations: 11.98 kB / 0.9526 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.4013, allocations: 3.938 kB / 0.9526 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.544e-05/0.4013, allocations: 8 kB / 0.9526 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.105e-05/0.4013, allocations: 3.984 kB / 0.9527 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.985e-05/0.4014, allocations: 11.94 kB / 0.9527 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.4015, allocations: 19.95 kB / 0.9527 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4015, allocations: 0 / 0.9527 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.575e-06/0.4016, allocations: 0 / 0.9527 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.595e-06/0.4016, allocations: 0 / 0.9527 GB, free: 6.441 MB / 0.7325 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.0006336/0.4022, allocations: 339.5 kB / 0.953 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.4023, allocations: 8.031 kB / 0.953 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.199e-05/0.4023, allocations: 4.938 kB / 0.953 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.4025, allocations: 172.2 kB / 0.9532 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.4025, allocations: 4.375 kB / 0.9532 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.4026, allocations: 4.312 kB / 0.9532 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002371/0.4028, allocations: 58.16 kB / 0.9532 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.4028, allocations: 192 / 0.9532 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.4028, allocations: 3.938 kB / 0.9533 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.4029, allocations: 4 kB / 0.9533 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/0.4031, allocations: 39.89 kB / 0.9533 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004885/0.4036, allocations: 244.9 kB / 0.9535 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.4039, allocations: 46.53 kB / 0.9536 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.404, allocations: 24.84 kB / 0.9536 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.4041, allocations: 4 kB / 0.9536 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.4041, allocations: 30.56 kB / 0.9536 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.583e-06/0.4041, allocations: 0 / 0.9536 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0005483/0.4047, allocations: 85.62 kB / 0.9537 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.4047, allocations: 59.41 kB / 0.9538 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.4048, allocations: 93.98 kB / 0.9539 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.4049, allocations: 29.7 kB / 0.9539 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.719e-05/0.4049, allocations: 92.11 kB / 0.954 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.405, allocations: 3.906 kB / 0.954 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.323e-05/0.405, allocations: 13.72 kB / 0.954 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4052, allocations: 314.8 kB / 0.9543 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.4053, allocations: 23.91 kB / 0.9543 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.4054, allocations: 19.98 kB / 0.9543 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.4057, allocations: 36.83 kB / 0.9544 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.4057, allocations: 3.984 kB / 0.9544 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002726/0.406, allocations: 69.61 kB / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.406, allocations: 11.98 kB / 0.9544 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.406, allocations: 0 / 0.9544 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.4061, allocations: 8.281 kB / 0.9545 GB, free: 4.398 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.4062, allocations: 4 kB / 0.9545 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.4062, allocations: 7.984 kB / 0.9545 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.44e-05/0.4063, allocations: 0 / 0.9545 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.4063, allocations: 11.92 kB / 0.9545 GB, free: 4.375 MB / 0.7325 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.87e-05/0.4064, allocations: 111.8 kB / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.4065, allocations: 7.891 kB / 0.9546 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.712e-05/0.4065, allocations: 11.12 kB / 0.9546 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.4065, allocations: 4 kB / 0.9546 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4066, allocations: 3.938 kB / 0.9546 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.4066, allocations: 0 / 0.9546 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.4068, allocations: 157.6 kB / 0.9548 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4068, allocations: 0 / 0.9548 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.224e-05/0.4069, allocations: 11.98 kB / 0.9548 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.4069, allocations: 0 / 0.9548 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.4069, allocations: 0 / 0.9548 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-06/0.4069, allocations: 3.984 kB / 0.9548 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.407, allocations: 0 / 0.9548 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003444/0.4073, allocations: 171.5 kB / 0.9549 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.818e-05/0.4074, allocations: 77.11 kB / 0.955 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.4074, allocations: 3.938 kB / 0.955 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.4075, allocations: 11.92 kB / 0.955 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.4076, allocations: 8 kB / 0.955 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.4076, allocations: 4.031 kB / 0.955 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.852e-05/0.4077, allocations: 83.27 kB / 0.9551 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4077, allocations: 0 / 0.9551 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003861/0.4081, allocations: 4 kB / 0.9551 GB, free: 3.621 MB / 0.7325 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.0001309/0.4082, allocations: 95.25 kB / 0.9552 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003366/0.4086, allocations: 43.95 kB / 0.9553 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4086, allocations: 4.062 kB / 0.9553 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.4088, allocations: 15.98 kB / 0.9553 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005123/0.4093, allocations: 15 kB / 0.9553 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.4097, allocations: 113.4 kB / 0.9554 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.4101, allocations: 0.6766 MB / 0.9561 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.867e-05/0.4101, allocations: 8.062 kB / 0.9561 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.439e-05/0.4102, allocations: 11.42 kB / 0.9561 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.4102, allocations: 0 / 0.9561 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of Templates: time 0.004161/0.4144, allocations: 0.592 MB / 0.9567 GB, free: 1.996 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches