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.0009906/0.000991, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008644/0.0008645, allocations: 185.3 kB / 16.92 MB, free: 6.777 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.373/1.373, allocations: 223.3 MB / 241 MB, free: 5.34 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.403/2.403, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003641, allocations: 12 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7122/0.7125, allocations: 142.4 MB / 0.9557 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.0007014/0.7133, allocations: 324.6 kB / 0.956 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002461/0.7135, allocations: 37.38 kB / 0.9561 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.044e-05/0.7136, allocations: 0 / 0.9561 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.099e-05/0.7136, allocations: 0 / 0.9561 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.15e-06/0.7136, allocations: 0 / 0.9561 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.7138, allocations: 9.984 kB / 0.9561 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.413e-05/0.7139, allocations: 1.312 kB / 0.9561 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.7139, allocations: 1.344 kB / 0.9561 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.84e-05/0.714, allocations: 1.062 kB / 0.9561 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.217e-05/0.714, allocations: 1.156 kB / 0.9561 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.789e-06/0.714, allocations: 8.875 kB / 0.9561 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.387e-05/0.7141, allocations: 23.67 kB / 0.9561 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.137e-06/0.7141, allocations: 0 / 0.9561 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.378e-05/0.7142, allocations: 33.67 kB / 0.9561 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.556e-05/0.7142, allocations: 5.531 kB / 0.9561 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.7142, allocations: 0 / 0.9561 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.516e-06/0.7142, allocations: 4.922 kB / 0.9562 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.7143, allocations: 0 / 0.9562 GB, free: 7.289 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.0002257/0.7145, allocations: 309.7 kB / 0.9564 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.7145, allocations: 9.656 kB / 0.9565 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.528e-05/0.7146, allocations: 4.938 kB / 0.9565 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.08e-05/0.7146, allocations: 161.6 kB / 0.9566 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.7146, allocations: 384 / 0.9566 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.7147, allocations: 1.312 kB / 0.9566 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.089e-05/0.7148, allocations: 40.19 kB / 0.9567 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.7148, allocations: 192 / 0.9567 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.7148, allocations: 5.094 kB / 0.9567 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.7148, allocations: 0 / 0.9567 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.979e-05/0.7148, allocations: 5.094 kB / 0.9567 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.833e-05/0.7149, allocations: 146.8 kB / 0.9568 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.081e-05/0.715, allocations: 20.78 kB / 0.9568 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.415e-05/0.715, allocations: 10.89 kB / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.715, allocations: 1.031 kB / 0.9568 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.581e-05/0.715, allocations: 35.53 kB / 0.9569 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.715, allocations: 0 / 0.9569 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001156/0.7152, allocations: 40.11 kB / 0.9569 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/0.7152, allocations: 55.53 kB / 0.957 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.803e-05/0.7152, allocations: 89.86 kB / 0.957 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.752e-06/0.7152, allocations: 26.77 kB / 0.9571 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.129e-05/0.7153, allocations: 84.08 kB / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.434e-05/0.7153, allocations: 4.938 kB / 0.9572 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.843e-05/0.7153, allocations: 13.7 kB / 0.9572 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.41e-05/0.7154, allocations: 316 kB / 0.9575 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.7154, allocations: 0.9062 kB / 0.9575 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.21e-06/0.7154, allocations: 5.031 kB / 0.9575 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.314e-05/0.7154, allocations: 7.703 kB / 0.9575 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.7154, allocations: 0 / 0.9575 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.577e-05/0.7155, allocations: 36.17 kB / 0.9575 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.7155, allocations: 4.844 kB / 0.9575 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.7155, allocations: 0 / 0.9575 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.7155, allocations: 9.453 kB / 0.9575 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.874e-05/0.7156, allocations: 1.25 kB / 0.9575 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.7156, allocations: 0 / 0.9575 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.264e-05/0.7156, allocations: 5.312 kB / 0.9575 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.7156, allocations: 1.031 kB / 0.9575 GB, free: 5.695 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.527e-05/0.7157, allocations: 111.1 kB / 0.9576 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-06/0.7157, allocations: 1.188 kB / 0.9576 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.765e-05/0.7158, allocations: 46.69 kB / 0.9577 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.7158, allocations: 0 / 0.9577 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.7158, allocations: 5.281 kB / 0.9577 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.7158, allocations: 0 / 0.9577 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.033e-05/0.7158, allocations: 146.8 kB / 0.9578 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.7158, allocations: 0 / 0.9578 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.709e-05/0.7159, allocations: 6.359 kB / 0.9578 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.7159, allocations: 0 / 0.9578 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.7159, allocations: 5.281 kB / 0.9578 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.7159, allocations: 3.938 kB / 0.9579 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.7159, allocations: 0 / 0.9579 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.433e-05/0.716, allocations: 59.97 kB / 0.9579 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.039e-05/0.716, allocations: 82.31 kB / 0.958 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.716, allocations: 3.938 kB / 0.958 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.166e-05/0.716, allocations: 4.969 kB / 0.958 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.112e-05/0.716, allocations: 0 / 0.958 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.716, allocations: 5.719 kB / 0.958 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.516e-05/0.7161, allocations: 75.28 kB / 0.9581 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7161, allocations: 3.938 kB / 0.9581 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001953/0.7163, allocations: 8.969 kB / 0.9581 GB, free: 5.062 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 (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.0001394/0.7164, allocations: 100 kB / 0.9582 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.871e-05/0.7165, allocations: 8.984 kB / 0.9582 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.7165, allocations: 0 / 0.9582 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.695e-06/0.7165, allocations: 2 kB / 0.9582 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.7166, allocations: 1.125 kB / 0.9582 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001414/0.7168, allocations: 101.5 kB / 0.9583 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.73e-05/0.7169, allocations: 0.6713 MB / 0.9589 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.412e-05/0.7169, allocations: 12.45 kB / 0.959 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.7169, allocations: 0 / 0.959 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of Templates: time 0.001649/0.7186, allocations: 441 kB / 0.9594 GB, free: 3.934 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/jenkins1/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