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.001578/0.001578, allocations: 104.1 kB / 16.35 MB, free: 5.824 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.00186/0.00186, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.205/1.205, 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.196/2.196, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 66.95 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2477, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001506/0.2493, allocations: 0.5783 MB / 1.027 GB, free: 1.484 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0001802/0.2495, allocations: 35.81 kB / 1.027 GB, free: 1.449 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.25e-05/0.2495, allocations: 0 / 1.027 GB, free: 1.449 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.739e-06/0.2495, allocations: 8 kB / 1.027 GB, free: 1.441 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.549e-06/0.2495, allocations: 0 / 1.027 GB, free: 1.441 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002249/0.2498, allocations: 15.92 kB / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 3.603e-05/0.2498, allocations: 7.938 kB / 1.027 GB, free: 1.418 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.754e-05/0.2498, allocations: 3.984 kB / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.133e-05/0.2499, allocations: 0 / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.28e-05/0.2499, allocations: 0 / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.965e-06/0.2499, allocations: 0 / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.817e-05/0.25, allocations: 15.98 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.323e-06/0.25, allocations: 0 / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.93e-05/0.25, allocations: 4 kB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.462e-05/0.2501, allocations: 19.97 kB / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2501, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2501, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.2501, allocations: 0 / 1.027 GB, free: 1.375 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.0002703/0.2504, allocations: 327.5 kB / 1.028 GB, free: 1.004 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.2504, allocations: 8.031 kB / 1.028 GB, free: 0.9961 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.316e-05/0.2505, allocations: 0.9375 kB / 1.028 GB, free: 0.9961 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.612e-05/0.2505, allocations: 164.3 kB / 1.028 GB, free: 0.7969 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.2506, allocations: 4.359 kB / 1.028 GB, free: 0.793 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.403e-06/0.2506, allocations: 8.375 kB / 1.028 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.512e-05/0.2507, allocations: 34.25 kB / 1.028 GB, free: 0.7461 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.2507, allocations: 192 / 1.028 GB, free: 0.7461 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.2507, allocations: 3.938 kB / 1.028 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.2507, allocations: 0 / 1.028 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.73e-05/0.2507, allocations: 4 kB / 1.028 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001152/0.2508, allocations: 141.7 kB / 1.028 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 3.193e-05/0.2509, allocations: 18.52 kB / 1.028 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.751e-05/0.2509, allocations: 20.94 kB / 1.028 GB, free: 0.5 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.2509, allocations: 0 / 1.028 GB, free: 0.5 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.2509, allocations: 34.56 kB / 1.028 GB, free: 468 kB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.251, allocations: 0 / 1.028 GB, free: 468 kB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.000101/0.2511, allocations: 37.64 kB / 1.028 GB, free: 424 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.2511, allocations: 51.41 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.603e-05/0.2511, allocations: 89.86 kB / 1.028 GB, free: 260 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 9.798e-06/0.2511, allocations: 29.83 kB / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.151e-05/0.2512, allocations: 86.47 kB / 1.028 GB, free: 136 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.334e-05/0.2512, allocations: 4 kB / 1.028 GB, free: 132 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.2512, allocations: 17.7 kB / 1.028 GB, free: 108 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001038/0.2513, allocations: 310.8 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.2513, allocations: 0 / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.655e-06/0.2514, allocations: 4 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.114e-05/0.2514, allocations: 4.922 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.2514, allocations: 4 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.637e-05/0.2514, allocations: 37.7 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.799e-06/0.2515, allocations: 7.938 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2515, allocations: 3.984 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.2515, allocations: 3.938 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.503e-05/0.2515, allocations: 7.938 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.2515, allocations: 0 / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.082e-05/0.2516, allocations: 3.938 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.2516, allocations: 4 kB / 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.023e-05/0.2516, allocations: 113.8 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-06/0.2516, allocations: 0 / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.699e-05/0.2517, allocations: 48.75 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.2517, allocations: 0 / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2518, allocations: 0 / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.2518, allocations: 0 / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.545e-05/0.2518, allocations: 141.7 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2518, allocations: 8.016 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.592e-05/0.2519, allocations: 4 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.2519, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.2519, allocations: 3.938 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.2519, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.2519, allocations: 3.938 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.716e-05/0.252, allocations: 57.14 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.6e-05/0.252, allocations: 85.12 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.827e-06/0.252, allocations: 3.938 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.919e-06/0.252, allocations: 0 / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.896e-06/0.252, allocations: 0 / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.252, allocations: 8 kB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.085e-05/0.2521, allocations: 75.28 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2521, allocations: 0 / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001685/0.2522, allocations: 4 kB / 1.029 GB, free: 15.05 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.0001171/0.2524, allocations: 103.2 kB / 1.029 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 5.688e-05/0.2524, allocations: 11.92 kB / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.2524, allocations: 0 / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.075e-06/0.2525, allocations: 4 kB / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.2526, allocations: 0 / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001477/0.2527, allocations: 84.98 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.2529, allocations: 0.669 MB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.081e-05/0.253, allocations: 8.109 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.777e-05/0.253, allocations: 11.44 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.253, allocations: 0 / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of Templates: time 0.001852/0.2548, allocations: 292.5 kB / 1.03 GB, free: 13.82 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 cvode -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