Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.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.Polynomial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Polynomial",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.006161/0.006161, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.001152/0.001152, allocations: 190 kB / 16.67 MB, free: 5.934 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.458/2.458, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 63.91 kB / 1.018 GB, free: 9.852 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9003/0.9017, allocations: 151.6 MB / 1.166 GB, free: 3.758 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001932/0.9037, allocations: 0.5883 MB / 1.167 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0002479/0.904, allocations: 33.84 kB / 1.167 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.228e-05/0.904, allocations: 3.938 kB / 1.167 GB, free: 3.137 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.904, allocations: 4 kB / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.525e-06/0.9041, allocations: 0 / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000242/0.9043, allocations: 11.94 kB / 1.167 GB, free: 3.121 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.069e-05/0.9044, allocations: 7.984 kB / 1.167 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.791e-05/0.9044, allocations: 0 / 1.167 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.185e-05/0.9044, allocations: 0 / 1.167 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.927e-05/0.9045, allocations: 4 kB / 1.167 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 8.015e-06/0.9045, allocations: 0 / 1.167 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.107e-05/0.9046, allocations: 15.98 kB / 1.167 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.937e-06/0.9046, allocations: 0 / 1.167 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.032e-05/0.9046, allocations: 3.984 kB / 1.167 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 9.506e-05/0.9047, allocations: 27.91 kB / 1.167 GB, free: 3.062 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.9047, allocations: 4 kB / 1.167 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9047, allocations: 0 / 1.167 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.9047, allocations: 0 / 1.167 GB, free: 3.059 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002802/0.905, allocations: 310.3 kB / 1.167 GB, free: 2.707 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.9051, allocations: 8.922 kB / 1.167 GB, free: 2.699 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.584e-05/0.9051, allocations: 30.75 kB / 1.167 GB, free: 2.66 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.002e-05/0.9051, allocations: 4.938 kB / 1.167 GB, free: 2.656 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.633e-05/0.9052, allocations: 168.3 kB / 1.167 GB, free: 2.453 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.9052, allocations: 8.375 kB / 1.167 GB, free: 2.445 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.9053, allocations: 384 / 1.167 GB, free: 2.445 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.341e-05/0.9053, allocations: 26.27 kB / 1.167 GB, free: 2.414 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.9053, allocations: 3.938 kB / 1.167 GB, free: 2.41 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.9054, allocations: 0 / 1.167 GB, free: 2.41 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.9054, allocations: 4 kB / 1.167 GB, free: 2.406 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.845e-05/0.9054, allocations: 3.938 kB / 1.167 GB, free: 2.402 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.9055, allocations: 145.7 kB / 1.168 GB, free: 2.211 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 3.739e-05/0.9056, allocations: 26.61 kB / 1.168 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.53e-05/0.9056, allocations: 4.859 kB / 1.168 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.9056, allocations: 4.062 kB / 1.168 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.9057, allocations: 30.56 kB / 1.168 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.9057, allocations: 0 / 1.168 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0001031/0.9058, allocations: 45.47 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.9058, allocations: 55.39 kB / 1.168 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.259e-05/0.9058, allocations: 93.98 kB / 1.168 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.9059, allocations: 29.7 kB / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.507e-05/0.9059, allocations: 84.14 kB / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.264e-05/0.9059, allocations: 0 / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-05/0.906, allocations: 9.719 kB / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.9061, allocations: 310.8 kB / 1.168 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.166e-05/0.9061, allocations: 8 kB / 1.168 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.132e-06/0.9061, allocations: 0 / 1.168 GB, free: 1.449 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.671e-05/0.9061, allocations: 12.92 kB / 1.168 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.9061, allocations: 0 / 1.168 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.563e-05/0.9062, allocations: 41.62 kB / 1.168 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.9062, allocations: 8 kB / 1.168 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.9062, allocations: 3.938 kB / 1.168 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.516e-06/0.9062, allocations: 0 / 1.168 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.16e-05/0.9063, allocations: 0 / 1.168 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.865e-06/0.9063, allocations: 0 / 1.168 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.9063, allocations: 4 kB / 1.168 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.9063, allocations: 4.031 kB / 1.168 GB, free: 1.367 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.618e-05/0.9064, allocations: 105.8 kB / 1.168 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.818e-06/0.9064, allocations: 3.984 kB / 1.168 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.521e-05/0.9065, allocations: 56.62 kB / 1.168 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.9065, allocations: 0 / 1.168 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.9065, allocations: 0 / 1.168 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.9065, allocations: 4.031 kB / 1.168 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.195e-05/0.9066, allocations: 145.7 kB / 1.169 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.9066, allocations: 4 kB / 1.169 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.822e-05/0.9067, allocations: 0 / 1.169 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.9067, allocations: 0 / 1.169 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.9067, allocations: 3.938 kB / 1.169 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.9067, allocations: 0 / 1.169 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.9067, allocations: 4 kB / 1.169 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.578e-05/0.9068, allocations: 61.12 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 3.769e-05/0.9068, allocations: 77.11 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.9068, allocations: 7.938 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.149e-05/0.9068, allocations: 0 / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.075e-05/0.9069, allocations: 0 / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.9069, allocations: 0 / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.664e-05/0.9069, allocations: 75.28 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9069, allocations: 3.938 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0001914/0.9071, allocations: 4.984 kB / 1.169 GB, free: 0.7148 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.0003743/0.9075, allocations: 0.6124 MB / 1.169 GB, free: 72 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 5.486e-05/0.9075, allocations: 7.984 kB / 1.169 GB, free: 64 kB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.9076, allocations: 0 / 1.169 GB, free: 64 kB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 9.097e-06/0.9076, allocations: 3.938 kB / 1.169 GB, free: 60 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.9077, allocations: 9.875 kB / 1.169 GB, free: 52 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002569/0.908, allocations: 101.1 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.9082, allocations: 0.6768 MB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.356e-05/0.9082, allocations: 4 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.991e-05/0.9083, allocations: 7.438 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.9083, allocations: 4 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01574/0.924, allocations: 1.016 MB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.577, allocations: 13.83 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_10_Buildings_Utilities_Math_Functions_Examples_Polynomial.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches