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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001576/0.001577, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.002096/0.002096, allocations: 198.2 kB / 16.14 MB, free: 6.574 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.411/1.411, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.73/2.73, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 63.59 kB / 0.8984 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.3339, allocations: 157.4 MB / 1.052 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.00207/0.336, allocations: 0.6426 MB / 1.053 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002936/0.3363, allocations: 31.88 kB / 1.053 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.318e-05/0.3363, allocations: 0 / 1.053 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.842e-05/0.3363, allocations: 0 / 1.053 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.783e-06/0.3364, allocations: 0 / 1.053 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.3366, allocations: 19.92 kB / 1.053 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.818e-05/0.3367, allocations: 4 kB / 1.053 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.397e-05/0.3367, allocations: 0 / 1.053 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.832e-05/0.3368, allocations: 4 kB / 1.053 GB, free: 8.141 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.608e-05/0.3368, allocations: 0 / 1.053 GB, free: 8.141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.3368, allocations: 0 / 1.053 GB, free: 8.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.968e-05/0.3369, allocations: 19.97 kB / 1.053 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.567e-05/0.337, allocations: 3.984 kB / 1.053 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.577e-05/0.337, allocations: 8 kB / 1.053 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.586e-05/0.3371, allocations: 15.92 kB / 1.053 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3371, allocations: 0 / 1.053 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3371, allocations: 0 / 1.053 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.3371, allocations: 4 kB / 1.053 GB, free: 8.09 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.0004684/0.3376, allocations: 319.5 kB / 1.053 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3376, allocations: 12.03 kB / 1.053 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/0.3377, allocations: 0.9375 kB / 1.053 GB, free: 7.715 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.3378, allocations: 168.3 kB / 1.053 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3378, allocations: 384 / 1.053 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.3378, allocations: 384 / 1.053 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.3379, allocations: 34.25 kB / 1.053 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.3379, allocations: 4.172 kB / 1.053 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.338, allocations: 7.938 kB / 1.053 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.338, allocations: 0 / 1.053 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.085e-05/0.338, allocations: 0 / 1.053 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.3382, allocations: 145.7 kB / 1.054 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.709e-05/0.3382, allocations: 22.52 kB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.981e-05/0.3383, allocations: 4.859 kB / 1.054 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.015e-05/0.3383, allocations: 4.094 kB / 1.054 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.3383, allocations: 38.55 kB / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3383, allocations: 0 / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001489/0.3385, allocations: 33.64 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.3385, allocations: 55.41 kB / 1.054 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.851e-05/0.3386, allocations: 93.86 kB / 1.054 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.3386, allocations: 25.7 kB / 1.054 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.811e-05/0.3386, allocations: 80.14 kB / 1.054 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.179e-05/0.3387, allocations: 3.938 kB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.353e-05/0.3387, allocations: 21.84 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3389, allocations: 314.8 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.134e-05/0.3389, allocations: 0 / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.027e-06/0.3389, allocations: 4 kB / 1.054 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.107e-05/0.339, allocations: 8.859 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.339, allocations: 3.938 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.56e-05/0.339, allocations: 37.7 kB / 1.054 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.3391, allocations: 4.094 kB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.3391, allocations: 4 kB / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.3391, allocations: 3.938 kB / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.744e-05/0.3392, allocations: 7.984 kB / 1.054 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3392, allocations: 3.938 kB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.367e-05/0.3392, allocations: 0 / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.3392, allocations: 0 / 1.054 GB, free: 6.426 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 7.98e-05/0.3393, allocations: 107.4 kB / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.753e-06/0.3393, allocations: 4 kB / 1.054 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.3394, allocations: 48.75 kB / 1.054 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3394, allocations: 0 / 1.054 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3394, allocations: 0 / 1.054 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3394, allocations: 4 kB / 1.054 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.668e-05/0.3395, allocations: 141.7 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3395, allocations: 0 / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.574e-05/0.3396, allocations: 3.938 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.3396, allocations: 3.984 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3396, allocations: 11.97 kB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3396, allocations: 0 / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.3396, allocations: 0 / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.159e-05/0.3397, allocations: 57.08 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.3397, allocations: 81.11 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.3398, allocations: 7.922 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.3398, allocations: 0 / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.054e-05/0.3398, allocations: 4.031 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.3398, allocations: 0 / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.857e-05/0.3398, allocations: 79.28 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3398, allocations: 0 / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001998/0.34, allocations: 4 kB / 1.055 GB, free: 5.781 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.000161/0.3402, allocations: 103.2 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.69e-05/0.3403, allocations: 7.938 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3403, allocations: 0 / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.186e-05/0.3403, allocations: 16.05 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.3405, allocations: 3.938 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001858/0.3407, allocations: 74.67 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.3409, allocations: 0.6731 MB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.798e-05/0.341, allocations: 4 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.47e-05/0.341, allocations: 11.5 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of SimCode: time 6.61e-07/0.341, allocations: 4 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of Templates: time 0.002136/0.3432, allocations: 280.6 kB / 1.056 GB, free: 4.547 MB / 0.8106 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