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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.31/2.31, allocations: 393.5 MB / 408.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 176 kB / 0.4902 GB, free: 2.211 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.625/1.625, allocations: 223.1 MB / 0.7992 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 92.02 kB / 0.9396 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.0003412, allocations: 10.97 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2794, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1884/0.4678, allocations: 149.3 MB / 1.375 GB, free: 4.172 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.4681, allocations: 79.94 kB / 1.375 GB, free: 4.094 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00113/0.4693, allocations: 476.6 kB / 1.376 GB, free: 3.625 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.797e-06/0.4693, allocations: 0 / 1.376 GB, free: 3.625 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.4693, allocations: 3.938 kB / 1.376 GB, free: 3.621 MB / 0.8698 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.0002643/0.4696, allocations: 319.4 kB / 1.376 GB, free: 3.262 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.4696, allocations: 8.031 kB / 1.376 GB, free: 3.254 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.305e-05/0.4696, allocations: 0 / 1.376 GB, free: 3.254 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.4698, allocations: 163 kB / 1.376 GB, free: 3.055 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.4698, allocations: 0 / 1.376 GB, free: 3.055 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.4698, allocations: 3.984 kB / 1.376 GB, free: 3.051 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.4699, allocations: 33.7 kB / 1.376 GB, free: 3.012 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.4699, allocations: 0 / 1.376 GB, free: 3.012 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.4699, allocations: 3.984 kB / 1.376 GB, free: 3.008 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.4699, allocations: 4 kB / 1.376 GB, free: 3.004 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.819e-05/0.47, allocations: 4 kB / 1.376 GB, free: 3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001627/0.4702, allocations: 153.6 kB / 1.376 GB, free: 2.801 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.181e-05/0.4702, allocations: 18.56 kB / 1.376 GB, free: 2.773 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.894e-05/0.4702, allocations: 4.094 kB / 1.376 GB, free: 2.77 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.4703, allocations: 31.42 kB / 1.376 GB, free: 2.73 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.4703, allocations: 0 / 1.376 GB, free: 2.73 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1): time 0.0001361/0.4704, allocations: 37.64 kB / 1.376 GB, free: 2.688 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.4705, allocations: 55.41 kB / 1.376 GB, free: 2.621 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.801e-05/0.4705, allocations: 92.94 kB / 1.376 GB, free: 2.523 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.4705, allocations: 25.7 kB / 1.376 GB, free: 2.492 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 2.042e-05/0.4705, allocations: 80.14 kB / 1.377 GB, free: 2.41 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.4706, allocations: 4.219 kB / 1.377 GB, free: 2.406 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.4706, allocations: 0 / 1.377 GB, free: 2.406 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.276e-05/0.4707, allocations: 314.8 kB / 1.377 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.566e-06/0.4707, allocations: 4.125 kB / 1.377 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.725e-06/0.4707, allocations: 4 kB / 1.377 GB, free: 2.082 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.818e-05/0.4707, allocations: 0 / 1.377 GB, free: 2.082 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.4708, allocations: 3.953 kB / 1.377 GB, free: 2.078 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.962e-05/0.4708, allocations: 33.7 kB / 1.377 GB, free: 2.039 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.4708, allocations: 4 kB / 1.377 GB, free: 2.035 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.4708, allocations: 0 / 1.377 GB, free: 2.035 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.4709, allocations: 0 / 1.377 GB, free: 2.035 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.454e-05/0.4709, allocations: 11.92 kB / 1.377 GB, free: 2.023 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.4709, allocations: 8.031 kB / 1.377 GB, free: 2.016 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.255e-05/0.471, allocations: 0 / 1.377 GB, free: 2.016 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.471, allocations: 0 / 1.377 GB, free: 2.016 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.764e-05/0.4711, allocations: 114.6 kB / 1.377 GB, free: 1.895 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.575e-06/0.4711, allocations: 3.953 kB / 1.377 GB, free: 1.891 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.4712, allocations: 36.81 kB / 1.377 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.4712, allocations: 4.031 kB / 1.377 GB, free: 1.848 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4712, allocations: 0 / 1.377 GB, free: 1.848 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4712, allocations: 4 kB / 1.377 GB, free: 1.844 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001007/0.4713, allocations: 145.7 kB / 1.377 GB, free: 1.652 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.4713, allocations: 0 / 1.377 GB, free: 1.652 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.434e-05/0.4714, allocations: 3.953 kB / 1.377 GB, free: 1.648 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.4714, allocations: 7.984 kB / 1.377 GB, free: 1.641 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.4714, allocations: 0 / 1.377 GB, free: 1.641 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.4714, allocations: 0 / 1.377 GB, free: 1.641 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4714, allocations: 3.938 kB / 1.377 GB, free: 1.637 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.645e-05/0.4715, allocations: 57.05 kB / 1.377 GB, free: 1.562 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.767e-05/0.4715, allocations: 85.11 kB / 1.377 GB, free: 1.461 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.4716, allocations: 7.938 kB / 1.377 GB, free: 1.453 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.121e-05/0.4716, allocations: 0 / 1.377 GB, free: 1.453 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.572e-05/0.4716, allocations: 0 / 1.377 GB, free: 1.453 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.4716, allocations: 4 kB / 1.377 GB, free: 1.449 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 2.553e-05/0.4716, allocations: 79.28 kB / 1.377 GB, free: 1.371 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4717, allocations: 4.031 kB / 1.377 GB, free: 1.367 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001836/0.4718, allocations: 4 kB / 1.377 GB, free: 1.363 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001625/0.472, allocations: 103.2 kB / 1.378 GB, free: 1.254 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 6.761e-05/0.4721, allocations: 7.938 kB / 1.378 GB, free: 1.246 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4721, allocations: 3.938 kB / 1.378 GB, free: 1.242 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.388e-06/0.4721, allocations: 7.984 kB / 1.378 GB, free: 1.234 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.726e-05/0.4722, allocations: 0 / 1.378 GB, free: 1.234 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001951/0.4724, allocations: 86.2 kB / 1.378 GB, free: 1.125 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.4727, allocations: 0.677 MB / 1.378 GB, free: 432 kB / 0.8698 GB Notification: Performance of simCode: alias equations: time 2.946e-05/0.4728, allocations: 0 / 1.378 GB, free: 432 kB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.344e-05/0.4728, allocations: 11.44 kB / 1.378 GB, free: 420 kB / 0.8698 GB Notification: Performance of SimCode: time 4.21e-07/0.4728, allocations: 0 / 1.378 GB, free: 420 kB / 0.8698 GB Notification: Performance of Templates: time 0.002087/0.4749, allocations: 272.1 kB / 1.379 GB, free: 148 kB / 0.8698 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches