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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.958/1.958, allocations: 387.2 MB / 394.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 196.5 kB / 487 MB, free: 5.305 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 221.3 MB / 0.7819 GB, free: 1.457 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009486/0.0009485, allocations: 94.12 kB / 0.9213 GB, free: 2.719 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.198e-06/9.388e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2426, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6774/0.92, allocations: 147.7 MB / 1.349 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.9202, allocations: 76.27 kB / 1.35 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.0009801/0.9212, allocations: 169 kB / 1.35 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.9213, allocations: 0.5938 kB / 1.35 GB, free: 15.89 MB / 0.8073 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.0001746/0.9214, allocations: 303.8 kB / 1.35 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.9215, allocations: 10.62 kB / 1.35 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.549e-05/0.9215, allocations: 0 / 1.35 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.649e-05/0.9216, allocations: 161.1 kB / 1.35 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.9216, allocations: 3.984 kB / 1.35 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.9216, allocations: 7.188 kB / 1.35 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.334e-05/0.9217, allocations: 5.219 kB / 1.35 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.906e-05/0.9217, allocations: 35.53 kB / 1.35 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.9217, allocations: 1.188 kB / 1.35 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.236e-06/0.9217, allocations: 0 / 1.35 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.9218, allocations: 0 / 1.35 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.548e-05/0.9218, allocations: 125.4 kB / 1.35 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.133e-05/0.9219, allocations: 15.7 kB / 1.35 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.9219, allocations: 6.172 kB / 1.35 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.9219, allocations: 6.594 kB / 1.35 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.922, allocations: 32.25 kB / 1.35 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.922, allocations: 1.281 kB / 1.35 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 0.0001468/0.9221, allocations: 42.5 kB / 1.35 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.215e-05/0.9222, allocations: 54.56 kB / 1.35 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.689e-05/0.9222, allocations: 86.34 kB / 1.351 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 5.961e-06/0.9222, allocations: 25.7 kB / 1.351 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.362e-05/0.9222, allocations: 80.14 kB / 1.351 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.9222, allocations: 5.344 kB / 1.351 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.9222, allocations: 1.641 kB / 1.351 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.286e-05/0.9223, allocations: 313 kB / 1.351 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.674e-06/0.9223, allocations: 1.344 kB / 1.351 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.653e-06/0.9223, allocations: 1.25 kB / 1.351 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.226e-05/0.9224, allocations: 1.344 kB / 1.351 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.9224, allocations: 1.344 kB / 1.351 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.495e-05/0.9225, allocations: 41 kB / 1.351 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.9225, allocations: 13.19 kB / 1.351 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.9225, allocations: 0 / 1.351 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.9225, allocations: 3.938 kB / 1.351 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.784e-05/0.9226, allocations: 2.594 kB / 1.351 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.9226, allocations: 1.688 kB / 1.351 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.419e-05/0.9226, allocations: 5.125 kB / 1.351 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.9226, allocations: 1.344 kB / 1.351 GB, free: 14.41 MB / 0.8073 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 () * 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 5.374e-05/0.9227, allocations: 102.3 kB / 1.351 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.9227, allocations: 7.922 kB / 1.351 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.9228, allocations: 42.2 kB / 1.351 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.9229, allocations: 1.312 kB / 1.351 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.9229, allocations: 1.125 kB / 1.351 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.9229, allocations: 0 / 1.351 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.127e-05/0.9229, allocations: 125.1 kB / 1.351 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.923, allocations: 4.031 kB / 1.351 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.05e-05/0.923, allocations: 5.906 kB / 1.351 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.923, allocations: 1.359 kB / 1.351 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.923, allocations: 5.25 kB / 1.351 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.923, allocations: 0 / 1.351 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.923, allocations: 7.875 kB / 1.351 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.875e-05/0.9231, allocations: 53.84 kB / 1.351 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.465e-05/0.9231, allocations: 79.95 kB / 1.351 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.9232, allocations: 4 kB / 1.351 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.258e-05/0.9232, allocations: 3.906 kB / 1.351 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.159e-05/0.9232, allocations: 2.75 kB / 1.351 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.9232, allocations: 3.062 kB / 1.351 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.315e-05/0.9232, allocations: 78.72 kB / 1.352 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000191/0.9234, allocations: 9.25 kB / 1.352 GB, free: 13.86 MB / 0.8073 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 () * 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.000185/0.9236, allocations: 102.8 kB / 1.352 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.451e-05/0.9237, allocations: 7.75 kB / 1.352 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.9237, allocations: 0 / 1.352 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.06e-05/0.9237, allocations: 7.141 kB / 1.352 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.602e-05/0.9238, allocations: 1.25 kB / 1.352 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001576/0.924, allocations: 41.11 kB / 1.352 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.9243, allocations: 0.6829 MB / 1.352 GB, free: 29 MB / 0.823 GB Notification: Performance of SimCode: time 6.51e-07/0.9243, allocations: 4.125 kB / 1.352 GB, free: 29 MB / 0.823 GB Notification: Performance of Templates: time 0.002589/0.9269, allocations: 307.3 kB / 1.353 GB, free: 28.95 MB / 0.823 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","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches