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.001526/0.001526, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00201/0.00201, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.391/1.391, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.77/2.77, allocations: 472.6 MB / 0.7448 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001189, allocations: 68.64 kB / 0.9116 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3292, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.00198/0.3313, allocations: 0.6503 MB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002511/0.3315, allocations: 39.81 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.164e-05/0.3316, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.429e-05/0.3316, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.3316, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.3319, allocations: 12 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.593e-05/0.3319, allocations: 3.984 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.679e-05/0.332, allocations: 0 / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.545e-05/0.332, allocations: 7.938 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.328e-05/0.332, allocations: 3.984 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.375e-06/0.3321, allocations: 4 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.479e-05/0.3322, allocations: 19.98 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.508e-06/0.3322, allocations: 0 / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.693e-05/0.3322, allocations: 0 / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.758e-05/0.3323, allocations: 19.97 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3323, allocations: 0 / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.234e-06/0.3323, allocations: 0 / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.308e-06/0.3323, allocations: 0 / 1.068 GB, free: 9.988 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.0003236/0.3326, allocations: 311.5 kB / 1.069 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.3327, allocations: 8.031 kB / 1.069 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.773e-05/0.3327, allocations: 8.938 kB / 1.069 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.3328, allocations: 164.4 kB / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-06/0.3328, allocations: 384 / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.3329, allocations: 384 / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.769e-05/0.333, allocations: 34.2 kB / 1.069 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.333, allocations: 4.188 kB / 1.069 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.333, allocations: 3.938 kB / 1.069 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.309e-06/0.333, allocations: 0 / 1.069 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.947e-05/0.333, allocations: 0 / 1.069 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001469/0.3332, allocations: 149.7 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.78e-05/0.3332, allocations: 18.61 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.837e-05/0.3332, allocations: 4.859 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.3333, allocations: 8.062 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.3333, allocations: 34.5 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3333, allocations: 3.938 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001414/0.3335, allocations: 33.77 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.3335, allocations: 63.39 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.621e-05/0.3336, allocations: 89.86 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.3336, allocations: 25.7 kB / 1.069 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.3336, allocations: 80.14 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.3336, allocations: 0 / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.3337, allocations: 21.72 kB / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3338, allocations: 310.8 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.003e-05/0.3338, allocations: 0 / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.043e-06/0.3338, allocations: 7.938 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.657e-05/0.3338, allocations: 8.859 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3339, allocations: 0 / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.262e-05/0.3339, allocations: 37.69 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.3339, allocations: 4 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3339, allocations: 0 / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.334, allocations: 3.938 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.643e-05/0.334, allocations: 4 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.334, allocations: 4.094 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.467e-05/0.3341, allocations: 0 / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.3341, allocations: 7.938 kB / 1.07 GB, free: 8.336 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.271e-05/0.3342, allocations: 105.8 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.3342, allocations: 7.906 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.3343, allocations: 44.69 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.3343, allocations: 4.031 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3343, allocations: 0 / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3343, allocations: 3.984 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.999e-05/0.3344, allocations: 153.7 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3344, allocations: 4 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.549e-05/0.3344, allocations: 0 / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.3345, allocations: 0 / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3345, allocations: 7.938 kB / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3345, allocations: 0 / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3345, allocations: 0 / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.715e-05/0.3346, allocations: 67.23 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.403e-05/0.3346, allocations: 81.11 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.3346, allocations: 3.938 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.057e-05/0.3346, allocations: 0 / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.95e-05/0.3347, allocations: 0 / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.3347, allocations: 0 / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.399e-05/0.3347, allocations: 75.28 kB / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3347, allocations: 4 kB / 1.07 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001914/0.3349, allocations: 15.97 kB / 1.07 GB, free: 7.668 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.0001972/0.3351, allocations: 107.2 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.111e-05/0.3352, allocations: 4 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3352, allocations: 0 / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.171e-05/0.3353, allocations: 7.938 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.3354, allocations: 1.266 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000193/0.3356, allocations: 89.03 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.336, allocations: 0.6729 MB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.652e-05/0.336, allocations: 0 / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.412e-05/0.3361, allocations: 7.438 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3361, allocations: 0 / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of Templates: time 0.002318/0.3384, allocations: 292.7 kB / 1.072 GB, free: 6.434 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