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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.007326/0.007326, allocations: 101.2 kB / 15.73 MB, free: 6.004 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.001544/0.001543, allocations: 187 kB / 16.67 MB, free: 5.922 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.894/2.894, allocations: 472.7 MB / 0.7453 GB, free: 416 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 64.03 kB / 1.069 GB, free: 9.965 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8096/0.8112, allocations: 159.9 MB / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001499/0.8128, allocations: 0.5757 MB / 1.226 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0002323/0.813, allocations: 41.84 kB / 1.226 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.194e-05/0.813, allocations: 7.938 kB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.473e-05/0.8131, allocations: 0 / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.8131, allocations: 0 / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002794/0.8134, allocations: 15.92 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 4.383e-05/0.8134, allocations: 0 / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.617e-05/0.8135, allocations: 8 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 1.294e-05/0.8135, allocations: 0 / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 3.631e-05/0.8135, allocations: 0 / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.8135, allocations: 0 / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.8136, allocations: 15.98 kB / 1.226 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.103e-05/0.8137, allocations: 3.984 kB / 1.226 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 1.716e-05/0.8137, allocations: 4 kB / 1.226 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 8.88e-05/0.8138, allocations: 19.97 kB / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.8138, allocations: 0 / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.863e-06/0.8138, allocations: 3.938 kB / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.8138, allocations: 0 / 1.226 GB, free: 12.81 MB / 0.9512 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.000281/0.8141, allocations: 314.2 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.8141, allocations: 16.02 kB / 1.226 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.632e-05/0.8142, allocations: 30.75 kB / 1.226 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.182e-05/0.8142, allocations: 0.9375 kB / 1.226 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.041e-05/0.8143, allocations: 172.3 kB / 1.226 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-06/0.8143, allocations: 384 / 1.226 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.8143, allocations: 384 / 1.226 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.204e-05/0.8144, allocations: 30.27 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.8144, allocations: 3.938 kB / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.911e-06/0.8144, allocations: 0 / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.8144, allocations: 0 / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.233e-05/0.8145, allocations: 11.98 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.8146, allocations: 141.7 kB / 1.227 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 3.406e-05/0.8146, allocations: 22.52 kB / 1.227 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.642e-05/0.8147, allocations: 8.953 kB / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.8147, allocations: 0 / 1.227 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.8147, allocations: 34.56 kB / 1.227 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.303e-06/0.8147, allocations: 0 / 1.227 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001251/0.8149, allocations: 41.62 kB / 1.227 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.8149, allocations: 51.53 kB / 1.227 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.301e-05/0.8149, allocations: 93.86 kB / 1.227 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.815, allocations: 25.7 kB / 1.227 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.268e-05/0.815, allocations: 80.14 kB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.815, allocations: 3.938 kB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.815, allocations: 13.72 kB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.877e-05/0.8151, allocations: 314.8 kB / 1.227 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.257e-06/0.8152, allocations: 0 / 1.227 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-06/0.8152, allocations: 4 kB / 1.227 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.628e-05/0.8152, allocations: 16.91 kB / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.8152, allocations: 0 / 1.227 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.293e-05/0.8153, allocations: 37.69 kB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.8153, allocations: 5.25 kB / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.8153, allocations: 3.938 kB / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.8153, allocations: 0 / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.007e-05/0.8154, allocations: 4 kB / 1.227 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.8154, allocations: 3.938 kB / 1.227 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.209e-05/0.8154, allocations: 0 / 1.227 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.8154, allocations: 4.031 kB / 1.227 GB, free: 11.12 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 5.659e-05/0.8155, allocations: 118.4 kB / 1.227 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.276e-06/0.8155, allocations: 0 / 1.227 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.721e-05/0.8156, allocations: 44.64 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.8156, allocations: 7.984 kB / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.8156, allocations: 0 / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.8156, allocations: 4.031 kB / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.529e-05/0.8157, allocations: 145.7 kB / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.8157, allocations: 0 / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.813e-05/0.8157, allocations: 4 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.8157, allocations: 0 / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.8157, allocations: 3.938 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.8157, allocations: 0 / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.8158, allocations: 0 / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.715e-05/0.8158, allocations: 65.06 kB / 1.228 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 2.664e-05/0.8159, allocations: 77.11 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.05e-05/0.8159, allocations: 3.938 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/0.8159, allocations: 4 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.427e-05/0.8159, allocations: 3.984 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.8159, allocations: 4 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.185e-05/0.8159, allocations: 75.28 kB / 1.228 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.816, allocations: 0 / 1.228 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001921/0.8161, allocations: 4.984 kB / 1.228 GB, free: 10.46 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.000331/0.8165, allocations: 0.6084 MB / 1.228 GB, free: 9.82 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 5.999e-05/0.8166, allocations: 4 kB / 1.228 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.8166, allocations: 0 / 1.228 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.247e-06/0.8166, allocations: 4 kB / 1.228 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.8167, allocations: 4.156 kB / 1.228 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002564/0.817, allocations: 110.6 kB / 1.229 GB, free: 9.66 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001797/0.8172, allocations: 0.669 MB / 1.229 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.537e-05/0.8172, allocations: 12 kB / 1.229 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.194e-05/0.8172, allocations: 7.438 kB / 1.229 GB, free: 8.945 MB / 0.9512 GB Notification: Performance of SimCode: time 2.51e-07/0.8172, allocations: 7.938 kB / 1.229 GB, free: 8.938 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.8351, allocations: 1.012 MB / 1.23 GB, free: 8.016 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.519/8.354, allocations: 23 kB / 1.23 GB, free: 8 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