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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00195/0.00195, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002103/0.002104, allocations: 193.9 kB / 16.14 MB, free: 6.691 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.335/1.335, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.487/2.487, allocations: 437 MB / 0.7099 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 67.91 kB / 0.8687 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6286/0.6301, allocations: 151.6 MB / 1.017 GB, free: 2.844 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.00174/0.6319, allocations: 0.6684 MB / 1.017 GB, free: 2.172 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000254/0.6322, allocations: 63.72 kB / 1.017 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.095e-05/0.6322, allocations: 0 / 1.017 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.36e-05/0.6322, allocations: 0 / 1.017 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.521e-06/0.6322, allocations: 0 / 1.017 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001855/0.6324, allocations: 27.97 kB / 1.017 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.866e-05/0.6325, allocations: 11.98 kB / 1.017 GB, free: 2.07 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.666e-05/0.6325, allocations: 4 kB / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.693e-05/0.6325, allocations: 4 kB / 1.017 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.176e-05/0.6326, allocations: 7.922 kB / 1.017 GB, free: 2.055 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.6326, allocations: 7.938 kB / 1.017 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.908e-05/0.6327, allocations: 11.98 kB / 1.018 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.316e-05/0.6327, allocations: 7.984 kB / 1.018 GB, free: 2.027 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.216e-05/0.6327, allocations: 7.938 kB / 1.018 GB, free: 2.02 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.1e-05/0.6328, allocations: 15.97 kB / 1.018 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.6328, allocations: 0 / 1.018 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of FrontEnd: time 7.21e-07/0.6328, allocations: 4 kB / 1.018 GB, free: 2 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.6328, allocations: 0 / 1.018 GB, free: 2 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.0003054/0.6331, allocations: 327.5 kB / 1.018 GB, free: 1.629 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.6332, allocations: 8.031 kB / 1.018 GB, free: 1.621 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.036e-05/0.6332, allocations: 38.73 kB / 1.018 GB, free: 1.574 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.6332, allocations: 0.9375 kB / 1.018 GB, free: 1.574 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.208e-05/0.6333, allocations: 164.4 kB / 1.018 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.6333, allocations: 384 / 1.018 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.6333, allocations: 8.375 kB / 1.018 GB, free: 1.367 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.6335, allocations: 70.48 kB / 1.018 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-06/0.6335, allocations: 3.938 kB / 1.018 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.6335, allocations: 3.984 kB / 1.018 GB, free: 1.27 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.6335, allocations: 0 / 1.018 GB, free: 1.27 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.523e-05/0.6335, allocations: 15.94 kB / 1.018 GB, free: 1.254 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.6337, allocations: 179.4 kB / 1.018 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 9.945e-05/0.6338, allocations: 109.1 kB / 1.018 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.349e-05/0.6339, allocations: 40.22 kB / 1.018 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001788/0.6341, allocations: 81.11 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.6341, allocations: 38.5 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.6341, allocations: 4 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0001847/0.6343, allocations: 73.48 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.44e-05/0.6344, allocations: 166.2 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.05e-05/0.6344, allocations: 89.86 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.6344, allocations: 25.7 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.68e-05/0.6345, allocations: 84.77 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 3.483e-05/0.6345, allocations: 23.73 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.6345, allocations: 17.72 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.6347, allocations: 314.8 kB / 1.019 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.085e-05/0.6347, allocations: 7.984 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.33e-05/0.6347, allocations: 28.3 kB / 1.019 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.813e-05/0.6348, allocations: 56.22 kB / 1.019 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.6348, allocations: 0 / 1.019 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.996e-05/0.6349, allocations: 65.47 kB / 1.019 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.6349, allocations: 8 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.635, allocations: 8.094 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.635, allocations: 0 / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.659e-05/0.6351, allocations: 11.98 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.6351, allocations: 7.984 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.923e-05/0.6351, allocations: 4.125 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.6351, allocations: 4 kB / 1.02 GB, free: 15.57 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 8.113e-05/0.6352, allocations: 118.3 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.6352, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001932/0.6354, allocations: 104.6 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.6354, allocations: 4 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.6354, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.6355, allocations: 4 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.6356, allocations: 165.7 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.6356, allocations: 4 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.052e-05/0.6357, allocations: 15.98 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.6357, allocations: 4 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.6357, allocations: 7.938 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.6357, allocations: 11.88 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.6357, allocations: 0 / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.6359, allocations: 124.4 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.894e-05/0.6359, allocations: 85.05 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.6359, allocations: 11.94 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.024e-05/0.636, allocations: 0 / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.039e-05/0.636, allocations: 7.984 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.636, allocations: 8 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.859e-05/0.636, allocations: 79.28 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6361, allocations: 0 / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002123/0.6363, allocations: 8 kB / 1.02 GB, free: 14.71 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.0004269/0.6367, allocations: 0.6703 MB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001045/0.6368, allocations: 31.92 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.6368, allocations: 0 / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.753e-05/0.6369, allocations: 27.92 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.637, allocations: 10.5 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003849/0.6374, allocations: 189.3 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.6377, allocations: 0.677 MB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.814e-05/0.6378, allocations: 15.92 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.6378, allocations: 11.44 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6378, allocations: 0 / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0109/0.6487, allocations: 1.283 MB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/0.6489, allocations: 192.8 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/2.24, allocations: 0 / 1.023 GB, free: 11.52 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_Round_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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