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.001306/0.001306, allocations: 108 kB / 15.6 MB, free: 132 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.001377/0.001377, allocations: 192.5 kB / 16.53 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.293/2.293, allocations: 390.2 MB / 0.6647 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 59.91 kB / 0.8126 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6172/0.6185, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002279/0.6209, allocations: 1.418 MB / 0.9511 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002481/0.6211, allocations: 90.2 kB / 0.9512 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.918e-05/0.6212, allocations: 0 / 0.9512 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.697e-05/0.6212, allocations: 9.125 kB / 0.9512 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.884e-05/0.6213, allocations: 12.69 kB / 0.9512 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002073/0.6215, allocations: 17.81 kB / 0.9512 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.112e-05/0.6215, allocations: 22.81 kB / 0.9513 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.951e-05/0.6216, allocations: 6.641 kB / 0.9513 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.329e-05/0.6217, allocations: 7.906 kB / 0.9513 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.424e-05/0.6217, allocations: 14.45 kB / 0.9513 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.6217, allocations: 2.125 kB / 0.9513 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.133e-05/0.6218, allocations: 17.08 kB / 0.9513 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.347e-05/0.6218, allocations: 9.453 kB / 0.9513 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.6219, allocations: 18.83 kB / 0.9513 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.904e-05/0.622, allocations: 34.42 kB / 0.9514 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.622, allocations: 1.406 kB / 0.9514 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.183e-06/0.622, allocations: 3.938 kB / 0.9514 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.622, allocations: 0 / 0.9514 GB, free: 7.91 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003285/0.6223, allocations: 341.2 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.6224, allocations: 9.812 kB / 0.9517 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.098e-05/0.6224, allocations: 34.75 kB / 0.9517 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.286e-05/0.6224, allocations: 6.375 kB / 0.9517 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.905e-05/0.6225, allocations: 173.9 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.6225, allocations: 1.469 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.6225, allocations: 1.562 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.6227, allocations: 60.02 kB / 0.952 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.6227, allocations: 3.938 kB / 0.952 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.114e-06/0.6227, allocations: 0 / 0.952 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.6227, allocations: 0 / 0.952 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001636/0.6229, allocations: 45.67 kB / 0.952 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002254/0.6231, allocations: 252.3 kB / 0.9523 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/0.6233, allocations: 42.19 kB / 0.9523 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.491e-05/0.6234, allocations: 24.11 kB / 0.9523 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.6234, allocations: 2.5 kB / 0.9523 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.378e-05/0.6234, allocations: 43.81 kB / 0.9524 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.6234, allocations: 0 / 0.9524 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003239/0.6237, allocations: 88.55 kB / 0.9524 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.777e-05/0.6238, allocations: 56.69 kB / 0.9525 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.158e-05/0.6238, allocations: 105.3 kB / 0.9526 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.983e-06/0.6238, allocations: 30.89 kB / 0.9526 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.347e-05/0.6239, allocations: 85.22 kB / 0.9527 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.6239, allocations: 5.156 kB / 0.9527 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.6239, allocations: 19.98 kB / 0.9527 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.815e-05/0.624, allocations: 312.5 kB / 0.953 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.321e-05/0.6241, allocations: 17.23 kB / 0.953 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.125e-05/0.6241, allocations: 15.14 kB / 0.9531 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.6243, allocations: 58.78 kB / 0.9531 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.6243, allocations: 3.938 kB / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001816/0.6245, allocations: 67.28 kB / 0.9532 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.6245, allocations: 5.281 kB / 0.9532 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.6245, allocations: 0 / 0.9532 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.6245, allocations: 5.344 kB / 0.9532 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.947e-05/0.6246, allocations: 10.17 kB / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.6246, allocations: 0 / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.437e-05/0.6247, allocations: 3.906 kB / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-06/0.6247, allocations: 1.25 kB / 0.9532 GB, free: 6.023 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 (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 4.394e-05/0.6247, allocations: 119.1 kB / 0.9533 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.6248, allocations: 1.375 kB / 0.9533 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002146/0.625, allocations: 79.22 kB / 0.9534 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.625, allocations: 0 / 0.9534 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.625, allocations: 0 / 0.9534 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.625, allocations: 5 kB / 0.9534 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.6251, allocations: 172.9 kB / 0.9536 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.6251, allocations: 0 / 0.9536 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.477e-05/0.6252, allocations: 9.172 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.6252, allocations: 1.312 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.6252, allocations: 0 / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.6252, allocations: 5.531 kB / 0.9536 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.6252, allocations: 256 / 0.9536 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001985/0.6254, allocations: 169.6 kB / 0.9537 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.545e-05/0.6254, allocations: 78.23 kB / 0.9538 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.6255, allocations: 5.094 kB / 0.9538 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.279e-05/0.6255, allocations: 7.422 kB / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.05e-05/0.6256, allocations: 5.5 kB / 0.9538 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.6256, allocations: 1.531 kB / 0.9538 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.483e-05/0.6256, allocations: 87.27 kB / 0.9539 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6256, allocations: 1.031 kB / 0.9539 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002246/0.6258, allocations: 7.969 kB / 0.9539 GB, free: 5.27 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 (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.000383/0.6262, allocations: 0.703 MB / 0.9546 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002082/0.6264, allocations: 43.92 kB / 0.9547 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.6265, allocations: 0 / 0.9547 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.364e-05/0.6265, allocations: 21.89 kB / 0.9547 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.6268, allocations: 6.812 kB / 0.9547 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003575/0.6272, allocations: 148.9 kB / 0.9548 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.99e-05/0.6273, allocations: 0.6889 MB / 0.9555 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.146e-05/0.6273, allocations: 2.812 kB / 0.9555 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.355e-05/0.6273, allocations: 7.438 kB / 0.9555 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6273, allocations: 0 / 0.9555 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01589/0.6432, allocations: 1.406 MB / 0.9569 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.091/7.734, allocations: 4.406 kB / 0.9569 GB, free: 2.863 MB / 0.7169 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