Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) [: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/BuildingSystems 2.0.0-master/package.mo): time 0.6931/0.6931, allocations: 141.8 MB / 149.1 MB, free: 4.344 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 181.6 kB / 181.9 MB, free: 12 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 221.3 MB / 436 MB, free: 8.828 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009217/0.0009216, allocations: 100.1 kB / 0.507 GB, free: 24.46 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001765/0.001765, allocations: 289.7 kB / 0.5884 GB, free: 12.16 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1704/0.1722, allocations: 89.63 MB / 0.676 GB, free: 2.438 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.5074, allocations: 82.77 MB / 0.7568 GB, free: 112.7 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1106/0.618, allocations: 107.8 MB / 0.8621 GB, free: 4.77 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.6183, allocations: 71.94 kB / 0.8622 GB, free: 4.703 MB / 0.5263 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.002414/0.6207, allocations: 0.8334 MB / 0.863 GB, free: 3.844 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.6208, allocations: 8 kB / 0.863 GB, free: 3.836 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.6208, allocations: 3.906 kB / 0.863 GB, free: 3.832 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.219e-05/0.6209, allocations: 163.1 kB / 0.8632 GB, free: 3.633 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.6209, allocations: 0.75 kB / 0.8632 GB, free: 3.633 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.6209, allocations: 0 / 0.8632 GB, free: 3.633 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.483e-05/0.621, allocations: 16.67 kB / 0.8632 GB, free: 3.617 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.609e-05/0.6211, allocations: 42.42 kB / 0.8632 GB, free: 3.57 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.6211, allocations: 0 / 0.8632 GB, free: 3.57 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.6211, allocations: 0 / 0.8632 GB, free: 3.57 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.6211, allocations: 0.5938 kB / 0.8632 GB, free: 3.57 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003393/0.6215, allocations: 253.5 kB / 0.8635 GB, free: 3.289 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 4.972e-05/0.6215, allocations: 30.61 kB / 0.8635 GB, free: 3.25 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.464e-05/0.6216, allocations: 21.8 kB / 0.8635 GB, free: 3.227 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 4.073e-05/0.6216, allocations: 0.9062 kB / 0.8635 GB, free: 3.227 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.6216, allocations: 30.56 kB / 0.8635 GB, free: 3.188 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.6216, allocations: 7.094 kB / 0.8635 GB, free: 3.184 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2): time 0.0001832/0.6218, allocations: 42.28 kB / 0.8636 GB, free: 3.137 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.767e-05/0.6218, allocations: 59.84 kB / 0.8636 GB, free: 3.066 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.969e-05/0.6219, allocations: 93.56 kB / 0.8637 GB, free: 2.969 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 8.305e-06/0.6219, allocations: 30.72 kB / 0.8638 GB, free: 2.934 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 1.821e-05/0.6219, allocations: 84.14 kB / 0.8638 GB, free: 2.848 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.622, allocations: 8.594 kB / 0.8639 GB, free: 2.84 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.622, allocations: 0 / 0.8639 GB, free: 2.84 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 3.939e-05/0.622, allocations: 316.2 kB / 0.8642 GB, free: 2.523 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.665e-05/0.622, allocations: 4 kB / 0.8642 GB, free: 2.52 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.482e-05/0.6221, allocations: 11.98 kB / 0.8642 GB, free: 2.508 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.172e-05/0.6221, allocations: 9.062 kB / 0.8642 GB, free: 2.5 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.6221, allocations: 3.906 kB / 0.8642 GB, free: 2.496 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.604e-05/0.6222, allocations: 46.34 kB / 0.8642 GB, free: 2.445 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.6222, allocations: 8.656 kB / 0.8642 GB, free: 2.438 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.6222, allocations: 0 / 0.8642 GB, free: 2.438 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.6223, allocations: 4.75 kB / 0.8642 GB, free: 2.434 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.6224, allocations: 13.27 kB / 0.8642 GB, free: 2.422 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.6224, allocations: 0.7188 kB / 0.8643 GB, free: 2.422 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.838e-05/0.6224, allocations: 13.16 kB / 0.8643 GB, free: 2.41 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.6225, allocations: 8.469 kB / 0.8643 GB, free: 2.406 MB / 0.5263 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 4.913e-05/0.6225, allocations: 108.9 kB / 0.8644 GB, free: 2.293 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.6226, allocations: 4.719 kB / 0.8644 GB, free: 2.289 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.6227, allocations: 50.31 kB / 0.8644 GB, free: 2.234 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.6227, allocations: 0 / 0.8644 GB, free: 2.234 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.6227, allocations: 3.906 kB / 0.8644 GB, free: 2.23 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.6227, allocations: 7.156 kB / 0.8644 GB, free: 2.227 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.926e-05/0.6228, allocations: 139.3 kB / 0.8646 GB, free: 2.055 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.6228, allocations: 4 kB / 0.8646 GB, free: 2.051 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.981e-05/0.6229, allocations: 13.89 kB / 0.8646 GB, free: 2.039 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.6229, allocations: 4 kB / 0.8646 GB, free: 2.035 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.6229, allocations: 0 / 0.8646 GB, free: 2.035 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.6229, allocations: 1.031 kB / 0.8646 GB, free: 2.035 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.6229, allocations: 0 / 0.8646 GB, free: 2.035 MB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001053/0.6231, allocations: 148.6 kB / 0.8647 GB, free: 1.875 MB / 0.5263 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001404/0.6232, allocations: 0.5146 MB / 0.8652 GB, free: 1.344 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 1.811e-05/0.6232, allocations: 81.11 kB / 0.8653 GB, free: 1.246 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.6233, allocations: 3.906 kB / 0.8653 GB, free: 1.242 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.6234, allocations: 9.203 kB / 0.8653 GB, free: 1.234 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.6234, allocations: 5.031 kB / 0.8653 GB, free: 1.23 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.6234, allocations: 0 / 0.8653 GB, free: 1.23 MB / 0.5263 GB Notification: Performance of sort global known variables: time 2.634e-05/0.6234, allocations: 88.58 kB / 0.8654 GB, free: 1.145 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.000773/0.6242, allocations: 12 kB / 0.8654 GB, free: 1.133 MB / 0.5263 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.0001695/0.6244, allocations: 107.2 kB / 0.8655 GB, free: 1.023 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 9.107e-05/0.6245, allocations: 20.16 kB / 0.8655 GB, free: 1.004 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6245, allocations: 4.062 kB / 0.8656 GB, free: 1 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 2.05e-05/0.6245, allocations: 8 kB / 0.8656 GB, free: 0.9922 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001652/0.6247, allocations: 3.984 kB / 0.8656 GB, free: 0.9883 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002244/0.6249, allocations: 68.5 kB / 0.8656 GB, free: 0.8984 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.6251, allocations: 0.6958 MB / 0.8663 GB, free: 180 kB / 0.5263 GB Notification: Performance of SimCode: time 2.41e-07/0.6251, allocations: 0 / 0.8663 GB, free: 180 kB / 0.5263 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe 2>&1)