Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Functions.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_9_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.0015/0.0015, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.323/2.323, allocations: 390.2 MB / 0.6647 GB, free: 404 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 75.84 kB / 0.8127 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6009/0.6024, allocations: 140.4 MB / 0.9497 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001772/0.6042, allocations: 0.5772 MB / 0.9503 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002307/0.6045, allocations: 35.28 kB / 0.9503 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.222e-05/0.6045, allocations: 1.344 kB / 0.9503 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.427e-05/0.6045, allocations: 0 / 0.9503 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.72e-06/0.6045, allocations: 0 / 0.9503 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.6048, allocations: 14.67 kB / 0.9503 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.154e-05/0.6049, allocations: 9.359 kB / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.689e-05/0.6049, allocations: 1.281 kB / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.451e-05/0.6049, allocations: 0 / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.478e-05/0.605, allocations: 9.219 kB / 0.9504 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.037e-06/0.605, allocations: 0 / 0.9504 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.736e-05/0.6051, allocations: 16.8 kB / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.536e-06/0.6051, allocations: 0 / 0.9504 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.001e-05/0.6051, allocations: 7.922 kB / 0.9504 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.5e-05/0.6052, allocations: 15.27 kB / 0.9504 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.6052, allocations: 0 / 0.9504 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.174e-06/0.6052, allocations: 0 / 0.9504 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.6052, allocations: 4 kB / 0.9504 GB, free: 8.617 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002375/0.6055, allocations: 316.8 kB / 0.9507 GB, free: 8.262 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.6055, allocations: 12.61 kB / 0.9507 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.744e-05/0.6055, allocations: 32.38 kB / 0.9507 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.051e-05/0.6056, allocations: 0.9375 kB / 0.9507 GB, free: 8.219 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.761e-05/0.6056, allocations: 164.4 kB / 0.9509 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-06/0.6056, allocations: 384 / 0.9509 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.981e-06/0.6056, allocations: 1.906 kB / 0.9509 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.403e-05/0.6057, allocations: 31.98 kB / 0.9509 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.6057, allocations: 3.938 kB / 0.9509 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.6058, allocations: 1.344 kB / 0.9509 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.6058, allocations: 0 / 0.9509 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.067e-05/0.6058, allocations: 9.266 kB / 0.9509 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.576e-05/0.6059, allocations: 147.1 kB / 0.9511 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.331e-05/0.6059, allocations: 16.73 kB / 0.9511 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.632e-05/0.6059, allocations: 5.891 kB / 0.9511 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.606, allocations: 9.875 kB / 0.9511 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.836e-05/0.606, allocations: 31.72 kB / 0.9512 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.606, allocations: 0 / 0.9512 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001156/0.6061, allocations: 47 kB / 0.9512 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.6062, allocations: 52.28 kB / 0.9512 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.5e-05/0.6062, allocations: 89.86 kB / 0.9513 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.472e-06/0.6062, allocations: 25.7 kB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.057e-05/0.6062, allocations: 81.17 kB / 0.9514 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.6062, allocations: 7.906 kB / 0.9514 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.24e-05/0.6063, allocations: 13 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.335e-05/0.6063, allocations: 314.8 kB / 0.9518 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.6063, allocations: 1.906 kB / 0.9518 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-06/0.6063, allocations: 0 / 0.9518 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.328e-05/0.6064, allocations: 13.25 kB / 0.9518 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.6064, allocations: 0 / 0.9518 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.427e-05/0.6064, allocations: 38.92 kB / 0.9518 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.6064, allocations: 5.781 kB / 0.9518 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.6065, allocations: 3.938 kB / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.6065, allocations: 0 / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.043e-05/0.6065, allocations: 1.688 kB / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.6065, allocations: 1.281 kB / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.216e-05/0.6066, allocations: 0 / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.6066, allocations: 9.594 kB / 0.9518 GB, free: 6.98 MB / 0.7169 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 4.295e-05/0.6066, allocations: 111.7 kB / 0.9519 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.983e-06/0.6066, allocations: 8.031 kB / 0.9519 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.676e-05/0.6067, allocations: 43.61 kB / 0.952 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.6067, allocations: 3.984 kB / 0.952 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.6067, allocations: 0 / 0.952 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.6067, allocations: 0 / 0.952 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.656e-05/0.6068, allocations: 143.1 kB / 0.9521 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.6068, allocations: 0 / 0.9521 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.598e-05/0.6068, allocations: 6.312 kB / 0.9521 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.6068, allocations: 0 / 0.9521 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.6068, allocations: 5.094 kB / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.6068, allocations: 0 / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.6068, allocations: 1.094 kB / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.925e-05/0.6069, allocations: 63.41 kB / 0.9522 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.311e-05/0.6069, allocations: 77.11 kB / 0.9523 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-06/0.6069, allocations: 5.031 kB / 0.9523 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.6069, allocations: 5.219 kB / 0.9523 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.171e-05/0.607, allocations: 3.984 kB / 0.9523 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.607, allocations: 5.297 kB / 0.9523 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.061e-05/0.607, allocations: 75.28 kB / 0.9524 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.607, allocations: 5.312 kB / 0.9524 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001975/0.6072, allocations: 7.812 kB / 0.9524 GB, free: 6.348 MB / 0.7169 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.0002461/0.6074, allocations: 0.6025 MB / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.857e-05/0.6075, allocations: 5.031 kB / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.6075, allocations: 0 / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.065e-05/0.6075, allocations: 6.844 kB / 0.953 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.6077, allocations: 1.625 kB / 0.953 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002595/0.6079, allocations: 109.5 kB / 0.9531 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.266e-05/0.6081, allocations: 0.6817 MB / 0.9537 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.33e-05/0.6081, allocations: 1.312 kB / 0.9537 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.099e-05/0.6081, allocations: 8.719 kB / 0.9538 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.6081, allocations: 0 / 0.9538 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01574/0.6239, allocations: 0.9891 MB / 0.9547 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.34/7.964, allocations: 8.891 kB / 0.9547 GB, free: 4.293 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_Polynomial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches