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.001121/0.001121, allocations: 108 kB / 15.6 MB, free: 132 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.001234/0.001234, allocations: 195.8 kB / 16.54 MB, free: 6.672 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.368/1.368, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.326/2.326, allocations: 390.3 MB / 0.6647 GB, free: 392 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 67.89 kB / 0.8127 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5978/0.5992, allocations: 140.3 MB / 0.9497 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001638/0.6009, allocations: 0.6046 MB / 0.9503 GB, free: 8.727 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002213/0.6012, allocations: 57.94 kB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.648e-05/0.6012, allocations: 1.469 kB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.174e-05/0.6012, allocations: 3.938 kB / 0.9504 GB, free: 8.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.112e-06/0.6012, allocations: 0 / 0.9504 GB, free: 8.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.6014, allocations: 15.89 kB / 0.9504 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.236e-05/0.6015, allocations: 21.41 kB / 0.9504 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.6015, allocations: 1.531 kB / 0.9504 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.527e-05/0.6016, allocations: 7.5 kB / 0.9504 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.254e-05/0.6016, allocations: 7.891 kB / 0.9504 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.6016, allocations: 1.781 kB / 0.9504 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.037e-05/0.6017, allocations: 22.83 kB / 0.9505 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.062e-05/0.6017, allocations: 3.938 kB / 0.9505 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.736e-05/0.6017, allocations: 10.64 kB / 0.9505 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.068e-05/0.6018, allocations: 17.59 kB / 0.9505 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.6018, allocations: 1.156 kB / 0.9505 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.322e-06/0.6018, allocations: 0 / 0.9505 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.6018, allocations: 0 / 0.9505 GB, free: 8.609 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.0002613/0.6021, allocations: 330.2 kB / 0.9508 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.6021, allocations: 9.594 kB / 0.9508 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.181e-05/0.6022, allocations: 32.31 kB / 0.9508 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.115e-05/0.6022, allocations: 4.844 kB / 0.9508 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.358e-05/0.6022, allocations: 161.9 kB / 0.951 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-06/0.6022, allocations: 4.375 kB / 0.951 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-06/0.6023, allocations: 3.031 kB / 0.951 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.537e-05/0.6024, allocations: 78.5 kB / 0.9511 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.473e-06/0.6024, allocations: 3.938 kB / 0.9511 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.6024, allocations: 0.9062 kB / 0.9511 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.6024, allocations: 5 kB / 0.9511 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.259e-05/0.6024, allocations: 14.19 kB / 0.9511 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.6025, allocations: 180.5 kB / 0.9513 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.875e-05/0.6026, allocations: 106 kB / 0.9514 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.006e-05/0.6026, allocations: 37.39 kB / 0.9514 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.6028, allocations: 88.86 kB / 0.9515 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.6028, allocations: 41.03 kB / 0.9515 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.6028, allocations: 0 / 0.9515 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001524/0.603, allocations: 73.09 kB / 0.9516 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.603, allocations: 164.7 kB / 0.9518 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.25e-05/0.603, allocations: 89.86 kB / 0.9518 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.073e-06/0.603, allocations: 26.95 kB / 0.9519 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.816e-06/0.6031, allocations: 84.08 kB / 0.952 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.6031, allocations: 14.28 kB / 0.952 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.626e-05/0.6031, allocations: 17.56 kB / 0.952 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.808e-05/0.6032, allocations: 324.2 kB / 0.9523 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.714e-05/0.6032, allocations: 6.656 kB / 0.9523 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.182e-05/0.6032, allocations: 29.58 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.507e-05/0.6033, allocations: 57.44 kB / 0.9524 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.6033, allocations: 0 / 0.9524 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.15e-05/0.6034, allocations: 61.22 kB / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.6034, allocations: 6.031 kB / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.6034, allocations: 5.281 kB / 0.9525 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.6034, allocations: 1.281 kB / 0.9525 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.677e-05/0.6035, allocations: 12.45 kB / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.6035, allocations: 5.156 kB / 0.9525 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.828e-05/0.6035, allocations: 5.938 kB / 0.9525 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.6035, allocations: 2.125 kB / 0.9525 GB, free: 6.348 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.066e-05/0.6036, allocations: 113.1 kB / 0.9526 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.6036, allocations: 6.859 kB / 0.9526 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000158/0.6038, allocations: 104.7 kB / 0.9527 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.6038, allocations: 2.625 kB / 0.9527 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.6038, allocations: 1.438 kB / 0.9527 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.6038, allocations: 5.328 kB / 0.9527 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.163e-05/0.6039, allocations: 166.3 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.6039, allocations: 1.156 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.656e-05/0.6039, allocations: 12.94 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.6039, allocations: 1.562 kB / 0.9529 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.604, allocations: 14.44 kB / 0.9529 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.604, allocations: 6.422 kB / 0.9529 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.604, allocations: 5.094 kB / 0.9529 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001007/0.6041, allocations: 125 kB / 0.953 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.587e-05/0.6041, allocations: 83.61 kB / 0.9531 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.6041, allocations: 18.56 kB / 0.9531 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.902e-05/0.6042, allocations: 1.188 kB / 0.9531 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.862e-05/0.6042, allocations: 3.531 kB / 0.9531 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.6042, allocations: 3.812 kB / 0.9531 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.026e-06/0.6042, allocations: 75.28 kB / 0.9532 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6042, allocations: 1 kB / 0.9532 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002038/0.6044, allocations: 9.938 kB / 0.9532 GB, free: 5.605 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.0002668/0.6047, allocations: 0.6711 MB / 0.9539 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.296e-05/0.6048, allocations: 32.2 kB / 0.9539 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.6048, allocations: 0 / 0.9539 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.376e-05/0.6048, allocations: 28.23 kB / 0.9539 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001472/0.605, allocations: 8.812 kB / 0.9539 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003166/0.6053, allocations: 180.7 kB / 0.9541 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.167e-05/0.6054, allocations: 0.685 MB / 0.9548 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.935e-05/0.6055, allocations: 7.75 kB / 0.9548 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/0.6055, allocations: 14.92 kB / 0.9548 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6055, allocations: 2.156 kB / 0.9548 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01623/0.6217, allocations: 1.386 MB / 0.9561 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.289/7.911, allocations: 9.359 kB / 0.9562 GB, free: 3.195 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 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.csv","/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