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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008597/0.0008597, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004997/0.004996, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.228/1.228, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.144/2.144, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003015, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5485/0.5488, allocations: 142.4 MB / 0.9552 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.0005621/0.5494, allocations: 335.1 kB / 0.9555 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002225/0.5497, allocations: 58.5 kB / 0.9556 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.093e-05/0.5497, allocations: 0 / 0.9556 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.106e-05/0.5497, allocations: 3.938 kB / 0.9556 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.361e-06/0.5497, allocations: 4 kB / 0.9556 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001702/0.5499, allocations: 20.03 kB / 0.9556 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.546e-05/0.5499, allocations: 9.531 kB / 0.9556 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.354e-05/0.55, allocations: 5.328 kB / 0.9556 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.552e-05/0.55, allocations: 12.06 kB / 0.9556 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.471e-05/0.5501, allocations: 11.95 kB / 0.9556 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.127e-06/0.5501, allocations: 0 / 0.9556 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.298e-05/0.5501, allocations: 18.7 kB / 0.9556 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.206e-06/0.5502, allocations: 1.094 kB / 0.9556 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.27e-05/0.5502, allocations: 36 kB / 0.9557 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.101e-05/0.5503, allocations: 22.44 kB / 0.9557 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.5503, allocations: 0 / 0.9557 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.5503, allocations: 0 / 0.9557 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.337e-06/0.5503, allocations: 1 kB / 0.9557 GB, free: 7.359 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.0002068/0.5505, allocations: 321.5 kB / 0.956 GB, free: 7 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.5505, allocations: 8.844 kB / 0.956 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.236e-05/0.5506, allocations: 35.94 kB / 0.956 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.171e-05/0.5506, allocations: 5.938 kB / 0.956 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.247e-05/0.5506, allocations: 165.6 kB / 0.9562 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.305e-06/0.5506, allocations: 5.625 kB / 0.9562 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.654e-06/0.5507, allocations: 5.438 kB / 0.9562 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.076e-05/0.5507, allocations: 70.48 kB / 0.9563 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.5508, allocations: 7.922 kB / 0.9563 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-06/0.5508, allocations: 1.25 kB / 0.9563 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.5508, allocations: 1.094 kB / 0.9563 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.024e-05/0.5508, allocations: 18.7 kB / 0.9563 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001073/0.5509, allocations: 177.2 kB / 0.9565 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.371e-05/0.551, allocations: 100.8 kB / 0.9566 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.713e-05/0.551, allocations: 33.67 kB / 0.9566 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.5512, allocations: 84.28 kB / 0.9567 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.5512, allocations: 44.81 kB / 0.9567 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.5512, allocations: 0 / 0.9567 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001476/0.5514, allocations: 72.98 kB / 0.9568 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.5514, allocations: 160.4 kB / 0.957 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.293e-05/0.5514, allocations: 89.86 kB / 0.957 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.284e-06/0.5514, allocations: 35.3 kB / 0.9571 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.316e-06/0.5514, allocations: 84.14 kB / 0.9572 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.5515, allocations: 18.14 kB / 0.9572 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.885e-05/0.5515, allocations: 14.81 kB / 0.9572 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.289e-05/0.5515, allocations: 316 kB / 0.9575 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.437e-05/0.5515, allocations: 3.312 kB / 0.9575 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.232e-05/0.5516, allocations: 38.3 kB / 0.9575 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.915e-05/0.5516, allocations: 52 kB / 0.9576 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.5516, allocations: 0 / 0.9576 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.081e-05/0.5517, allocations: 61.78 kB / 0.9576 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.998e-06/0.5517, allocations: 9.812 kB / 0.9576 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.5517, allocations: 9.156 kB / 0.9577 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.288e-06/0.5518, allocations: 2.312 kB / 0.9577 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.033e-05/0.5518, allocations: 11.8 kB / 0.9577 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.5518, allocations: 1.312 kB / 0.9577 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.976e-05/0.5519, allocations: 10.19 kB / 0.9577 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.5519, allocations: 2.312 kB / 0.9577 GB, free: 5.098 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 3.984e-05/0.5519, allocations: 112.8 kB / 0.9578 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.264e-05/0.5519, allocations: 1.969 kB / 0.9578 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.5521, allocations: 109 kB / 0.9579 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.5521, allocations: 2.75 kB / 0.9579 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.5521, allocations: 1.375 kB / 0.9579 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.5521, allocations: 9.203 kB / 0.9579 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.825e-05/0.5522, allocations: 162.7 kB / 0.9581 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5522, allocations: 1.25 kB / 0.9581 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.136e-05/0.5523, allocations: 13.41 kB / 0.9581 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.5523, allocations: 1.938 kB / 0.9581 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.5523, allocations: 6.375 kB / 0.9581 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.5523, allocations: 9.078 kB / 0.9581 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5523, allocations: 1.219 kB / 0.9581 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.719e-05/0.5524, allocations: 125.5 kB / 0.9582 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.614e-05/0.5524, allocations: 83.42 kB / 0.9583 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.5524, allocations: 10.45 kB / 0.9583 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.74e-05/0.5525, allocations: 1.438 kB / 0.9583 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.481e-05/0.5525, allocations: 7.875 kB / 0.9583 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.5525, allocations: 7.219 kB / 0.9583 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.016e-05/0.5525, allocations: 80.69 kB / 0.9584 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5525, allocations: 0 / 0.9584 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001914/0.5527, allocations: 6.188 kB / 0.9584 GB, free: 4.363 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.0002561/0.553, allocations: 0.6624 MB / 0.959 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.851e-05/0.5531, allocations: 35.55 kB / 0.9591 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.5531, allocations: 1.375 kB / 0.9591 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.076e-05/0.5531, allocations: 28.42 kB / 0.9591 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.5533, allocations: 12.5 kB / 0.9591 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002761/0.5535, allocations: 185.2 kB / 0.9593 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.272e-05/0.5536, allocations: 0.6807 MB / 0.96 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.664e-05/0.5537, allocations: 13.84 kB / 0.96 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.631e-05/0.5537, allocations: 15.03 kB / 0.96 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5537, allocations: 0 / 0.96 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1796/0.7333, allocations: 1.215 MB / 0.9612 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000135/0.7335, allocations: 203 kB / 0.9614 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.495/2.229, allocations: 0 / 0.9614 GB, free: 1.91 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