Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Functions.Examples.Polynomial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_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.001333/0.001333, allocations: 108 kB / 15.6 MB, free: 132 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.001332/0.001332, allocations: 198.8 kB / 16.54 MB, free: 6.672 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.433/1.433, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.672/2.672, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 67.62 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2559, allocations: 159.1 MB / 1.064 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001688/0.2576, allocations: 0.5972 MB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002055/0.2578, allocations: 39.81 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.1e-05/0.2578, allocations: 0 / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.268e-05/0.2579, allocations: 4 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.228e-06/0.2579, allocations: 0 / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.2581, allocations: 8 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.503e-05/0.2582, allocations: 3.984 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.672e-05/0.2582, allocations: 0 / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.404e-05/0.2582, allocations: 4 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.094e-05/0.2583, allocations: 4 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.2583, allocations: 0 / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.242e-05/0.2584, allocations: 19.92 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.817e-06/0.2584, allocations: 3.984 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.58e-05/0.2584, allocations: 4 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.538e-05/0.2585, allocations: 11.98 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2585, allocations: 3.984 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2585, allocations: 0 / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.2585, allocations: 0 / 1.065 GB, free: 13.57 MB / 0.8262 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.0002917/0.2588, allocations: 315.6 kB / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.2589, allocations: 8.031 kB / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.303e-05/0.2589, allocations: 34.69 kB / 1.065 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.145e-05/0.2589, allocations: 4.938 kB / 1.065 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.828e-05/0.259, allocations: 164.4 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.259, allocations: 4.375 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-06/0.259, allocations: 384 / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.009e-05/0.2591, allocations: 30.2 kB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.2591, allocations: 3.938 kB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.771e-06/0.2592, allocations: 4 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.2592, allocations: 0 / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.612e-05/0.2592, allocations: 3.938 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.2593, allocations: 149.7 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.991e-05/0.2594, allocations: 26.61 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.646e-05/0.2594, allocations: 8.844 kB / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.2594, allocations: 4.062 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.2595, allocations: 34.5 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.2595, allocations: 0 / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001166/0.2596, allocations: 37.64 kB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.733e-05/0.2596, allocations: 55.39 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.845e-05/0.2597, allocations: 97.98 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.2597, allocations: 25.7 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/0.2597, allocations: 80.14 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.2598, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/0.2598, allocations: 9.719 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.2599, allocations: 318.8 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.716e-06/0.2599, allocations: 0 / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.142e-06/0.2599, allocations: 0 / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.698e-05/0.26, allocations: 16.86 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.26, allocations: 0 / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.503e-05/0.26, allocations: 33.69 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.2601, allocations: 9.875 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2601, allocations: 3.938 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.2601, allocations: 0 / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.92e-05/0.2601, allocations: 4 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.2602, allocations: 4 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.106e-05/0.2602, allocations: 0 / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.2602, allocations: 4.031 kB / 1.066 GB, free: 11.88 MB / 0.8262 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 6.842e-05/0.2603, allocations: 113.8 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-06/0.2603, allocations: 0 / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.099e-05/0.2604, allocations: 48.69 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2604, allocations: 0 / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2604, allocations: 0 / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2604, allocations: 4.031 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.2605, allocations: 153.6 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2605, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.689e-05/0.2605, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2605, allocations: 0 / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.2605, allocations: 11.94 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.2606, allocations: 0 / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2606, allocations: 0 / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.841e-05/0.2606, allocations: 61.06 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.778e-05/0.2607, allocations: 77.11 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.078e-05/0.2607, allocations: 11.88 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.909e-06/0.2607, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.358e-06/0.2607, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.2607, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.083e-05/0.2608, allocations: 79.28 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2608, allocations: 0 / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001762/0.2609, allocations: 8 kB / 1.067 GB, free: 11.22 MB / 0.8262 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.0003805/0.2613, allocations: 0.601 MB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.454e-05/0.2614, allocations: 11.92 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.2614, allocations: 0 / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.264e-06/0.2614, allocations: 0 / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.2616, allocations: 4.156 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002762/0.2618, allocations: 114.6 kB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.2621, allocations: 0.6768 MB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.207e-05/0.2621, allocations: 0 / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.215e-05/0.2622, allocations: 7.438 kB / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.2622, allocations: 8 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.332/1.594, allocations: 0.9939 MB / 1.069 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/14.29, allocations: 12 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_Polynomial_fmu --startTime=0 --stopTime=4 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_Polynomial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches