Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Polynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009491/0.009491, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.001475/0.001476, allocations: 193.9 kB / 16.67 MB, free: 5.969 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.765/2.765, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 55.91 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3619, allocations: 151.6 MB / 1.167 GB, free: 6.793 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002777/0.3647, allocations: 1.42 MB / 1.168 GB, free: 5.355 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003415/0.3651, allocations: 96.58 kB / 1.168 GB, free: 5.258 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.838e-05/0.3651, allocations: 0 / 1.168 GB, free: 5.258 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 7.121e-05/0.3652, allocations: 8 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.039e-05/0.3652, allocations: 3.938 kB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.3655, allocations: 19.92 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.54e-05/0.3656, allocations: 27.92 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.687e-05/0.3657, allocations: 11.97 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.973e-05/0.3657, allocations: 4 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.667e-05/0.3658, allocations: 11.92 kB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.3658, allocations: 7.938 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.727e-05/0.3659, allocations: 23.98 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.991e-05/0.366, allocations: 0 / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.884e-05/0.366, allocations: 15.92 kB / 1.168 GB, free: 5.125 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.3661, allocations: 39.83 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3661, allocations: 0 / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3661, allocations: 0 / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.3662, allocations: 0 / 1.168 GB, free: 5.086 MB / 0.92 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.0005363/0.3667, allocations: 351.3 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.3667, allocations: 11.97 kB / 1.169 GB, free: 4.68 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.3668, allocations: 8.938 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.3669, allocations: 160.4 kB / 1.169 GB, free: 4.477 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.3669, allocations: 8.359 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.365e-05/0.367, allocations: 4.375 kB / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.3671, allocations: 54.17 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.3672, allocations: 192 / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.3672, allocations: 7.875 kB / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3672, allocations: 0 / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.3674, allocations: 43.95 kB / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004506/0.3678, allocations: 252.9 kB / 1.169 GB, free: 4.059 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.368, allocations: 46.44 kB / 1.169 GB, free: 4.004 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.76e-05/0.3681, allocations: 24.91 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.3681, allocations: 7.984 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.3681, allocations: 34.56 kB / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.3682, allocations: 0 / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0003741/0.3685, allocations: 85.64 kB / 1.169 GB, free: 3.836 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.3686, allocations: 51.41 kB / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.774e-05/0.3687, allocations: 105.8 kB / 1.169 GB, free: 3.66 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.3687, allocations: 33.77 kB / 1.169 GB, free: 3.621 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.112e-05/0.3688, allocations: 84.14 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.3688, allocations: 11.89 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.3688, allocations: 9.719 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.369, allocations: 322.8 kB / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.615e-05/0.3691, allocations: 11.98 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.48e-05/0.3692, allocations: 19.98 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.3694, allocations: 44.88 kB / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.592e-06/0.3694, allocations: 0 / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001919/0.3696, allocations: 73.59 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.3696, allocations: 4 kB / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3696, allocations: 0 / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.3696, allocations: 32 / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.289e-05/0.3697, allocations: 15.94 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3697, allocations: 0 / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.805e-05/0.3698, allocations: 11.94 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/0.3698, allocations: 0 / 1.17 GB, free: 2.996 MB / 0.92 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.416e-05/0.3699, allocations: 117.8 kB / 1.17 GB, free: 2.871 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.3699, allocations: 0 / 1.17 GB, free: 2.871 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002405/0.3701, allocations: 81.17 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3702, allocations: 4 kB / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3702, allocations: 0 / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3702, allocations: 0 / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.3704, allocations: 165.5 kB / 1.17 GB, free: 2.566 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3704, allocations: 8.188 kB / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.241e-05/0.3704, allocations: 4 kB / 1.17 GB, free: 2.555 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.3704, allocations: 4 kB / 1.17 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.3704, allocations: 3.938 kB / 1.17 GB, free: 2.547 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.3704, allocations: 3.984 kB / 1.17 GB, free: 2.543 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3705, allocations: 8.031 kB / 1.17 GB, free: 2.535 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002363/0.3707, allocations: 163.5 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.604e-05/0.3707, allocations: 81.06 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.3708, allocations: 4 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.429e-05/0.3708, allocations: 7.984 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.858e-05/0.3709, allocations: 4.031 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.3709, allocations: 0 / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.645e-05/0.3709, allocations: 87.28 kB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3709, allocations: 0 / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002242/0.3712, allocations: 4 kB / 1.171 GB, free: 2.156 MB / 0.92 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.0001533/0.3713, allocations: 103.2 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000219/0.3716, allocations: 47.91 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3716, allocations: 0 / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.637e-05/0.3717, allocations: 23.97 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.3719, allocations: 5.812 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003084/0.3723, allocations: 113.4 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.3726, allocations: 0.6768 MB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.24e-05/0.3727, allocations: 8.125 kB / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.3727, allocations: 7.438 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of SimCode: time 2.11e-07/0.3727, allocations: 0 / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of Templates: time 0.003053/0.3758, allocations: 0.5569 MB / 1.172 GB, free: 0.5625 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches