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.008029/0.008029, allocations: 104.2 kB / 15.73 MB, free: 6.039 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.001911/0.001911, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.376/2.376, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.16 kB / 0.9504 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.265, allocations: 140.4 MB / 1.087 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.00286/0.2679, allocations: 1.423 MB / 1.089 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002924/0.2682, allocations: 100.6 kB / 1.089 GB, free: 484 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.036e-05/0.2683, allocations: 0 / 1.089 GB, free: 484 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.881e-05/0.2683, allocations: 3.984 kB / 1.089 GB, free: 480 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.293e-05/0.2684, allocations: 3.938 kB / 1.089 GB, free: 476 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002393/0.2686, allocations: 23.92 kB / 1.089 GB, free: 452 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.216e-05/0.2687, allocations: 23.92 kB / 1.089 GB, free: 428 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.656e-05/0.2688, allocations: 8 kB / 1.089 GB, free: 420 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.303e-05/0.2688, allocations: 15.92 kB / 1.089 GB, free: 404 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.682e-05/0.2689, allocations: 7.938 kB / 1.089 GB, free: 396 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.002e-05/0.2689, allocations: 0 / 1.089 GB, free: 396 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.087e-05/0.269, allocations: 27.97 kB / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.301e-05/0.269, allocations: 3.984 kB / 1.089 GB, free: 364 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.2691, allocations: 11.94 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00011/0.2692, allocations: 31.89 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2692, allocations: 4 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.774e-06/0.2692, allocations: 4 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.2692, allocations: 0 / 1.089 GB, free: 312 kB / 0.8419 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.0004795/0.2697, allocations: 346.3 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.2698, allocations: 8.031 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.624e-05/0.2698, allocations: 34.75 kB / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.2698, allocations: 0.9375 kB / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.27, allocations: 176.2 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-06/0.27, allocations: 4.312 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.27, allocations: 4.375 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.2702, allocations: 54.23 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.2702, allocations: 3.938 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.2703, allocations: 4 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.2703, allocations: 0 / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.2705, allocations: 35.95 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003833/0.2708, allocations: 245.5 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.271, allocations: 54.42 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.432e-05/0.2711, allocations: 24.91 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.2711, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.2712, allocations: 34.56 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.2712, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003812/0.2716, allocations: 97.56 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.2716, allocations: 51.41 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.779e-05/0.2717, allocations: 105.8 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.2717, allocations: 29.64 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/0.2718, allocations: 88.41 kB / 1.09 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.2718, allocations: 11.84 kB / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.2718, allocations: 13.84 kB / 1.09 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.2719, allocations: 314.8 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.504e-05/0.272, allocations: 19.97 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.53e-05/0.2721, allocations: 19.98 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.2723, allocations: 40.89 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.2723, allocations: 3.938 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001998/0.2725, allocations: 73.59 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2725, allocations: 5.562 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.2725, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.2726, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.9e-05/0.2726, allocations: 15.98 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.2727, allocations: 0 / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.163e-05/0.2727, allocations: 15.92 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-06/0.2727, allocations: 0 / 1.091 GB, free: 14.18 MB / 0.8575 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 0.000112/0.2728, allocations: 113.8 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.455e-05/0.2729, allocations: 3.984 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002338/0.2731, allocations: 77.17 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2731, allocations: 256 / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.2731, allocations: 0 / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2731, allocations: 15.97 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.2734, allocations: 157.6 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2734, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.011e-05/0.2734, allocations: 11.98 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2734, allocations: 3.938 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.2735, allocations: 0 / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2735, allocations: 0 / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.2735, allocations: 0 / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000245/0.2737, allocations: 171.5 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.998e-05/0.2738, allocations: 85 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.2738, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.11e-05/0.2739, allocations: 4 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.2739, allocations: 11.98 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.2739, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.897e-05/0.274, allocations: 83.22 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.274, allocations: 4.031 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002273/0.2742, allocations: 8 kB / 1.092 GB, free: 13.34 MB / 0.8575 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.0006133/0.2749, allocations: 0.7085 MB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002166/0.2751, allocations: 40 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2751, allocations: 0 / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.33e-05/0.2752, allocations: 27.91 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.2755, allocations: 4 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004696/0.276, allocations: 139.3 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.2763, allocations: 0.6808 MB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.813e-05/0.2763, allocations: 7.984 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.2764, allocations: 11.44 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.2764, allocations: 0 / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.2929, allocations: 1.431 MB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/7.556, allocations: 0 / 1.095 GB, free: 10.27 MB / 0.8575 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