Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Round,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Round",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Round,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Round",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.253/1.253, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.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.142/2.142, allocations: 390.2 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 63.89 kB / 0.8127 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5861/0.5872, allocations: 140.4 MB / 0.9497 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001575/0.5888, allocations: 0.5911 MB / 0.9503 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001866/0.589, allocations: 65.39 kB / 0.9504 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.342e-05/0.589, allocations: 1.375 kB / 0.9504 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.602e-06/0.5891, allocations: 0 / 0.9504 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.408e-06/0.5891, allocations: 0 / 0.9504 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001413/0.5892, allocations: 32.16 kB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 2.692e-05/0.5892, allocations: 5.5 kB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.014e-05/0.5893, allocations: 5.359 kB / 0.9504 GB, free: 8.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.132e-05/0.5893, allocations: 4.125 kB / 0.9504 GB, free: 8.68 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.135e-05/0.5893, allocations: 10.69 kB / 0.9504 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.144e-06/0.5893, allocations: 1.375 kB / 0.9504 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.373e-05/0.5894, allocations: 18.84 kB / 0.9504 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.628e-06/0.5894, allocations: 5.375 kB / 0.9504 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.467e-05/0.5894, allocations: 6.734 kB / 0.9505 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.039e-05/0.5895, allocations: 21.41 kB / 0.9505 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.5895, allocations: 1.375 kB / 0.9505 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.41e-07/0.5895, allocations: 4 kB / 0.9505 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.505e-06/0.5895, allocations: 0 / 0.9505 GB, free: 8.633 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0001865/0.5897, allocations: 323.8 kB / 0.9508 GB, free: 8.273 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.735e-05/0.5897, allocations: 9.625 kB / 0.9508 GB, free: 8.273 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.756e-05/0.5898, allocations: 36.11 kB / 0.9508 GB, free: 8.23 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.739e-05/0.5898, allocations: 6.219 kB / 0.9508 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.146e-05/0.5898, allocations: 160.4 kB / 0.951 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-06/0.5898, allocations: 5.688 kB / 0.951 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-06/0.5898, allocations: 5.734 kB / 0.951 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.917e-05/0.5899, allocations: 74.8 kB / 0.9511 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.5899, allocations: 3.938 kB / 0.9511 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.59, allocations: 5.312 kB / 0.9511 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-06/0.59, allocations: 1.375 kB / 0.9511 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.936e-05/0.59, allocations: 17.36 kB / 0.9511 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001041/0.5901, allocations: 184.8 kB / 0.9513 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.922e-05/0.5902, allocations: 98.61 kB / 0.9514 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.685e-05/0.5902, allocations: 37.19 kB / 0.9514 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.5903, allocations: 84.02 kB / 0.9515 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.274e-05/0.5903, allocations: 32.94 kB / 0.9515 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.5904, allocations: 7.938 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001338/0.5905, allocations: 77.98 kB / 0.9516 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.5905, allocations: 159.6 kB / 0.9518 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.314e-05/0.5905, allocations: 89.86 kB / 0.9518 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.953e-06/0.5906, allocations: 26.98 kB / 0.9519 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.986e-06/0.5906, allocations: 80.77 kB / 0.9519 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.5906, allocations: 26.23 kB / 0.952 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-05/0.5906, allocations: 17.69 kB / 0.952 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.797e-05/0.5907, allocations: 312.3 kB / 0.9523 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.611e-05/0.5907, allocations: 2.781 kB / 0.9523 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.309e-05/0.5907, allocations: 41.78 kB / 0.9523 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.025e-05/0.5908, allocations: 48.17 kB / 0.9524 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.5908, allocations: 0 / 0.9524 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.36e-05/0.5909, allocations: 66.58 kB / 0.9524 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.5909, allocations: 5.469 kB / 0.9524 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.5909, allocations: 9.281 kB / 0.9524 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.5909, allocations: 1.156 kB / 0.9524 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.341e-05/0.591, allocations: 11.91 kB / 0.9525 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.591, allocations: 5.922 kB / 0.9525 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.799e-05/0.591, allocations: 6.438 kB / 0.9525 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.591, allocations: 6.688 kB / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 4.156e-05/0.5911, allocations: 107.2 kB / 0.9526 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.418e-05/0.5911, allocations: 7.188 kB / 0.9526 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001548/0.5913, allocations: 100.8 kB / 0.9527 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.5913, allocations: 2.938 kB / 0.9527 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5913, allocations: 1.344 kB / 0.9527 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.5913, allocations: 1.344 kB / 0.9527 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.996e-05/0.5914, allocations: 167 kB / 0.9528 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5914, allocations: 4 kB / 0.9529 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.665e-05/0.5915, allocations: 21.52 kB / 0.9529 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.5915, allocations: 1.406 kB / 0.9529 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.5915, allocations: 10.84 kB / 0.9529 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.5915, allocations: 1.469 kB / 0.9529 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5915, allocations: 1.344 kB / 0.9529 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.5916, allocations: 132.6 kB / 0.953 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.579e-05/0.5916, allocations: 83.7 kB / 0.9531 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.5916, allocations: 10.12 kB / 0.9531 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.772e-05/0.5917, allocations: 2.562 kB / 0.9531 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.097e-05/0.5917, allocations: 11.08 kB / 0.9531 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.5917, allocations: 3.812 kB / 0.9531 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.137e-06/0.5917, allocations: 79.28 kB / 0.9532 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.5917, allocations: 1.219 kB / 0.9532 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001953/0.5919, allocations: 5.125 kB / 0.9532 GB, free: 5.629 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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.0002805/0.5922, allocations: 0.663 MB / 0.9538 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.957e-05/0.5923, allocations: 36.89 kB / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.5923, allocations: 0 / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.248e-05/0.5924, allocations: 28.73 kB / 0.9539 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001458/0.5925, allocations: 3.594 kB / 0.9539 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003108/0.5928, allocations: 180.3 kB / 0.9541 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.079e-05/0.5929, allocations: 0.6806 MB / 0.9548 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.791e-05/0.593, allocations: 12.89 kB / 0.9548 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.834e-05/0.593, allocations: 15.03 kB / 0.9548 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.593, allocations: 0 / 0.9548 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03765/0.6306, allocations: 1.395 MB / 0.9561 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.428, allocations: 9.484 kB / 0.9561 GB, free: 3.227 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Round_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Round.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Round.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,ym2,ym1,y,y1,y2 Variables in the result:time,y,y1,y2,ym1,ym2