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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0007437/0.0007437, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.004335/0.004335, allocations: 174.2 kB / 16.27 MB, free: 6.613 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.262/1.262, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.436/2.436, allocations: 462.7 MB / 0.7364 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.000348, allocations: 14.36 kB / 0.9029 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2891, allocations: 159.6 MB / 1.059 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.0008054/0.29, allocations: 318.9 kB / 1.059 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002773/0.2903, allocations: 43.81 kB / 1.059 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.051e-05/0.2903, allocations: 0 / 1.059 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.572e-05/0.2903, allocations: 0 / 1.059 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.2903, allocations: 0 / 1.059 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.2906, allocations: 11.98 kB / 1.059 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.99e-05/0.2907, allocations: 4 kB / 1.059 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.118e-05/0.2907, allocations: 0 / 1.059 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.937e-05/0.2907, allocations: 7.922 kB / 1.059 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.178e-05/0.2908, allocations: 8 kB / 1.059 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.2908, allocations: 0 / 1.059 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.209e-05/0.2909, allocations: 19.97 kB / 1.059 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.127e-06/0.2909, allocations: 3.938 kB / 1.059 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.2909, allocations: 25.7 kB / 1.059 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.484e-05/0.291, allocations: 15.98 kB / 1.059 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.291, allocations: 0 / 1.059 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.313e-06/0.291, allocations: 0 / 1.059 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.626e-06/0.2911, allocations: 0 / 1.059 GB, free: 4.355 MB / 0.8106 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.0002699/0.2913, allocations: 311.5 kB / 1.06 GB, free: 4 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.2914, allocations: 23.97 kB / 1.06 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.013e-05/0.2914, allocations: 30.75 kB / 1.06 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.972e-05/0.2914, allocations: 0.9375 kB / 1.06 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.135e-05/0.2915, allocations: 160.4 kB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-06/0.2915, allocations: 384 / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.868e-06/0.2916, allocations: 4.312 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.722e-05/0.2916, allocations: 34.25 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.2917, allocations: 3.938 kB / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-06/0.2917, allocations: 0 / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.2917, allocations: 0 / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.281e-05/0.2917, allocations: 12 kB / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001278/0.2918, allocations: 141.7 kB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.629e-05/0.2919, allocations: 14.58 kB / 1.06 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.875e-05/0.2919, allocations: 12.89 kB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.292, allocations: 0 / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.292, allocations: 38.55 kB / 1.06 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.292, allocations: 4 kB / 1.06 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001199/0.2921, allocations: 37.64 kB / 1.06 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.2922, allocations: 51.41 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.012e-05/0.2922, allocations: 89.86 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.2922, allocations: 25.7 kB / 1.06 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.237e-05/0.2922, allocations: 80.14 kB / 1.06 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.2923, allocations: 0 / 1.06 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.493e-05/0.2923, allocations: 13.72 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.431e-05/0.2924, allocations: 323 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.2924, allocations: 3.938 kB / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-06/0.2924, allocations: 3.984 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.67e-05/0.2925, allocations: 8.859 kB / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2925, allocations: 0 / 1.061 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.3e-05/0.2925, allocations: 33.7 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2926, allocations: 4 kB / 1.061 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.2926, allocations: 3.938 kB / 1.061 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.2926, allocations: 96 / 1.061 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.407e-05/0.2926, allocations: 8 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.2926, allocations: 0 / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.2927, allocations: 11.92 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.2927, allocations: 3.938 kB / 1.061 GB, free: 2.656 MB / 0.8106 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 6.535e-05/0.2928, allocations: 113.8 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.125e-06/0.2928, allocations: 4 kB / 1.061 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.63e-05/0.2929, allocations: 44.75 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2929, allocations: 0 / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2929, allocations: 0 / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.2929, allocations: 0 / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.053e-05/0.293, allocations: 149.7 kB / 1.061 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.293, allocations: 0 / 1.061 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.762e-05/0.293, allocations: 0 / 1.061 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.293, allocations: 0 / 1.061 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.293, allocations: 7.938 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.293, allocations: 3.984 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2931, allocations: 32 / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.067e-05/0.2931, allocations: 61.08 kB / 1.061 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.128e-05/0.2932, allocations: 81.11 kB / 1.061 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.2932, allocations: 3.938 kB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.055e-05/0.2932, allocations: 0 / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.45e-05/0.2932, allocations: 3.984 kB / 1.061 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.2932, allocations: 0 / 1.061 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.367e-05/0.2933, allocations: 79.31 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2933, allocations: 4 kB / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001957/0.2935, allocations: 8 kB / 1.061 GB, free: 2.004 MB / 0.8106 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.0003528/0.2938, allocations: 0.6009 MB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 5.649e-05/0.2939, allocations: 8.031 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2939, allocations: 0 / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.772e-06/0.2939, allocations: 0 / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.294, allocations: 8.562 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002645/0.2943, allocations: 112.2 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.2945, allocations: 0.6731 MB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.774e-05/0.2946, allocations: 4.125 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.237e-05/0.2946, allocations: 7.438 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2946, allocations: 0 / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6124/0.907, allocations: 0.8349 MB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002248/0.9073, allocations: 206.9 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.686/3.594, allocations: 3.938 kB / 1.064 GB, free: 15.53 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Polynomial_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 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.mat","/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