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 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 197.2 kB / 16.53 MB, free: 6.664 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.739/2.739, allocations: 472.6 MB / 0.7451 GB, free: 4.801 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 64.47 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3028, allocations: 159.9 MB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001816/0.3047, allocations: 0.5863 MB / 1.069 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000211/0.3049, allocations: 35.88 kB / 1.069 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.352e-05/0.3049, allocations: 0 / 1.069 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.465e-05/0.3049, allocations: 0 / 1.069 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.305, allocations: 0 / 1.069 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.3052, allocations: 15.98 kB / 1.069 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.805e-05/0.3053, allocations: 4 kB / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.265e-05/0.3053, allocations: 0 / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.391e-05/0.3053, allocations: 0 / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.402e-05/0.3054, allocations: 7.938 kB / 1.069 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.237e-06/0.3054, allocations: 0 / 1.069 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.989e-05/0.3055, allocations: 27.91 kB / 1.069 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.3055, allocations: 0 / 1.069 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.677e-05/0.3055, allocations: 0 / 1.069 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.017e-05/0.3056, allocations: 19.97 kB / 1.069 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3056, allocations: 0 / 1.069 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.995e-06/0.3056, allocations: 0 / 1.069 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.3056, allocations: 3.938 kB / 1.069 GB, free: 9.809 MB / 0.8262 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.0002827/0.3059, allocations: 311.6 kB / 1.069 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.306, allocations: 8.031 kB / 1.069 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.932e-05/0.306, allocations: 4.938 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.685e-05/0.3061, allocations: 164.4 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.3061, allocations: 4.375 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.3061, allocations: 384 / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.992e-05/0.3062, allocations: 26.27 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3062, allocations: 4.172 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.3062, allocations: 3.938 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.3062, allocations: 8 kB / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.015e-05/0.3063, allocations: 3.938 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.3064, allocations: 141.7 kB / 1.07 GB, free: 9 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.649e-05/0.3064, allocations: 30.61 kB / 1.07 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.569e-05/0.3065, allocations: 4.859 kB / 1.07 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.3065, allocations: 4.062 kB / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.3065, allocations: 30.56 kB / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3065, allocations: 0 / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.000124/0.3067, allocations: 41.56 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.334e-05/0.3067, allocations: 55.53 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.104e-05/0.3067, allocations: 89.86 kB / 1.07 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.3067, allocations: 25.7 kB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.3068, allocations: 88.14 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.3068, allocations: 0 / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.3068, allocations: 9.719 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.283e-05/0.3069, allocations: 310.8 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.321e-05/0.307, allocations: 7.984 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.764e-06/0.307, allocations: 4 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.764e-05/0.307, allocations: 8.859 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.307, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.367e-05/0.3071, allocations: 37.64 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.3071, allocations: 8 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3071, allocations: 0 / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3071, allocations: 3.938 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.732e-05/0.3072, allocations: 3.938 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3072, allocations: 7.922 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.812e-05/0.3072, allocations: 12.08 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.3072, allocations: 0 / 1.07 GB, free: 8.148 MB / 0.8262 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.117e-05/0.3073, allocations: 106.4 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.457e-06/0.3073, allocations: 3.906 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.903e-05/0.3074, allocations: 52.69 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3074, allocations: 0 / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3074, allocations: 4.031 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.3075, allocations: 0 / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.948e-05/0.3075, allocations: 141.7 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3076, allocations: 4 kB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.581e-05/0.3076, allocations: 0 / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.3076, allocations: 0 / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.3076, allocations: 7.922 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3076, allocations: 0 / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3076, allocations: 4 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.783e-05/0.3077, allocations: 57.14 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.673e-05/0.3077, allocations: 77.11 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.3077, allocations: 11.94 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.475e-05/0.3078, allocations: 3.984 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.316e-05/0.3078, allocations: 3.938 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.3078, allocations: 0 / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.844e-05/0.3078, allocations: 75.28 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3078, allocations: 0 / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001915/0.308, allocations: 8 kB / 1.071 GB, free: 7.496 MB / 0.8262 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.0001737/0.3082, allocations: 107.3 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 6.097e-05/0.3083, allocations: 4 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3083, allocations: 0 / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.019e-05/0.3083, allocations: 3.984 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.3084, allocations: 10.92 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001916/0.3086, allocations: 83.09 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.3089, allocations: 0.6768 MB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.605e-05/0.3089, allocations: 4 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.162e-05/0.3089, allocations: 7.438 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of SimCode: time 1.483e-06/0.3089, allocations: 0 / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of Templates: time 0.002111/0.311, allocations: 298.5 kB / 1.072 GB, free: 6.254 MB / 0.8262 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","/var/lib/jenkins/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