Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Examples.Polynomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_latest_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.009525/0.009526, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.002357/0.002357, allocations: 189.4 kB / 16.67 MB, free: 5.875 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.697/2.697, allocations: 469.4 MB / 0.7422 GB, free: 3.5 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 71.88 kB / 1.064 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7768/0.7783, allocations: 159.1 MB / 1.22 GB, free: 2.297 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002577/0.7809, allocations: 1.43 MB / 1.221 GB, free: 0.8555 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003059/0.7812, allocations: 99.69 kB / 1.221 GB, free: 0.7578 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.973e-05/0.7813, allocations: 4 kB / 1.221 GB, free: 0.7539 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 6.512e-05/0.7813, allocations: 7.922 kB / 1.221 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.526e-05/0.7814, allocations: 4 kB / 1.221 GB, free: 0.7422 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.7816, allocations: 15.92 kB / 1.221 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.33e-05/0.7817, allocations: 31.91 kB / 1.221 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 7.798e-05/0.7818, allocations: 0 / 1.221 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.133e-05/0.7818, allocations: 15.92 kB / 1.221 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 3.526e-05/0.7819, allocations: 8 kB / 1.221 GB, free: 0.6719 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.7819, allocations: 8 kB / 1.221 GB, free: 0.6641 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.636e-05/0.782, allocations: 15.98 kB / 1.221 GB, free: 0.6484 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.771e-05/0.782, allocations: 11.92 kB / 1.221 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.7821, allocations: 7.938 kB / 1.221 GB, free: 0.6289 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.7822, allocations: 39.88 kB / 1.221 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.7822, allocations: 0 / 1.221 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.193e-06/0.7822, allocations: 0 / 1.221 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.7822, allocations: 0 / 1.221 GB, free: 0.5898 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004238/0.7827, allocations: 351 kB / 1.222 GB, free: 204 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.7827, allocations: 12.62 kB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.18e-05/0.7827, allocations: 34.75 kB / 1.222 GB, free: 148 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.618e-05/0.7828, allocations: 4.938 kB / 1.222 GB, free: 144 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.7829, allocations: 176.3 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.7829, allocations: 4.375 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.7829, allocations: 384 / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.7831, allocations: 50.23 kB / 1.222 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.7831, allocations: 3.938 kB / 1.222 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.7831, allocations: 0 / 1.222 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.7831, allocations: 0 / 1.222 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.7833, allocations: 43.95 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002986/0.7836, allocations: 252.9 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.7838, allocations: 42.48 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.299e-05/0.7839, allocations: 24.91 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.579e-05/0.7839, allocations: 4 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.784, allocations: 34.56 kB / 1.222 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.784, allocations: 0 / 1.222 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003667/0.7843, allocations: 85.58 kB / 1.222 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.7844, allocations: 59.52 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.818e-05/0.7845, allocations: 105.9 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.7845, allocations: 25.7 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.831e-05/0.7845, allocations: 88.12 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.7846, allocations: 3.953 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.7846, allocations: 17.66 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.339e-05/0.7847, allocations: 314.8 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.409e-05/0.7848, allocations: 19.97 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.114e-05/0.7849, allocations: 23.92 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.7851, allocations: 40.83 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.7851, allocations: 7.938 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002099/0.7853, allocations: 73.55 kB / 1.223 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.7853, allocations: 8.094 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.7853, allocations: 0 / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.7854, allocations: 4 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.767e-05/0.7855, allocations: 7.984 kB / 1.223 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.7855, allocations: 0 / 1.223 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.992e-05/0.7855, allocations: 7.984 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/0.7855, allocations: 0 / 1.223 GB, free: 14.46 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 (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 7.504e-05/0.7856, allocations: 118.3 kB / 1.223 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.7856, allocations: 0 / 1.223 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002435/0.7859, allocations: 81.17 kB / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.7859, allocations: 3.938 kB / 1.223 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.7859, allocations: 0 / 1.223 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.7859, allocations: 0 / 1.223 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.7861, allocations: 169.5 kB / 1.224 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.7861, allocations: 256 / 1.224 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.293e-05/0.7862, allocations: 11.98 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.7862, allocations: 0 / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.7862, allocations: 4.031 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.7862, allocations: 4 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.7862, allocations: 0 / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.7864, allocations: 163.5 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.7865, allocations: 93.03 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.7865, allocations: 0 / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.957e-05/0.7866, allocations: 8.031 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.924e-05/0.7866, allocations: 3.984 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-06/0.7866, allocations: 0 / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.656e-05/0.7867, allocations: 87.28 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7867, allocations: 3.938 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002396/0.7869, allocations: 8 kB / 1.224 GB, free: 13.61 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 (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.000523/0.7875, allocations: 0.7076 MB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002158/0.7877, allocations: 35.97 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.7877, allocations: 3.938 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.652e-05/0.7878, allocations: 32 kB / 1.225 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.7881, allocations: 9.656 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.7885, allocations: 143.1 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.7887, allocations: 0.6806 MB / 1.226 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.609e-05/0.7888, allocations: 3.984 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.317e-05/0.7888, allocations: 11.44 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of SimCode: time 3.3e-07/0.7888, allocations: 0 / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01602/0.8048, allocations: 1.428 MB / 1.227 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.567/8.372, allocations: 22.28 kB / 1.227 GB, free: 10.54 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Utilities_Math_Examples_Polynomial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches