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.00135/0.00135, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001994/0.001994, allocations: 193.6 kB / 16.14 MB, free: 6.719 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.37/1.37, allocations: 222.9 MB / 239.8 MB, free: 4.637 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.276/2.276, allocations: 390.2 MB / 0.6643 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5215/0.5229, allocations: 140.4 MB / 0.9491 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.00159/0.5245, allocations: 0.6609 MB / 0.9497 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002254/0.5248, allocations: 66.38 kB / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.708e-06/0.5248, allocations: 0 / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.5248, allocations: 0 / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.56e-06/0.5248, allocations: 1.5 kB / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.525, allocations: 22.23 kB / 0.9498 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.464e-05/0.525, allocations: 14.91 kB / 0.9498 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.331e-05/0.5251, allocations: 1.781 kB / 0.9498 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.483e-05/0.5251, allocations: 6.812 kB / 0.9498 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.5252, allocations: 7.25 kB / 0.9498 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.909e-06/0.5252, allocations: 1.312 kB / 0.9498 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.326e-05/0.5252, allocations: 19.3 kB / 0.9498 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.085e-05/0.5253, allocations: 5.203 kB / 0.9498 GB, free: 8.496 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.756e-05/0.5253, allocations: 5.391 kB / 0.9498 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.465e-05/0.5253, allocations: 18.17 kB / 0.9499 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.5254, allocations: 7.938 kB / 0.9499 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.51e-07/0.5254, allocations: 1.188 kB / 0.9499 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.316e-06/0.5254, allocations: 0 / 0.9499 GB, free: 8.473 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.0002316/0.5256, allocations: 323.6 kB / 0.9502 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.5256, allocations: 10 kB / 0.9502 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.294e-05/0.5257, allocations: 35.8 kB / 0.9502 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.157e-05/0.5257, allocations: 6 kB / 0.9502 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.141e-05/0.5257, allocations: 160.4 kB / 0.9504 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.906e-06/0.5258, allocations: 5.688 kB / 0.9504 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.5258, allocations: 10.62 kB / 0.9504 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.104e-05/0.5259, allocations: 66.48 kB / 0.9505 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.5259, allocations: 3.938 kB / 0.9505 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.5259, allocations: 1.469 kB / 0.9505 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.5259, allocations: 0 / 0.9505 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.911e-05/0.5259, allocations: 16.05 kB / 0.9505 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001033/0.526, allocations: 187.3 kB / 0.9507 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.455e-05/0.5261, allocations: 93.36 kB / 0.9508 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.942e-05/0.5261, allocations: 38.47 kB / 0.9508 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001377/0.5263, allocations: 88.06 kB / 0.9509 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.272e-05/0.5263, allocations: 44.12 kB / 0.9509 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.5263, allocations: 1.281 kB / 0.9509 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.000146/0.5265, allocations: 72.67 kB / 0.951 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.5265, allocations: 159.5 kB / 0.9511 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.382e-05/0.5265, allocations: 91.3 kB / 0.9512 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.204e-06/0.5265, allocations: 30.33 kB / 0.9513 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.957e-06/0.5265, allocations: 84.14 kB / 0.9513 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.5266, allocations: 18.48 kB / 0.9514 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-05/0.5266, allocations: 22.03 kB / 0.9514 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.364e-05/0.5266, allocations: 312.1 kB / 0.9517 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.619e-05/0.5267, allocations: 6.828 kB / 0.9517 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.161e-05/0.5267, allocations: 33.83 kB / 0.9517 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.834e-05/0.5267, allocations: 47.7 kB / 0.9518 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5267, allocations: 1.5 kB / 0.9518 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.306e-05/0.5268, allocations: 69.17 kB / 0.9518 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.5269, allocations: 9.344 kB / 0.9518 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.5269, allocations: 9.141 kB / 0.9518 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.518e-06/0.5269, allocations: 1.812 kB / 0.9518 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.184e-05/0.5269, allocations: 8.312 kB / 0.9518 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.527, allocations: 5.703 kB / 0.9519 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.731e-05/0.527, allocations: 5.312 kB / 0.9519 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.527, allocations: 2.531 kB / 0.9519 GB, free: 6.215 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.889e-05/0.527, allocations: 116.4 kB / 0.952 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.5271, allocations: 6.75 kB / 0.952 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.5272, allocations: 108.6 kB / 0.9521 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.5272, allocations: 2.844 kB / 0.9521 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.5272, allocations: 1.719 kB / 0.9521 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.5272, allocations: 5.562 kB / 0.9521 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.671e-05/0.5273, allocations: 162.2 kB / 0.9522 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.5273, allocations: 1.344 kB / 0.9522 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.567e-05/0.5274, allocations: 21.58 kB / 0.9523 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.5274, allocations: 1.281 kB / 0.9523 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.5274, allocations: 6.688 kB / 0.9523 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.5274, allocations: 1.375 kB / 0.9523 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5274, allocations: 1.375 kB / 0.9523 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.867e-05/0.5275, allocations: 129.3 kB / 0.9524 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.462e-05/0.5275, allocations: 87.73 kB / 0.9525 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.5276, allocations: 5.312 kB / 0.9525 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.793e-05/0.5276, allocations: 5.375 kB / 0.9525 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.724e-05/0.5276, allocations: 8.109 kB / 0.9525 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.892e-06/0.5276, allocations: 8.125 kB / 0.9525 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.886e-06/0.5276, allocations: 75.28 kB / 0.9526 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5276, allocations: 0 / 0.9526 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001964/0.5278, allocations: 10.88 kB / 0.9526 GB, free: 5.469 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.0002472/0.5281, allocations: 0.6627 MB / 0.9532 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.918e-05/0.5282, allocations: 32.55 kB / 0.9533 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.5282, allocations: 0 / 0.9533 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.117e-05/0.5282, allocations: 28.98 kB / 0.9533 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.5284, allocations: 7 kB / 0.9533 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002812/0.5287, allocations: 189.7 kB / 0.9535 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.281e-05/0.5287, allocations: 0.6773 MB / 0.9541 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.893e-05/0.5288, allocations: 16.11 kB / 0.9542 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.5288, allocations: 15.56 kB / 0.9542 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of SimCode: time 7.41e-07/0.5288, allocations: 0 / 0.9542 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2117/0.7405, allocations: 1.283 MB / 0.9554 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.7407, allocations: 203.5 kB / 0.9556 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.383, allocations: 3.938 kB / 0.9556 GB, free: 2.926 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