Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.7482/0.7482, allocations: 141.8 MB / 149.1 MB, free: 3.574 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.00115/0.001151, allocations: 186.2 kB / 181.9 MB, free: 15.36 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 221.3 MB / 436 MB, free: 8.562 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.0009768/0.0009768, allocations: 89.59 kB / 0.507 GB, free: 24.24 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001781/0.001782, allocations: 265.7 kB / 0.5884 GB, free: 11.55 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1745/0.1763, allocations: 89.65 MB / 0.676 GB, free: 1.816 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.5289, allocations: 82.77 MB / 0.7568 GB, free: 112 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1073/0.6362, allocations: 107.1 MB / 0.8614 GB, free: 4.793 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001738/0.6364, allocations: 72.53 kB / 0.8615 GB, free: 4.727 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.001081/0.6375, allocations: 482.4 kB / 0.8619 GB, free: 4.215 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.6376, allocations: 8.625 kB / 0.862 GB, free: 4.207 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.663e-05/0.6376, allocations: 5.719 kB / 0.862 GB, free: 4.203 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.605e-05/0.6377, allocations: 167 kB / 0.8621 GB, free: 4 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.6377, allocations: 0 / 0.8621 GB, free: 4 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.6377, allocations: 4 kB / 0.8621 GB, free: 3.996 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.33e-05/0.6377, allocations: 0.6562 kB / 0.8621 GB, free: 3.996 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.59e-05/0.6378, allocations: 30.42 kB / 0.8622 GB, free: 3.961 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.6378, allocations: 4.922 kB / 0.8622 GB, free: 3.957 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.754e-06/0.6378, allocations: 4.75 kB / 0.8622 GB, free: 3.953 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.6378, allocations: 0 / 0.8622 GB, free: 3.953 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.403e-05/0.6379, allocations: 127.8 kB / 0.8623 GB, free: 3.793 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 2.556e-05/0.638, allocations: 18.56 kB / 0.8623 GB, free: 3.766 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.464e-05/0.638, allocations: 9.703 kB / 0.8623 GB, free: 3.754 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.638, allocations: 4.531 kB / 0.8623 GB, free: 3.75 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.638, allocations: 31.28 kB / 0.8623 GB, free: 3.711 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.638, allocations: 0.7812 kB / 0.8623 GB, free: 3.711 MB / 0.5263 GB Notification: Performance of matching and sorting (n=1): time 0.0001412/0.6382, allocations: 33.61 kB / 0.8624 GB, free: 3.672 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.716e-05/0.6382, allocations: 57.19 kB / 0.8624 GB, free: 3.605 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.665e-05/0.6382, allocations: 85 kB / 0.8625 GB, free: 3.516 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 7.734e-06/0.6383, allocations: 26.23 kB / 0.8625 GB, free: 3.484 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 1.296e-05/0.6383, allocations: 80.98 kB / 0.8626 GB, free: 3.402 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.6383, allocations: 4 kB / 0.8626 GB, free: 3.398 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.6383, allocations: 0.5312 kB / 0.8626 GB, free: 3.398 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 4.558e-05/0.6384, allocations: 316.4 kB / 0.8629 GB, free: 3.082 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.482e-06/0.6384, allocations: 0 / 0.8629 GB, free: 3.082 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.6384, allocations: 4.656 kB / 0.8629 GB, free: 3.078 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.194e-05/0.6384, allocations: 1.344 kB / 0.8629 GB, free: 3.078 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.6384, allocations: 0 / 0.8629 GB, free: 3.078 MB / 0.5263 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.153e-05/0.6385, allocations: 41.55 kB / 0.863 GB, free: 3.031 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/0.6385, allocations: 5.375 kB / 0.863 GB, free: 3.027 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.6385, allocations: 3.938 kB / 0.863 GB, free: 3.023 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.6385, allocations: 0 / 0.863 GB, free: 3.023 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.31e-05/0.6386, allocations: 10.48 kB / 0.863 GB, free: 3.016 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.6386, allocations: 0 / 0.863 GB, free: 3.016 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.283e-05/0.6386, allocations: 3.938 kB / 0.863 GB, free: 3.012 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.6386, allocations: 0.5312 kB / 0.863 GB, free: 3.012 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 (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 3.683e-05/0.6387, allocations: 102 kB / 0.8631 GB, free: 2.906 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.102e-06/0.6387, allocations: 4 kB / 0.8631 GB, free: 2.902 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.6388, allocations: 47.91 kB / 0.8631 GB, free: 2.855 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.6388, allocations: 0 / 0.8631 GB, free: 2.855 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.6388, allocations: 4 kB / 0.8631 GB, free: 2.852 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.6388, allocations: 4.5 kB / 0.8631 GB, free: 2.848 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.829e-05/0.6389, allocations: 127.2 kB / 0.8633 GB, free: 2.688 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.6389, allocations: 0 / 0.8633 GB, free: 2.688 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.738e-05/0.6389, allocations: 4 kB / 0.8633 GB, free: 2.684 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.6389, allocations: 0.7188 kB / 0.8633 GB, free: 2.684 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.6389, allocations: 3.984 kB / 0.8633 GB, free: 2.68 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.6389, allocations: 2.094 kB / 0.8633 GB, free: 2.68 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6389, allocations: 3.906 kB / 0.8633 GB, free: 2.676 MB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.91e-05/0.639, allocations: 55.02 kB / 0.8633 GB, free: 2.605 MB / 0.5263 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 9.984e-05/0.6391, allocations: 443.1 kB / 0.8638 GB, free: 2.152 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 1.527e-05/0.6391, allocations: 81.64 kB / 0.8638 GB, free: 2.055 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.6392, allocations: 4.719 kB / 0.8638 GB, free: 2.051 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.191e-05/0.6392, allocations: 0 / 0.8638 GB, free: 2.051 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.157e-06/0.6392, allocations: 0.5312 kB / 0.8638 GB, free: 2.051 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.6392, allocations: 5.016 kB / 0.8638 GB, free: 2.047 MB / 0.5263 GB Notification: Performance of sort global known variables: time 1.125e-05/0.6392, allocations: 75.28 kB / 0.8639 GB, free: 1.973 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.0007891/0.64, allocations: 9.094 kB / 0.8639 GB, free: 1.965 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 (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.0001447/0.6402, allocations: 107.2 kB / 0.864 GB, free: 1.848 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 4.735e-05/0.6402, allocations: 5.188 kB / 0.864 GB, free: 1.844 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.6402, allocations: 0 / 0.864 GB, free: 1.844 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 6.352e-06/0.6402, allocations: 4.719 kB / 0.864 GB, free: 1.84 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.938e-05/0.6403, allocations: 7.188 kB / 0.864 GB, free: 1.836 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001265/0.6405, allocations: 52.69 kB / 0.8641 GB, free: 1.762 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.6406, allocations: 0.6814 MB / 0.8648 GB, free: 1.055 MB / 0.5263 GB Notification: Performance of SimCode: time 2.71e-07/0.6406, allocations: 0.5312 kB / 0.8648 GB, free: 1.055 MB / 0.5263 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)