Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_9_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.006859/0.00686, allocations: 99.64 kB / 15.73 MB, free: 6.035 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.001539/0.001539, allocations: 189.6 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.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 4.191 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.549/2.549, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.95 kB / 0.9508 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3635, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002819/0.3663, allocations: 1.427 MB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003489/0.3667, allocations: 100.6 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.869e-05/0.3667, allocations: 0 / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.497e-05/0.3668, allocations: 3.938 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.417e-05/0.3669, allocations: 3.938 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.3671, allocations: 23.98 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.882e-05/0.3672, allocations: 19.92 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.567e-05/0.3673, allocations: 15.97 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.649e-05/0.3674, allocations: 11.94 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.206e-05/0.3674, allocations: 7.984 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.3674, allocations: 0 / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.3676, allocations: 27.86 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.431e-05/0.3676, allocations: 4 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.3676, allocations: 15.92 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001231/0.3678, allocations: 35.89 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3678, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.303e-06/0.3678, allocations: 0 / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.3678, allocations: 7.984 kB / 1.09 GB, free: 15.79 MB / 0.8575 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.0004592/0.3683, allocations: 343.4 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3683, allocations: 12.03 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.396e-05/0.3684, allocations: 0.9375 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/0.3685, allocations: 168.3 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.3685, allocations: 384 / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.3685, allocations: 4.375 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.3687, allocations: 50.23 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.3687, allocations: 4.188 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.3688, allocations: 7.875 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3688, allocations: 4 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.3689, allocations: 35.95 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003527/0.3693, allocations: 257 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.3694, allocations: 42.5 kB / 1.09 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.194e-05/0.3695, allocations: 24.91 kB / 1.09 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.3696, allocations: 3.984 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.3696, allocations: 34.5 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.3696, allocations: 4 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003544/0.37, allocations: 85.64 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.37, allocations: 51.41 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.242e-05/0.3701, allocations: 105.8 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.3701, allocations: 29.7 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.3702, allocations: 80.14 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.3702, allocations: 15.97 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.163e-05/0.3702, allocations: 13.72 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3704, allocations: 318.8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.385e-05/0.3705, allocations: 19.98 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.101e-05/0.3705, allocations: 15.98 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.3707, allocations: 56.75 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3707, allocations: 0 / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001903/0.3709, allocations: 69.59 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3709, allocations: 8 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3709, allocations: 0 / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.3709, allocations: 0 / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.369e-05/0.371, allocations: 4 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.371, allocations: 0 / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.119e-05/0.3711, allocations: 12.02 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.3711, allocations: 4 kB / 1.091 GB, free: 13.72 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 (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 7.856e-05/0.3712, allocations: 113.8 kB / 1.091 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.3712, allocations: 7.906 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002239/0.3714, allocations: 81.11 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3715, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3715, allocations: 4.031 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3715, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.3717, allocations: 165.6 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3717, allocations: 3.984 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.123e-05/0.3717, allocations: 4 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3717, allocations: 4.25 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.3717, allocations: 3.984 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.3718, allocations: 4 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3718, allocations: 0 / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/0.372, allocations: 175.4 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-05/0.3721, allocations: 81.02 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.3721, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.604e-05/0.3722, allocations: 7.984 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.177e-05/0.3722, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.3722, allocations: 4 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.774e-05/0.3723, allocations: 87.31 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3723, allocations: 0 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002225/0.3725, allocations: 11.98 kB / 1.092 GB, free: 12.87 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 (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.0001632/0.3727, allocations: 103.2 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002159/0.3729, allocations: 39.95 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3729, allocations: 0 / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.182e-05/0.373, allocations: 27.98 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.3733, allocations: 3.938 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002927/0.3736, allocations: 117.6 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.3739, allocations: 0.6768 MB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.44e-05/0.3739, allocations: 4 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.888e-05/0.3739, allocations: 11.38 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.3739, allocations: 64 / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of Templates: time 0.002618/0.3766, allocations: 0.5626 MB / 1.094 GB, free: 11.28 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches