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.005158/0.005158, allocations: 101 kB / 15.73 MB, free: 5.992 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.001204/0.001204, allocations: 196.2 kB / 16.67 MB, free: 5.93 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.45/2.45, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 76.12 kB / 0.9504 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2908, allocations: 140.4 MB / 1.088 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.002012/0.2929, allocations: 0.5791 MB / 1.088 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.000267/0.2932, allocations: 39.81 kB / 1.088 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.55e-05/0.2932, allocations: 0 / 1.088 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.258e-05/0.2932, allocations: 0 / 1.088 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.113e-06/0.2933, allocations: 0 / 1.088 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.2936, allocations: 15.98 kB / 1.088 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.563e-05/0.2936, allocations: 0 / 1.088 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.2937, allocations: 3.984 kB / 1.088 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.791e-05/0.2937, allocations: 4 kB / 1.088 GB, free: 1.312 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.379e-05/0.2938, allocations: 4 kB / 1.088 GB, free: 1.309 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.2938, allocations: 0 / 1.088 GB, free: 1.309 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.2939, allocations: 19.92 kB / 1.088 GB, free: 1.289 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.007e-05/0.2939, allocations: 0 / 1.088 GB, free: 1.289 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.524e-05/0.294, allocations: 3.984 kB / 1.088 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.2941, allocations: 15.98 kB / 1.088 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2941, allocations: 0 / 1.088 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.034e-06/0.2941, allocations: 0 / 1.088 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.2941, allocations: 0 / 1.088 GB, free: 1.27 MB / 0.8419 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.000341/0.2944, allocations: 315.6 kB / 1.088 GB, free: 0.9102 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.2945, allocations: 15.97 kB / 1.088 GB, free: 0.8945 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.588e-05/0.2945, allocations: 30.75 kB / 1.089 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.253e-05/0.2946, allocations: 4.938 kB / 1.089 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.2947, allocations: 160.4 kB / 1.089 GB, free: 0.6562 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.2947, allocations: 4.375 kB / 1.089 GB, free: 0.6523 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.2947, allocations: 4.375 kB / 1.089 GB, free: 0.6484 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.2948, allocations: 38.19 kB / 1.089 GB, free: 0.6055 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.2948, allocations: 3.938 kB / 1.089 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.2948, allocations: 0 / 1.089 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.2949, allocations: 0 / 1.089 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.178e-05/0.2949, allocations: 4 kB / 1.089 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001496/0.295, allocations: 145.7 kB / 1.089 GB, free: 416 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.336e-05/0.2951, allocations: 22.56 kB / 1.089 GB, free: 384 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.833e-05/0.2951, allocations: 8.797 kB / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.2952, allocations: 4.062 kB / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.2952, allocations: 30.56 kB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.2952, allocations: 7.938 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0001299/0.2953, allocations: 33.64 kB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.2954, allocations: 55.41 kB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.653e-05/0.2954, allocations: 89.86 kB / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.2954, allocations: 25.7 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.372e-05/0.2955, allocations: 80.14 kB / 1.089 GB, free: 16 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.2955, allocations: 7.984 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.2956, allocations: 14.06 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2957, allocations: 315 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.373e-05/0.2957, allocations: 0 / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-06/0.2958, allocations: 0 / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.758e-05/0.2958, allocations: 12.8 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2958, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.531e-05/0.2959, allocations: 41.69 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.2959, allocations: 4 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2959, allocations: 3.938 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2959, allocations: 4.094 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.602e-05/0.296, allocations: 4 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.296, allocations: 0 / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.759e-05/0.296, allocations: 0 / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.2961, allocations: 3.938 kB / 1.09 GB, free: 15.57 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 (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 7.513e-05/0.2961, allocations: 105.8 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-06/0.2962, allocations: 4 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.2963, allocations: 52.69 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2963, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2963, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2963, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.199e-05/0.2964, allocations: 149.7 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2964, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.975e-05/0.2964, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2964, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.2964, allocations: 7.938 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2964, allocations: 0 / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2965, allocations: 8.031 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.153e-05/0.2965, allocations: 68.95 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.976e-05/0.2966, allocations: 81.11 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.2966, allocations: 3.938 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.403e-05/0.2966, allocations: 4 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.522e-05/0.2966, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.2967, allocations: 3.938 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.591e-05/0.2967, allocations: 83.31 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2967, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001971/0.2969, allocations: 4 kB / 1.09 GB, free: 14.9 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 (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.0004009/0.2973, allocations: 0.5996 MB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.805e-05/0.2974, allocations: 11.97 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2974, allocations: 0 / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.468e-06/0.2974, allocations: 3.984 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.2976, allocations: 6.031 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003143/0.2979, allocations: 106.7 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.2981, allocations: 0.6729 MB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.752e-05/0.2981, allocations: 8.109 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.405e-05/0.2981, allocations: 11.44 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of SimCode: time 2.8e-07/0.2982, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.3157, allocations: 1.01 MB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.4/7.716, allocations: 9.797 kB / 1.093 GB, free: 12.46 MB / 0.8575 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