Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Buildings_9_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_9_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.007381/0.007381, allocations: 101.5 kB / 15.73 MB, free: 6.039 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.00151/0.00151, allocations: 200.9 kB / 16.68 MB, free: 5.965 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001749, allocations: 68.31 kB / 0.9509 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.317, allocations: 140.4 MB / 1.088 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001658/0.3187, allocations: 0.5727 MB / 1.089 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002338/0.3189, allocations: 43.75 kB / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.406e-05/0.319, allocations: 0 / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.319, allocations: 0 / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.124e-06/0.319, allocations: 0 / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002841/0.3193, allocations: 11.98 kB / 1.089 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.202e-05/0.3194, allocations: 7.984 kB / 1.089 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.587e-05/0.3194, allocations: 4 kB / 1.089 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.655e-05/0.3194, allocations: 3.984 kB / 1.089 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.964e-05/0.3195, allocations: 0 / 1.089 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.3195, allocations: 7.938 kB / 1.089 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.3196, allocations: 11.98 kB / 1.089 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.678e-06/0.3196, allocations: 4 kB / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.955e-05/0.3196, allocations: 0 / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.377e-05/0.3197, allocations: 15.97 kB / 1.089 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.3198, allocations: 0 / 1.089 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3198, allocations: 4 kB / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.3198, allocations: 0 / 1.089 GB, free: 0.793 MB / 0.8419 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.0002964/0.3201, allocations: 323.5 kB / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3201, allocations: 8.031 kB / 1.089 GB, free: 428 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.094e-05/0.3202, allocations: 4.938 kB / 1.089 GB, free: 424 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.121e-05/0.3202, allocations: 160.4 kB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.3203, allocations: 384 / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.3203, allocations: 384 / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.891e-05/0.3204, allocations: 42.19 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.3204, allocations: 192 / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.3204, allocations: 11.92 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3204, allocations: 0 / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.384e-05/0.3204, allocations: 4 kB / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.3206, allocations: 141.7 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.003e-05/0.3207, allocations: 14.58 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.768e-05/0.3207, allocations: 12.95 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.3207, allocations: 3.984 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.3208, allocations: 38.5 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3208, allocations: 4 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001335/0.3209, allocations: 33.64 kB / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.321, allocations: 51.41 kB / 1.089 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.834e-05/0.321, allocations: 89.86 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.321, allocations: 25.7 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.605e-05/0.321, allocations: 80.14 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.922e-05/0.3211, allocations: 0 / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.3211, allocations: 26.17 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3212, allocations: 314.8 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.023e-05/0.3212, allocations: 0 / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.134e-06/0.3213, allocations: 4 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.185e-05/0.3213, allocations: 12.8 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3213, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.449e-05/0.3214, allocations: 33.7 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3214, allocations: 4 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3214, allocations: 8.078 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.3214, allocations: 7.938 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.499e-05/0.3215, allocations: 0 / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3215, allocations: 0 / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.386e-05/0.3215, allocations: 7.891 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.3215, allocations: 4 kB / 1.09 GB, free: 15.12 MB / 0.8575 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 6.559e-05/0.3216, allocations: 105.8 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-06/0.3216, allocations: 0 / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.986e-05/0.3217, allocations: 52.69 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3217, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3217, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.3217, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.161e-05/0.3218, allocations: 145.7 kB / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.3218, allocations: 0 / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.865e-05/0.3219, allocations: 7.984 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.3219, allocations: 0 / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.3219, allocations: 7.938 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.3219, allocations: 4.031 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3219, allocations: 0 / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.34e-05/0.322, allocations: 61.08 kB / 1.09 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.682e-05/0.322, allocations: 81.09 kB / 1.09 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.3221, allocations: 3.938 kB / 1.09 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.078e-05/0.3221, allocations: 0 / 1.09 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.607e-05/0.3221, allocations: 4 kB / 1.09 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.3221, allocations: 4.031 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.959e-05/0.3221, allocations: 79.28 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3221, allocations: 0 / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002117/0.3224, allocations: 7.938 kB / 1.091 GB, free: 14.47 MB / 0.8575 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.0001495/0.3225, allocations: 99.25 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 6.724e-05/0.3226, allocations: 11.98 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3226, allocations: 0 / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.486e-06/0.3226, allocations: 8 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001282/0.3227, allocations: 4 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001925/0.3229, allocations: 83.17 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.3232, allocations: 0.6728 MB / 1.091 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.188e-05/0.3232, allocations: 7.984 kB / 1.091 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.3233, allocations: 11.5 kB / 1.091 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.3233, allocations: 0 / 1.091 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of Templates: time 0.002392/0.3257, allocations: 286 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches