Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Buildings_9_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_9_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.00104/0.00104, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001194/0.001194, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.422/2.422, allocations: 390.9 MB / 0.666 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003559, allocations: 12 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8755/0.8758, allocations: 142.4 MB / 0.9544 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.0007842/0.8767, allocations: 318 kB / 0.9547 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002166/0.8769, allocations: 40.28 kB / 0.9548 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.201e-05/0.8769, allocations: 0 / 0.9548 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.442e-05/0.8769, allocations: 0 / 0.9548 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.414e-06/0.877, allocations: 5.375 kB / 0.9548 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.8772, allocations: 16.14 kB / 0.9548 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.216e-05/0.8773, allocations: 1.438 kB / 0.9548 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.335e-05/0.8774, allocations: 1.375 kB / 0.9548 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.802e-05/0.8774, allocations: 1.344 kB / 0.9548 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.518e-05/0.8774, allocations: 1.344 kB / 0.9548 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.878e-06/0.8775, allocations: 0 / 0.9548 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.749e-05/0.8776, allocations: 15.89 kB / 0.9548 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.665e-06/0.8776, allocations: 0 / 0.9548 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.961e-05/0.8776, allocations: 25.7 kB / 0.9548 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.097e-05/0.8777, allocations: 17.78 kB / 0.9549 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.8777, allocations: 0 / 0.9549 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8777, allocations: 0 / 0.9549 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.8777, allocations: 0 / 0.9549 GB, free: 7.367 MB / 0.7169 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.000243/0.878, allocations: 309.9 kB / 0.9552 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.878, allocations: 9.875 kB / 0.9552 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.878, allocations: 3.953 kB / 0.9552 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.444e-05/0.8781, allocations: 164.1 kB / 0.9553 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.8781, allocations: 3.938 kB / 0.9553 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.8782, allocations: 9.312 kB / 0.9553 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.8783, allocations: 31.12 kB / 0.9554 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.8783, allocations: 0 / 0.9554 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.8783, allocations: 1.469 kB / 0.9554 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.8783, allocations: 0 / 0.9554 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.086e-05/0.8783, allocations: 5.297 kB / 0.9554 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001068/0.8784, allocations: 142.9 kB / 0.9555 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.55e-05/0.8785, allocations: 20.58 kB / 0.9555 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.599e-05/0.8785, allocations: 17.94 kB / 0.9556 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.301e-05/0.8786, allocations: 2.594 kB / 0.9556 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.8786, allocations: 30.56 kB / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.914e-06/0.8786, allocations: 0 / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001382/0.8787, allocations: 35.58 kB / 0.9556 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.8788, allocations: 52.47 kB / 0.9557 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.25e-05/0.8788, allocations: 89.86 kB / 0.9558 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.963e-06/0.8788, allocations: 25.83 kB / 0.9558 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.286e-05/0.8788, allocations: 84.14 kB / 0.9559 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.8789, allocations: 13.06 kB / 0.9559 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-06/0.8789, allocations: 0 / 0.9559 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.745e-05/0.8789, allocations: 324 kB / 0.9562 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-06/0.879, allocations: 1.375 kB / 0.9562 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-06/0.879, allocations: 1.406 kB / 0.9562 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.756e-05/0.879, allocations: 1.25 kB / 0.9562 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.879, allocations: 0 / 0.9562 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.629e-05/0.879, allocations: 34.92 kB / 0.9562 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.8791, allocations: 5.781 kB / 0.9562 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.8791, allocations: 0 / 0.9562 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.8791, allocations: 0 / 0.9562 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.054e-05/0.8792, allocations: 6.297 kB / 0.9562 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.8792, allocations: 1.25 kB / 0.9562 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.374e-05/0.8792, allocations: 4 kB / 0.9562 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.8792, allocations: 1.156 kB / 0.9562 GB, free: 5.801 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.077e-05/0.8793, allocations: 119.2 kB / 0.9563 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-06/0.8793, allocations: 0 / 0.9563 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.518e-05/0.8794, allocations: 43.88 kB / 0.9564 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.8794, allocations: 0 / 0.9564 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.8794, allocations: 0 / 0.9564 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.8794, allocations: 1.312 kB / 0.9564 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.058e-05/0.8795, allocations: 147.1 kB / 0.9565 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.8795, allocations: 0 / 0.9565 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.526e-05/0.8795, allocations: 5.438 kB / 0.9565 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.8795, allocations: 1.375 kB / 0.9565 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.8795, allocations: 7.984 kB / 0.9565 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.8795, allocations: 0 / 0.9565 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.8795, allocations: 1.438 kB / 0.9565 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.705e-05/0.8796, allocations: 58.84 kB / 0.9566 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.964e-05/0.8796, allocations: 77.11 kB / 0.9567 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.8796, allocations: 5.328 kB / 0.9567 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.096e-05/0.8797, allocations: 7.969 kB / 0.9567 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.604e-05/0.8797, allocations: 1.406 kB / 0.9567 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.8797, allocations: 1.438 kB / 0.9567 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.53e-05/0.8797, allocations: 79.28 kB / 0.9568 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.8797, allocations: 0 / 0.9568 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002457/0.88, allocations: 9.156 kB / 0.9568 GB, free: 5.172 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001629/0.8801, allocations: 104.3 kB / 0.9569 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.694e-05/0.8802, allocations: 6.906 kB / 0.9569 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.8802, allocations: 0 / 0.9569 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.151e-05/0.8802, allocations: 11.11 kB / 0.9569 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.8804, allocations: 8.703 kB / 0.9569 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001714/0.8806, allocations: 67.89 kB / 0.957 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.423e-05/0.8807, allocations: 0.6702 MB / 0.9576 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.778e-05/0.8807, allocations: 5.844 kB / 0.9576 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.961e-05/0.8807, allocations: 13.67 kB / 0.9576 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8807, allocations: 0 / 0.9576 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of Templates: time 0.002243/0.883, allocations: 283.4 kB / 0.9579 GB, free: 4.113 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches