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/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.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.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.921/1.921, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001141/0.001141, allocations: 181.2 kB / 487 MB, free: 5.371 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.325/1.325, allocations: 221.3 MB / 0.7819 GB, free: 1.461 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.00102/0.00102, allocations: 96.61 kB / 0.9213 GB, free: 2.703 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.045e-06/8.075e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2576, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7168/0.9745, allocations: 148.4 MB / 1.35 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.9748, allocations: 69.98 kB / 1.35 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.00222/0.977, allocations: 0.494 MB / 1.351 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.977, allocations: 0 / 1.351 GB, free: 15.82 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002655/0.9773, allocations: 336.2 kB / 1.351 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.9773, allocations: 10.77 kB / 1.351 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.9774, allocations: 5.188 kB / 1.351 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.836e-05/0.9774, allocations: 161.9 kB / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.9775, allocations: 0 / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.9775, allocations: 1.375 kB / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.847e-05/0.9776, allocations: 23.39 kB / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.248e-05/0.9776, allocations: 38.36 kB / 1.351 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.433e-06/0.9776, allocations: 3.938 kB / 1.351 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.9777, allocations: 0 / 1.351 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.9777, allocations: 2.75 kB / 1.351 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003482/0.978, allocations: 255.2 kB / 1.352 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.269e-05/0.9781, allocations: 27.97 kB / 1.352 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.69e-05/0.9781, allocations: 21.14 kB / 1.352 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.9782, allocations: 1.312 kB / 1.352 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.47e-05/0.9782, allocations: 33.41 kB / 1.352 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/0.9782, allocations: 4 kB / 1.352 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001774/0.9784, allocations: 48.03 kB / 1.352 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.753e-05/0.9784, allocations: 51.41 kB / 1.352 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.035e-05/0.9785, allocations: 98.09 kB / 1.352 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.636e-06/0.9785, allocations: 25.7 kB / 1.352 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.966e-05/0.9785, allocations: 88.08 kB / 1.352 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.9785, allocations: 8.719 kB / 1.352 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-06/0.9785, allocations: 0.75 kB / 1.352 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.345e-05/0.9786, allocations: 322.4 kB / 1.352 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.823e-05/0.9786, allocations: 9.125 kB / 1.352 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.407e-05/0.9786, allocations: 4.281 kB / 1.352 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.089e-05/0.9787, allocations: 9.781 kB / 1.352 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.9787, allocations: 0.9062 kB / 1.352 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.619e-05/0.9788, allocations: 46.14 kB / 1.352 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.347e-06/0.9788, allocations: 4.125 kB / 1.352 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.9788, allocations: 5.312 kB / 1.352 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.847e-06/0.9788, allocations: 0 / 1.352 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.643e-05/0.9789, allocations: 21.44 kB / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.266e-06/0.9789, allocations: 0 / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.794e-05/0.979, allocations: 13.36 kB / 1.352 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.979, allocations: 1.281 kB / 1.352 GB, free: 14.24 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 (2): * Single equations (assignments): 2 * 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 3.936e-05/0.979, allocations: 108.7 kB / 1.352 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.617e-05/0.9791, allocations: 6.625 kB / 1.352 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.9792, allocations: 59.64 kB / 1.352 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.9792, allocations: 1.25 kB / 1.352 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.155e-06/0.9792, allocations: 0 / 1.352 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.9792, allocations: 0 / 1.352 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.9793, allocations: 138.2 kB / 1.353 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.9793, allocations: 1.688 kB / 1.353 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.047e-05/0.9794, allocations: 19.23 kB / 1.353 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.9794, allocations: 1.406 kB / 1.353 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.9794, allocations: 3.938 kB / 1.353 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.9794, allocations: 2.969 kB / 1.353 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.9795, allocations: 7.844 kB / 1.353 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.874e-05/0.9796, allocations: 135.6 kB / 1.353 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.511e-05/0.9796, allocations: 87.84 kB / 1.353 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.9796, allocations: 1.469 kB / 1.353 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.884e-05/0.9797, allocations: 9.016 kB / 1.353 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.654e-05/0.9797, allocations: 2.688 kB / 1.353 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.9797, allocations: 5.938 kB / 1.353 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.288e-05/0.9798, allocations: 80.8 kB / 1.353 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002244/0.98, allocations: 8.156 kB / 1.353 GB, free: 13.61 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 (2): * Single equations (assignments): 2 * 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.0001247/0.9801, allocations: 111.8 kB / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.227e-05/0.9802, allocations: 16.59 kB / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.9802, allocations: 0 / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.21e-05/0.9802, allocations: 14.41 kB / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001438/0.9804, allocations: 9.219 kB / 1.353 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000179/0.9806, allocations: 61.69 kB / 1.353 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.9807, allocations: 0.6952 MB / 1.354 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of SimCode: time 2.4e-07/0.9807, allocations: 0 / 1.354 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of Templates: time 0.002278/0.983, allocations: 0.5104 MB / 1.354 GB, free: 12.69 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches