Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009354/0.0009354, allocations: 108 kB / 15.61 MB, free: 152 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.0009588/0.0009588, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.308/1.308, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.281/2.281, allocations: 390.3 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 67.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7/0.7013, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.00239/0.7038, allocations: 1.432 MB / 0.9511 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002795/0.7041, allocations: 90.78 kB / 0.9512 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.92e-05/0.7041, allocations: 0 / 0.9512 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.708e-05/0.7042, allocations: 5.5 kB / 0.9512 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.968e-05/0.7042, allocations: 7.922 kB / 0.9512 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002142/0.7044, allocations: 17.95 kB / 0.9512 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.357e-05/0.7045, allocations: 30.44 kB / 0.9513 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.592e-05/0.7046, allocations: 2.656 kB / 0.9513 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.428e-05/0.7046, allocations: 8.094 kB / 0.9513 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.518e-05/0.7047, allocations: 10.7 kB / 0.9513 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.7047, allocations: 7.219 kB / 0.9513 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.488e-05/0.7048, allocations: 20.89 kB / 0.9513 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.502e-05/0.7048, allocations: 5.328 kB / 0.9513 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.343e-05/0.7048, allocations: 10.69 kB / 0.9513 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001027/0.7049, allocations: 45.59 kB / 0.9514 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.705, allocations: 1.219 kB / 0.9514 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.272e-06/0.705, allocations: 0 / 0.9514 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.705, allocations: 0 / 0.9514 GB, free: 7.891 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000343/0.7053, allocations: 341.7 kB / 0.9517 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.7054, allocations: 13.84 kB / 0.9517 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.189e-05/0.7054, allocations: 30.75 kB / 0.9517 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.341e-05/0.7054, allocations: 6.312 kB / 0.9517 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.749e-05/0.7055, allocations: 166.5 kB / 0.9519 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.7055, allocations: 9.797 kB / 0.9519 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-06/0.7055, allocations: 384 / 0.9519 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.7057, allocations: 55.58 kB / 0.952 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.7057, allocations: 7.875 kB / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.7057, allocations: 0 / 0.952 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.7057, allocations: 5.312 kB / 0.952 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.7059, allocations: 40.53 kB / 0.952 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002388/0.7061, allocations: 249.7 kB / 0.9522 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.7062, allocations: 46.05 kB / 0.9523 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.098e-05/0.7063, allocations: 27.06 kB / 0.9523 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.7064, allocations: 2.688 kB / 0.9523 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.567e-05/0.7064, allocations: 31.91 kB / 0.9524 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.7064, allocations: 0 / 0.9524 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003254/0.7067, allocations: 93.67 kB / 0.9524 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.394e-05/0.7068, allocations: 55.53 kB / 0.9525 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.848e-05/0.7068, allocations: 105.2 kB / 0.9526 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.314e-06/0.7068, allocations: 26.64 kB / 0.9526 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.506e-05/0.7069, allocations: 85.14 kB / 0.9527 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.7069, allocations: 5.062 kB / 0.9527 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.657e-05/0.7069, allocations: 16.92 kB / 0.9527 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.482e-05/0.707, allocations: 315.9 kB / 0.953 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.163e-05/0.7071, allocations: 18.3 kB / 0.953 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.308e-05/0.7071, allocations: 22.88 kB / 0.9531 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.7073, allocations: 42.02 kB / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.7073, allocations: 3.938 kB / 0.9531 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001829/0.7075, allocations: 72.44 kB / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.7075, allocations: 3.969 kB / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.7075, allocations: 1.219 kB / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.7075, allocations: 0 / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.928e-05/0.7076, allocations: 10.36 kB / 0.9532 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.7076, allocations: 0 / 0.9532 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.514e-05/0.7077, allocations: 12.39 kB / 0.9532 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.7077, allocations: 1.562 kB / 0.9532 GB, free: 6.012 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 (2): * Single equations (assignments): 2 * 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 5.04e-05/0.7077, allocations: 111.2 kB / 0.9533 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.7078, allocations: 5.594 kB / 0.9533 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002203/0.708, allocations: 82.12 kB / 0.9534 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.708, allocations: 9.047 kB / 0.9534 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.708, allocations: 0 / 0.9534 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.708, allocations: 0 / 0.9534 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001107/0.7081, allocations: 168.2 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.7081, allocations: 1.188 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-05/0.7082, allocations: 14.55 kB / 0.9536 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.7082, allocations: 0 / 0.9536 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.7082, allocations: 0 / 0.9536 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.7082, allocations: 1.312 kB / 0.9536 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.7082, allocations: 3.938 kB / 0.9536 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001977/0.7084, allocations: 170.1 kB / 0.9537 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.861e-05/0.7085, allocations: 82.48 kB / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.082e-05/0.7085, allocations: 0 / 0.9538 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.99e-05/0.7085, allocations: 7.516 kB / 0.9538 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.7086, allocations: 2.5 kB / 0.9538 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.7086, allocations: 0 / 0.9538 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.032e-05/0.7086, allocations: 88.48 kB / 0.9539 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7086, allocations: 1.438 kB / 0.9539 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002105/0.7088, allocations: 7.188 kB / 0.9539 GB, free: 5.258 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 (2): * Single equations (assignments): 2 * 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.0003849/0.7092, allocations: 0.7024 MB / 0.9546 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002024/0.7094, allocations: 48.64 kB / 0.9547 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7095, allocations: 4.094 kB / 0.9547 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.337e-05/0.7095, allocations: 17.67 kB / 0.9547 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.7098, allocations: 13.39 kB / 0.9547 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003306/0.7101, allocations: 144.4 kB / 0.9548 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.7103, allocations: 0.6825 MB / 0.9555 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.174e-05/0.7103, allocations: 5.312 kB / 0.9555 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.753e-05/0.7103, allocations: 12.69 kB / 0.9555 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7103, allocations: 0 / 0.9555 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.7276, allocations: 1.402 MB / 0.9569 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.821/7.548, allocations: 4.781 kB / 0.9569 GB, free: 2.848 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Polynomial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches