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 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.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.00477/0.004776, allocations: 99.33 kB / 15.73 MB, free: 6.012 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.001303/0.001303, allocations: 192.8 kB / 16.68 MB, free: 5.934 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.772/2.772, allocations: 482.4 MB / 0.7548 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 72.52 kB / 1.083 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2917, allocations: 162.2 MB / 1.241 GB, free: 9.367 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002493/0.2942, allocations: 1.433 MB / 1.243 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002823/0.2945, allocations: 95.67 kB / 1.243 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.469e-05/0.2945, allocations: 4 kB / 1.243 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.091e-05/0.2946, allocations: 3.984 kB / 1.243 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.077e-05/0.2946, allocations: 3.938 kB / 1.243 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002022/0.2948, allocations: 15.98 kB / 1.243 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.861e-05/0.2949, allocations: 23.92 kB / 1.243 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.766e-05/0.295, allocations: 8 kB / 1.243 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.73e-05/0.295, allocations: 15.97 kB / 1.243 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.371e-05/0.2951, allocations: 7.938 kB / 1.243 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.2951, allocations: 4 kB / 1.243 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.528e-05/0.2952, allocations: 23.91 kB / 1.243 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.427e-05/0.2952, allocations: 11.94 kB / 1.243 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.259e-05/0.2952, allocations: 7.938 kB / 1.243 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.2954, allocations: 44.09 kB / 1.243 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2954, allocations: 0 / 1.243 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2954, allocations: 0 / 1.243 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.2954, allocations: 0 / 1.243 GB, free: 7.656 MB / 0.9669 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.0004543/0.2959, allocations: 351.3 kB / 1.243 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.2959, allocations: 11.97 kB / 1.243 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.471e-05/0.2959, allocations: 34.75 kB / 1.243 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.947e-05/0.296, allocations: 0.9375 kB / 1.243 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.2961, allocations: 168.4 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-06/0.2961, allocations: 384 / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-06/0.2961, allocations: 384 / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.2963, allocations: 58.16 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2963, allocations: 7.938 kB / 1.244 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.191e-06/0.2963, allocations: 0 / 1.244 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2963, allocations: 4 kB / 1.244 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.2965, allocations: 35.95 kB / 1.244 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003039/0.2968, allocations: 252.9 kB / 1.244 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.297, allocations: 50.48 kB / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.315e-05/0.2971, allocations: 20.91 kB / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.2971, allocations: 7.938 kB / 1.244 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.2972, allocations: 30.56 kB / 1.244 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.2972, allocations: 0 / 1.244 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0003682/0.2975, allocations: 93.72 kB / 1.244 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.2976, allocations: 51.41 kB / 1.244 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.455e-05/0.2977, allocations: 105.9 kB / 1.244 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.2977, allocations: 25.7 kB / 1.244 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.2978, allocations: 92.12 kB / 1.244 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.2978, allocations: 7.891 kB / 1.244 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/0.2978, allocations: 13.72 kB / 1.244 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.2979, allocations: 314.8 kB / 1.245 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.034e-05/0.298, allocations: 24 kB / 1.245 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.279e-05/0.2981, allocations: 19.92 kB / 1.245 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.2983, allocations: 40.83 kB / 1.245 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2983, allocations: 3.938 kB / 1.245 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002106/0.2985, allocations: 69.72 kB / 1.245 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.2986, allocations: 8 kB / 1.245 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.2986, allocations: 0 / 1.245 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.357e-06/0.2986, allocations: 0 / 1.245 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.111e-05/0.2987, allocations: 7.984 kB / 1.245 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.2987, allocations: 0 / 1.245 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.342e-05/0.2987, allocations: 15.88 kB / 1.245 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.2987, allocations: 7.938 kB / 1.245 GB, free: 5.523 MB / 0.9669 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 8.687e-05/0.2988, allocations: 122.3 kB / 1.245 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.2989, allocations: 0 / 1.245 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002401/0.2991, allocations: 81.17 kB / 1.245 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.2991, allocations: 0 / 1.245 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2991, allocations: 0 / 1.245 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2991, allocations: 0 / 1.245 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.2993, allocations: 161.6 kB / 1.245 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2993, allocations: 0 / 1.245 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.259e-05/0.2994, allocations: 12.02 kB / 1.245 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.2994, allocations: 4 kB / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-06/0.2994, allocations: 0 / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2994, allocations: 0 / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2994, allocations: 0 / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002653/0.2997, allocations: 175.4 kB / 1.245 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.415e-05/0.2998, allocations: 85.05 kB / 1.246 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.2998, allocations: 0 / 1.246 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.149e-05/0.2999, allocations: 4 kB / 1.246 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.2999, allocations: 3.984 kB / 1.246 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-06/0.2999, allocations: 256 / 1.246 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.863e-05/0.3, allocations: 91.28 kB / 1.246 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3, allocations: 0 / 1.246 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002295/0.3002, allocations: 8 kB / 1.246 GB, free: 4.688 MB / 0.9669 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.000594/0.3008, allocations: 0.7046 MB / 1.246 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002168/0.301, allocations: 39.97 kB / 1.246 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.301, allocations: 4.094 kB / 1.246 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.188e-05/0.3011, allocations: 23.97 kB / 1.246 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.3014, allocations: 4 kB / 1.246 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003929/0.3018, allocations: 147 kB / 1.247 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.3021, allocations: 0.6767 MB / 1.247 GB, free: 3 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.567e-05/0.3021, allocations: 7.984 kB / 1.247 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.897e-05/0.3022, allocations: 15.5 kB / 1.247 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.3022, allocations: 0 / 1.247 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.3235, allocations: 1.421 MB / 1.249 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.035/8.358, allocations: 17.81 kB / 1.249 GB, free: 1.621 MB / 0.9669 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 400 --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