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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001762/0.001762, allocations: 111.9 kB / 15.99 MB, free: 6.344 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.002094/0.002094, allocations: 199.5 kB / 16.91 MB, free: 6.184 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.431/1.431, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.212/2.212, allocations: 390.3 MB / 0.665 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 66.72 kB / 0.8127 GB, free: 33.23 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2489, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001963/0.2509, allocations: 0.6839 MB / 0.9504 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009296/0.2518, allocations: 0.8273 MB / 0.9513 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.847e-05/0.2519, allocations: 0 / 0.9513 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.071e-05/0.2519, allocations: 3.938 kB / 0.9513 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.09e-05/0.252, allocations: 0 / 0.9513 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001247/0.2521, allocations: 8 kB / 0.9513 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.43e-05/0.2522, allocations: 27.92 kB / 0.9513 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.82e-05/0.2523, allocations: 11.98 kB / 0.9513 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.958e-05/0.2524, allocations: 8 kB / 0.9513 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.662e-05/0.2524, allocations: 19.91 kB / 0.9513 GB, free: 7.625 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.2524, allocations: 4 kB / 0.9513 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.518e-06/0.2525, allocations: 0 / 0.9513 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.572e-05/0.2525, allocations: 4 kB / 0.9513 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.876e-05/0.2525, allocations: 15.92 kB / 0.9514 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 5.899e-05/0.2526, allocations: 15.97 kB / 0.9514 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2526, allocations: 0 / 0.9514 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2526, allocations: 0 / 0.9514 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.2526, allocations: 4 kB / 0.9514 GB, free: 7.582 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.0004427/0.2531, allocations: 331.8 kB / 0.9517 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.2531, allocations: 12.03 kB / 0.9517 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.2531, allocations: 0.9375 kB / 0.9517 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.2533, allocations: 168.2 kB / 0.9519 GB, free: 6.992 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.2533, allocations: 8.375 kB / 0.9519 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.2533, allocations: 4.312 kB / 0.9519 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.2535, allocations: 58.22 kB / 0.9519 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.2535, allocations: 4.125 kB / 0.9519 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.2535, allocations: 7.875 kB / 0.9519 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2535, allocations: 0 / 0.9519 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001719/0.2537, allocations: 35.95 kB / 0.952 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003331/0.254, allocations: 253 kB / 0.9522 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.2542, allocations: 50.44 kB / 0.9523 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.314e-05/0.2543, allocations: 24.89 kB / 0.9523 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.2543, allocations: 3.984 kB / 0.9523 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.2544, allocations: 34.56 kB / 0.9523 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.2544, allocations: 0 / 0.9523 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003626/0.2547, allocations: 85.64 kB / 0.9524 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.2548, allocations: 51.41 kB / 0.9525 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.502e-05/0.2549, allocations: 105.8 kB / 0.9526 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.2549, allocations: 25.7 kB / 0.9526 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.385e-05/0.2549, allocations: 84.14 kB / 0.9527 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.2549, allocations: 3.906 kB / 0.9527 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.659e-05/0.255, allocations: 17.84 kB / 0.9527 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.781e-05/0.2551, allocations: 314.8 kB / 0.953 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.2552, allocations: 19.97 kB / 0.953 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.161e-05/0.2553, allocations: 15.98 kB / 0.953 GB, free: 5.68 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.2555, allocations: 40.81 kB / 0.9531 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2555, allocations: 4.062 kB / 0.9531 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002242/0.2557, allocations: 77.59 kB / 0.9531 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2557, allocations: 8 kB / 0.9531 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2557, allocations: 0 / 0.9531 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.2558, allocations: 3.938 kB / 0.9531 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.2559, allocations: 7.984 kB / 0.9532 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2559, allocations: 0 / 0.9532 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.658e-05/0.2559, allocations: 4 kB / 0.9532 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.256, allocations: 8.031 kB / 0.9532 GB, free: 5.52 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 7.481e-05/0.256, allocations: 113.8 kB / 0.9533 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.2561, allocations: 3.906 kB / 0.9533 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.094e-05/0.2561, allocations: 11.12 kB / 0.9533 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2561, allocations: 0 / 0.9533 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.2561, allocations: 0 / 0.9533 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2561, allocations: 0 / 0.9533 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.2563, allocations: 165.5 kB / 0.9534 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2563, allocations: 0 / 0.9534 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.378e-05/0.2564, allocations: 12 kB / 0.9535 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2564, allocations: 0 / 0.9535 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.2564, allocations: 3.984 kB / 0.9535 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2564, allocations: 0 / 0.9535 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2564, allocations: 0 / 0.9535 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.2567, allocations: 175.3 kB / 0.9536 GB, free: 4.969 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.933e-05/0.2567, allocations: 81.11 kB / 0.9537 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.2567, allocations: 0 / 0.9537 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.2568, allocations: 7.984 kB / 0.9537 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.511e-05/0.2569, allocations: 4 kB / 0.9537 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.2569, allocations: 4 kB / 0.9537 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.715e-05/0.2569, allocations: 83.27 kB / 0.9538 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.257, allocations: 0 / 0.9538 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002258/0.2572, allocations: 4 kB / 0.9538 GB, free: 4.77 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.0001079/0.2573, allocations: 99.28 kB / 0.9539 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002476/0.2576, allocations: 43.95 kB / 0.9539 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2576, allocations: 0 / 0.9539 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.547e-05/0.2577, allocations: 23.92 kB / 0.954 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.258, allocations: 9.75 kB / 0.954 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003005/0.2583, allocations: 147.3 kB / 0.9541 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001884/0.2585, allocations: 0.6766 MB / 0.9548 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.312e-05/0.2585, allocations: 11.42 kB / 0.9548 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.2585, allocations: 0 / 0.9548 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of Templates: time 0.001931/0.2605, allocations: 0.6028 MB / 0.9554 GB, free: 3.102 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 -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