Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001169/0.001169, allocations: 111.9 kB / 16.41 MB, free: 6.016 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.001162/0.001162, allocations: 190.6 kB / 17.34 MB, free: 5.629 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.286/1.286, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.371/2.371, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 59.91 kB / 1.019 GB, free: 9.371 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7118/0.7135, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001564/0.7151, allocations: 0.581 MB / 1.168 GB, free: 3.289 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0002121/0.7153, allocations: 35.88 kB / 1.168 GB, free: 3.254 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.073e-05/0.7154, allocations: 3.938 kB / 1.168 GB, free: 3.25 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.7154, allocations: 0 / 1.168 GB, free: 3.25 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.044e-06/0.7154, allocations: 0 / 1.168 GB, free: 3.25 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.7156, allocations: 23.91 kB / 1.168 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 3.54e-05/0.7157, allocations: 0 / 1.168 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.422e-05/0.7157, allocations: 0 / 1.168 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.092e-05/0.7157, allocations: 0 / 1.168 GB, free: 3.227 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.089e-05/0.7158, allocations: 4 kB / 1.168 GB, free: 3.223 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 7.855e-06/0.7158, allocations: 0 / 1.168 GB, free: 3.223 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.239e-05/0.7159, allocations: 23.97 kB / 1.168 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.087e-06/0.7159, allocations: 7.938 kB / 1.168 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.405e-05/0.7159, allocations: 0 / 1.168 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.716, allocations: 19.97 kB / 1.168 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.716, allocations: 0 / 1.168 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.153e-06/0.716, allocations: 0 / 1.168 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.7161, allocations: 0 / 1.168 GB, free: 3.172 MB / 0.8887 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.0003131/0.7164, allocations: 316.6 kB / 1.168 GB, free: 2.812 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.7164, allocations: 8.922 kB / 1.168 GB, free: 2.805 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.375e-05/0.7164, allocations: 0.9375 kB / 1.168 GB, free: 2.805 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.7165, allocations: 164.4 kB / 1.169 GB, free: 2.605 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.7166, allocations: 4.375 kB / 1.169 GB, free: 2.602 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.7166, allocations: 384 / 1.169 GB, free: 2.602 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.744e-05/0.7167, allocations: 26.27 kB / 1.169 GB, free: 2.57 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.7167, allocations: 4.125 kB / 1.169 GB, free: 2.566 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.7167, allocations: 7.922 kB / 1.169 GB, free: 2.559 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.7167, allocations: 7.938 kB / 1.169 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.873e-05/0.7167, allocations: 3.938 kB / 1.169 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001427/0.7169, allocations: 145.7 kB / 1.169 GB, free: 2.355 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 3.988e-05/0.7169, allocations: 22.61 kB / 1.169 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.472e-05/0.7169, allocations: 4.859 kB / 1.169 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.717, allocations: 4.062 kB / 1.169 GB, free: 2.312 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.717, allocations: 30.56 kB / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.717, allocations: 0 / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0001253/0.7171, allocations: 45.52 kB / 1.169 GB, free: 2.223 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.7172, allocations: 59.53 kB / 1.169 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.174e-05/0.7172, allocations: 89.86 kB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.7172, allocations: 25.7 kB / 1.169 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.728e-05/0.7173, allocations: 84.14 kB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.7173, allocations: 3.516 kB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.641e-05/0.7173, allocations: 9.719 kB / 1.169 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.7175, allocations: 310.8 kB / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.7175, allocations: 7.984 kB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.243e-06/0.7175, allocations: 4 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.739e-05/0.7175, allocations: 12.86 kB / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.7175, allocations: 0 / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.266e-05/0.7176, allocations: 33.64 kB / 1.169 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.7176, allocations: 8 kB / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.7176, allocations: 0 / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.7176, allocations: 3.938 kB / 1.169 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.355e-05/0.7177, allocations: 0 / 1.169 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.7177, allocations: 3.984 kB / 1.169 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.284e-05/0.7177, allocations: 8.094 kB / 1.169 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.7177, allocations: 4 kB / 1.169 GB, free: 1.516 MB / 0.8887 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.697e-05/0.7178, allocations: 105.8 kB / 1.17 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.202e-06/0.7178, allocations: 0 / 1.17 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.729e-05/0.7179, allocations: 52.69 kB / 1.17 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.7179, allocations: 0 / 1.17 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.7179, allocations: 4.031 kB / 1.17 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.7179, allocations: 3.984 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.7181, allocations: 145.6 kB / 1.17 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.7181, allocations: 4 kB / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.416e-05/0.7181, allocations: 0 / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.7181, allocations: 0 / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.7181, allocations: 3.938 kB / 1.17 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.7181, allocations: 3.984 kB / 1.17 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.7181, allocations: 4 kB / 1.17 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.826e-05/0.7182, allocations: 57.14 kB / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.7183, allocations: 81.05 kB / 1.17 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.7183, allocations: 7.938 kB / 1.17 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.155e-05/0.7183, allocations: 3.984 kB / 1.17 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.628e-06/0.7183, allocations: 0 / 1.17 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.7183, allocations: 0 / 1.17 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 3.103e-05/0.7183, allocations: 79.22 kB / 1.17 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1e-07/0.7183, allocations: 0 / 1.17 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0001722/0.7185, allocations: 4 kB / 1.17 GB, free: 0.8594 MB / 0.8887 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.0001609/0.7187, allocations: 107.3 kB / 1.17 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 7.052e-05/0.7188, allocations: 8 kB / 1.17 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7188, allocations: 0 / 1.17 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 8.637e-06/0.7188, allocations: 4 kB / 1.17 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.7189, allocations: 6.953 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001672/0.7191, allocations: 75.41 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.7194, allocations: 0.6769 MB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.886e-05/0.7194, allocations: 0 / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.724e-05/0.7195, allocations: 7.438 kB / 1.171 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of SimCode: time 1.853e-06/0.7195, allocations: 0 / 1.171 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of Templates: time 0.002143/0.7216, allocations: 292.7 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches