Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Round,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Round",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Round,fileNamePrefix="Buildings_10_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.001287/0.001287, 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.001356/0.001355, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.406 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 2.516/2.516, allocations: 437.1 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 63.91 kB / 0.8694 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5343/0.5358, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001735/0.5376, allocations: 0.5881 MB / 1.018 GB, free: 1.879 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002624/0.5378, allocations: 63.7 kB / 1.018 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.806e-05/0.5379, allocations: 0 / 1.018 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.732e-05/0.5379, allocations: 3.938 kB / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.513e-06/0.5379, allocations: 0 / 1.018 GB, free: 1.812 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.5382, allocations: 31.91 kB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.299e-05/0.5382, allocations: 8 kB / 1.018 GB, free: 1.773 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.598e-05/0.5383, allocations: 7.984 kB / 1.018 GB, free: 1.766 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.742e-05/0.5383, allocations: 4 kB / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.84e-05/0.5384, allocations: 11.92 kB / 1.018 GB, free: 1.75 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.5384, allocations: 0 / 1.018 GB, free: 1.75 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.093e-05/0.5385, allocations: 15.98 kB / 1.018 GB, free: 1.734 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.5385, allocations: 3.984 kB / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.067e-05/0.5385, allocations: 4 kB / 1.018 GB, free: 1.727 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.027e-05/0.5386, allocations: 23.91 kB / 1.018 GB, free: 1.703 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.5386, allocations: 0 / 1.018 GB, free: 1.703 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.502e-06/0.5386, allocations: 4 kB / 1.018 GB, free: 1.699 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.5386, allocations: 0 / 1.018 GB, free: 1.699 MB / 0.7637 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.0003308/0.5389, allocations: 327.5 kB / 1.018 GB, free: 1.328 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.539, allocations: 8.031 kB / 1.018 GB, free: 1.32 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.8e-05/0.539, allocations: 38.73 kB / 1.019 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.409e-05/0.5391, allocations: 0.9375 kB / 1.019 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.626e-05/0.5392, allocations: 160.4 kB / 1.019 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.5392, allocations: 4.375 kB / 1.019 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.5392, allocations: 12.36 kB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.5393, allocations: 74.42 kB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.5393, allocations: 7.938 kB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.5393, allocations: 0 / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.5394, allocations: 0 / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.033e-05/0.5394, allocations: 19.92 kB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.5396, allocations: 183.4 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 8.786e-05/0.5397, allocations: 97.11 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.262e-05/0.5397, allocations: 40.41 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001678/0.5399, allocations: 84.98 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.5399, allocations: 38.56 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.5399, allocations: 4 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0001829/0.5401, allocations: 73.48 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.5402, allocations: 158.2 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.921e-05/0.5402, allocations: 97.86 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.5402, allocations: 25.7 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.124e-05/0.5403, allocations: 80.77 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.5403, allocations: 15.73 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.064e-05/0.5403, allocations: 21.72 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.73e-05/0.5404, allocations: 314.8 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.008e-05/0.5405, allocations: 11.98 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.865e-05/0.5405, allocations: 28.3 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.158e-05/0.5406, allocations: 52.23 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.5406, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.935e-05/0.5407, allocations: 69.45 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.5407, allocations: 4 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.5407, allocations: 12.09 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.5407, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.095e-05/0.5408, allocations: 8 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.5408, allocations: 7.984 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.887e-05/0.5408, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.5408, allocations: 4 kB / 1.02 GB, free: 15.28 MB / 0.7794 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 6.331e-05/0.5409, allocations: 114.9 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.661e-05/0.5409, allocations: 4 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.5411, allocations: 108.7 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.5411, allocations: 4 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5411, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.5411, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.5413, allocations: 169.6 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.5413, allocations: 4.156 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.148e-05/0.5413, allocations: 15.98 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.5414, allocations: 4 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.5414, allocations: 7.875 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.5414, allocations: 7.938 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5414, allocations: 3.984 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.5415, allocations: 128.4 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.893e-05/0.5416, allocations: 85.05 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.5416, allocations: 3.938 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.302e-05/0.5416, allocations: 8 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.71e-05/0.5416, allocations: 7.984 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-06/0.5416, allocations: 4 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.173e-05/0.5417, allocations: 79.28 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5417, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002101/0.5419, allocations: 8 kB / 1.021 GB, free: 14.41 MB / 0.7794 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.000379/0.5423, allocations: 0.6664 MB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001069/0.5424, allocations: 39.92 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.5424, allocations: 0 / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.526e-05/0.5424, allocations: 27.92 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001569/0.5426, allocations: 12.91 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003996/0.543, allocations: 178.1 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.5432, allocations: 0.6807 MB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.209e-05/0.5433, allocations: 12 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.217e-05/0.5433, allocations: 11.44 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of SimCode: time 2.9e-07/0.5433, allocations: 0 / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.5586, allocations: 1.38 MB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.019/7.578, allocations: 13.52 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Functions_Examples_Round.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Round.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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