Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_latest_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.005557/0.005557, allocations: 96.88 kB / 15.73 MB, free: 6.055 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.001168/0.001168, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.719/2.719, allocations: 469.4 MB / 0.7422 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.91 kB / 1.064 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8255/0.8269, allocations: 159.1 MB / 1.22 GB, free: 2.211 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.002607/0.8295, allocations: 0.5758 MB / 1.22 GB, free: 1.633 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003005/0.8298, allocations: 41.84 kB / 1.22 GB, free: 1.594 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.477e-05/0.8299, allocations: 0 / 1.22 GB, free: 1.594 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.908e-05/0.8299, allocations: 4 kB / 1.22 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.605e-06/0.83, allocations: 3.938 kB / 1.22 GB, free: 1.586 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003406/0.8303, allocations: 11.98 kB / 1.22 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.256e-05/0.8304, allocations: 4 kB / 1.22 GB, free: 1.57 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.366e-05/0.8304, allocations: 3.984 kB / 1.22 GB, free: 1.566 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.022e-05/0.8305, allocations: 7.984 kB / 1.22 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.318e-05/0.8305, allocations: 0 / 1.22 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.8306, allocations: 3.938 kB / 1.22 GB, free: 1.555 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.8307, allocations: 19.92 kB / 1.22 GB, free: 1.535 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.059e-05/0.8307, allocations: 0 / 1.22 GB, free: 1.535 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.665e-05/0.8308, allocations: 4 kB / 1.22 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.8309, allocations: 15.98 kB / 1.22 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.8309, allocations: 0 / 1.22 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.024e-06/0.831, allocations: 0 / 1.22 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.831, allocations: 0 / 1.22 GB, free: 1.516 MB / 0.9356 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.0004032/0.8314, allocations: 318.2 kB / 1.221 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.8314, allocations: 12.62 kB / 1.221 GB, free: 1.145 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.384e-05/0.8315, allocations: 30.75 kB / 1.221 GB, free: 1.105 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.8316, allocations: 0.9375 kB / 1.221 GB, free: 1.105 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.8317, allocations: 160.4 kB / 1.221 GB, free: 0.9102 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.8317, allocations: 4.375 kB / 1.221 GB, free: 0.9062 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.997e-06/0.8317, allocations: 4.312 kB / 1.221 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.8319, allocations: 38.19 kB / 1.221 GB, free: 0.8594 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.8319, allocations: 3.938 kB / 1.221 GB, free: 0.8555 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.8319, allocations: 4 kB / 1.221 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.8319, allocations: 0 / 1.221 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.786e-05/0.832, allocations: 0 / 1.221 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.8322, allocations: 145.7 kB / 1.221 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.417e-05/0.8322, allocations: 22.56 kB / 1.221 GB, free: 0.6289 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.881e-05/0.8323, allocations: 4.953 kB / 1.221 GB, free: 0.6211 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.28e-05/0.8323, allocations: 4 kB / 1.221 GB, free: 0.6172 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.8324, allocations: 38.5 kB / 1.221 GB, free: 0.5703 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.964e-06/0.8324, allocations: 0 / 1.221 GB, free: 0.5703 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001757/0.8326, allocations: 37.64 kB / 1.221 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.8326, allocations: 51.41 kB / 1.221 GB, free: 476 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.233e-05/0.8327, allocations: 93.98 kB / 1.221 GB, free: 372 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.8328, allocations: 25.7 kB / 1.221 GB, free: 340 kB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.23e-05/0.8328, allocations: 80.14 kB / 1.221 GB, free: 256 kB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.161e-05/0.8328, allocations: 3.984 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.993e-05/0.8329, allocations: 17.72 kB / 1.222 GB, free: 228 kB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.8331, allocations: 310.8 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.698e-05/0.8331, allocations: 0 / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.598e-05/0.8332, allocations: 3.938 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.132e-05/0.8332, allocations: 12.92 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.8332, allocations: 0 / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001061/0.8333, allocations: 37.69 kB / 1.222 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.8334, allocations: 4 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.8334, allocations: 7.938 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.8334, allocations: 0 / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-05/0.8335, allocations: 7.938 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.8335, allocations: 0 / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.159e-05/0.8336, allocations: 0 / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.8336, allocations: 4.031 kB / 1.222 GB, free: 15.82 MB / 0.9512 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 0.0001145/0.8337, allocations: 114.4 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.8338, allocations: 0 / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001476/0.8339, allocations: 44.69 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.8339, allocations: 0 / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.834, allocations: 7.938 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.834, allocations: 8.016 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.8341, allocations: 153.7 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.8341, allocations: 0 / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.737e-05/0.8342, allocations: 0 / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.8342, allocations: 4 kB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.8342, allocations: 3.938 kB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.8342, allocations: 0 / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.8342, allocations: 0 / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.8344, allocations: 65.06 kB / 1.222 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.669e-05/0.8344, allocations: 77.11 kB / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.8345, allocations: 7.938 kB / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.978e-05/0.8345, allocations: 0 / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.395e-05/0.8345, allocations: 0 / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.8345, allocations: 4 kB / 1.222 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.478e-05/0.8346, allocations: 75.28 kB / 1.222 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.5e-07/0.8346, allocations: 0 / 1.222 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003774/0.835, allocations: 4.984 kB / 1.222 GB, free: 15.16 MB / 0.9512 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.0005479/0.8355, allocations: 0.6046 MB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 8.95e-05/0.8357, allocations: 7.938 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8357, allocations: 0 / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 2.126e-05/0.8357, allocations: 3.984 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.8359, allocations: 9.719 kB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004175/0.8364, allocations: 102.6 kB / 1.223 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.8368, allocations: 0.669 MB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.088e-05/0.8368, allocations: 7.984 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.8369, allocations: 11.44 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of SimCode: time 3.81e-07/0.8369, allocations: 4 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.8597, allocations: 1.009 MB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.607/8.467, allocations: 17.97 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_Math_Functions_Examples_Polynomial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches