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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001464/0.001464, allocations: 112.6 kB / 16.37 MB, free: 6 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.001592/0.001592, allocations: 196 kB / 17.31 MB, free: 5.613 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.443/2.443, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 59.94 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2873, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001899/0.2893, allocations: 0.5929 MB / 1.027 GB, free: 1.461 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002263/0.2895, allocations: 35.81 kB / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.069e-05/0.2895, allocations: 0 / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.478e-05/0.2895, allocations: 0 / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.099e-06/0.2896, allocations: 0 / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002649/0.2898, allocations: 15.98 kB / 1.027 GB, free: 1.41 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.303e-05/0.2899, allocations: 3.984 kB / 1.027 GB, free: 1.406 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.693e-05/0.2899, allocations: 8 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.403e-05/0.29, allocations: 0 / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.855e-05/0.29, allocations: 3.984 kB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.29, allocations: 0 / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.041e-05/0.2901, allocations: 19.92 kB / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.045e-06/0.2901, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.886e-05/0.2901, allocations: 7.938 kB / 1.027 GB, free: 1.367 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.15e-05/0.2902, allocations: 11.98 kB / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2902, allocations: 0 / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2903, allocations: 0 / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.044e-06/0.2903, allocations: 0 / 1.027 GB, free: 1.355 MB / 0.795 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.0002851/0.2906, allocations: 327.6 kB / 1.028 GB, free: 0.9844 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.2906, allocations: 12.03 kB / 1.028 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.646e-05/0.2906, allocations: 0.9375 kB / 1.028 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.891e-05/0.2907, allocations: 160.4 kB / 1.028 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.2907, allocations: 384 / 1.028 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.854e-06/0.2908, allocations: 384 / 1.028 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.914e-05/0.2908, allocations: 34.25 kB / 1.028 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.2909, allocations: 192 / 1.028 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.2909, allocations: 7.938 kB / 1.028 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.2909, allocations: 0 / 1.028 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.034e-05/0.2909, allocations: 3.938 kB / 1.028 GB, free: 0.7266 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001447/0.2911, allocations: 153.7 kB / 1.028 GB, free: 0.5273 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 3.571e-05/0.2911, allocations: 14.58 kB / 1.028 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.971e-05/0.2911, allocations: 15.34 kB / 1.028 GB, free: 500 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.2912, allocations: 0 / 1.028 GB, free: 500 kB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.2912, allocations: 38.55 kB / 1.028 GB, free: 452 kB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.2912, allocations: 0 / 1.028 GB, free: 452 kB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001308/0.2913, allocations: 41.58 kB / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.2914, allocations: 51.41 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.52e-05/0.2914, allocations: 93.86 kB / 1.028 GB, free: 236 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.2914, allocations: 25.7 kB / 1.028 GB, free: 204 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.662e-05/0.2915, allocations: 80.14 kB / 1.028 GB, free: 120 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.2915, allocations: 0 / 1.028 GB, free: 120 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/0.2915, allocations: 17.84 kB / 1.028 GB, free: 96 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.2916, allocations: 318.8 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.337e-06/0.2917, allocations: 0 / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-06/0.2917, allocations: 4 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.463e-05/0.2917, allocations: 8.859 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2917, allocations: 0 / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.446e-05/0.2918, allocations: 37.64 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.2918, allocations: 4 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.2918, allocations: 4.094 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.2918, allocations: 3.938 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.078e-05/0.2919, allocations: 7.984 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.2919, allocations: 0 / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.177e-05/0.2919, allocations: 0 / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.2919, allocations: 0 / 1.029 GB, free: 15.7 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 6.114e-05/0.292, allocations: 113.8 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-06/0.292, allocations: 0 / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.891e-05/0.2921, allocations: 52.69 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.2921, allocations: 4 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2921, allocations: 4 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.2921, allocations: 0 / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.114e-05/0.2922, allocations: 141.7 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2922, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.974e-05/0.2922, allocations: 7.984 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.2922, allocations: 0 / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.2922, allocations: 3.938 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2923, allocations: 4.031 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2923, allocations: 0 / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.786e-05/0.2923, allocations: 57.14 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/0.2924, allocations: 81.09 kB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.2924, allocations: 7.922 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.167e-05/0.2924, allocations: 0 / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.118e-05/0.2924, allocations: 0 / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.2924, allocations: 15.91 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.395e-05/0.2925, allocations: 75.28 kB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2925, allocations: 0 / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001983/0.2927, allocations: 4 kB / 1.029 GB, free: 15.03 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.000162/0.2929, allocations: 103.2 kB / 1.029 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.763e-05/0.2929, allocations: 11.98 kB / 1.029 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2929, allocations: 0 / 1.029 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.032e-05/0.2929, allocations: 8.062 kB / 1.029 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.2931, allocations: 2.969 kB / 1.029 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001798/0.2933, allocations: 80.98 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.2935, allocations: 0.669 MB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.04e-05/0.2936, allocations: 0 / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.744e-05/0.2936, allocations: 19.48 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.2936, allocations: 3.938 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.002206/0.2958, allocations: 284.5 kB / 1.031 GB, free: 13.8 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 -s gbode -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/jenkins1/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