Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_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.004771/0.004771, allocations: 96.94 kB / 15.73 MB, free: 6.484 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.001101/0.001101, allocations: 191.7 kB / 16.67 MB, free: 6.391 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 / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.392/2.392, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.12 kB / 0.9504 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3026, allocations: 140.4 MB / 1.087 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002842/0.3055, allocations: 1.427 MB / 1.089 GB, free: 0.543 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003186/0.3059, allocations: 100.6 kB / 1.089 GB, free: 452 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.072e-05/0.3059, allocations: 0 / 1.089 GB, free: 452 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 7.342e-05/0.306, allocations: 4 kB / 1.089 GB, free: 448 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.995e-05/0.3061, allocations: 11.86 kB / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.3063, allocations: 11.98 kB / 1.089 GB, free: 424 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.396e-05/0.3064, allocations: 27.92 kB / 1.089 GB, free: 396 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.251e-05/0.3065, allocations: 4 kB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.668e-05/0.3066, allocations: 7.938 kB / 1.089 GB, free: 384 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.356e-05/0.3066, allocations: 15.97 kB / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.3066, allocations: 11.94 kB / 1.089 GB, free: 356 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.3067, allocations: 19.92 kB / 1.089 GB, free: 336 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.828e-05/0.3068, allocations: 11.98 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.783e-05/0.3068, allocations: 3.938 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.307, allocations: 40.11 kB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.307, allocations: 0 / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.623e-06/0.307, allocations: 0 / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.307, allocations: 0 / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004868/0.3075, allocations: 347.4 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.3076, allocations: 8.031 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.048e-05/0.3076, allocations: 38.75 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/0.3077, allocations: 0.9375 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.3078, allocations: 172.3 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.397e-06/0.3078, allocations: 4.375 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.3078, allocations: 384 / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.308, allocations: 54.17 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.3081, allocations: 3.938 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.3081, allocations: 0 / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3081, allocations: 4 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.3083, allocations: 35.97 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003696/0.3086, allocations: 253 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.3088, allocations: 50.42 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.697e-05/0.3089, allocations: 20.91 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.3089, allocations: 4 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.309, allocations: 34.56 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.309, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003925/0.3094, allocations: 85.62 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.3094, allocations: 59.53 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.733e-05/0.3095, allocations: 109.8 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.3095, allocations: 25.7 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.792e-05/0.3096, allocations: 88.09 kB / 1.09 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.3096, allocations: 19.75 kB / 1.09 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.3097, allocations: 17.72 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3098, allocations: 310.8 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.202e-05/0.3099, allocations: 23.98 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.018e-05/0.31, allocations: 15.97 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.3102, allocations: 48.77 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3102, allocations: 3.938 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002061/0.3104, allocations: 69.72 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3104, allocations: 4 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.3104, allocations: 4 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3105, allocations: 0 / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.3106, allocations: 11.92 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.3106, allocations: 0 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.392e-05/0.3106, allocations: 7.984 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.3107, allocations: 0 / 1.091 GB, free: 14.14 MB / 0.8575 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 (2): * Single equations (assignments): 2 * 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 9.671e-05/0.3108, allocations: 119.8 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.3108, allocations: 4.031 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002774/0.3111, allocations: 73.19 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3111, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3111, allocations: 0 / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3111, allocations: 3.984 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.3113, allocations: 165.6 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3113, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.216e-05/0.3114, allocations: 7.984 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3114, allocations: 4.031 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.3114, allocations: 4 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.3114, allocations: 3.938 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3114, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000272/0.3117, allocations: 171.4 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.3118, allocations: 77.11 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.3118, allocations: 4.031 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.934e-05/0.3119, allocations: 7.984 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.457e-05/0.3119, allocations: 256 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.3119, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.824e-05/0.312, allocations: 95.27 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.164e-06/0.312, allocations: 0 / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002404/0.3123, allocations: 11.94 kB / 1.092 GB, free: 13.3 MB / 0.8575 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 (2): * Single equations (assignments): 2 * 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.0006174/0.3129, allocations: 0.7084 MB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002338/0.3131, allocations: 35.97 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3131, allocations: 96 / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.548e-05/0.3133, allocations: 31.97 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.3136, allocations: 0 / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004975/0.3141, allocations: 155.1 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.3144, allocations: 0.6806 MB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.208e-05/0.3145, allocations: 4 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.923e-05/0.3145, allocations: 11.42 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of SimCode: time 8.92e-07/0.3145, allocations: 4.062 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.3329, allocations: 1.409 MB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/7.752, allocations: 10.09 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_Math_Examples_Polynomial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches