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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: translateModel(BuildingSystems.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial") translateModel(BuildingSystems.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005681/0.005681, allocations: 102.5 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 196.8 kB / 16.68 MB, free: 5.961 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001989/0.001989, allocations: 282.8 kB / 290.8 MB, free: 1.758 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9315/0.9315, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 104.1 kB / 0.6815 GB, free: 15.47 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1567, allocations: 86.99 MB / 0.7664 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.002351/0.1591, allocations: 1.431 MB / 0.7678 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002802/0.1594, allocations: 88.59 kB / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.1594, allocations: 4 kB / 0.7679 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.1e-05/0.1595, allocations: 3.984 kB / 0.7679 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.262e-05/0.1596, allocations: 3.938 kB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.1599, allocations: 19.98 kB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.508e-05/0.16, allocations: 19.92 kB / 0.7679 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.1601, allocations: 11.98 kB / 0.7679 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.569e-05/0.1602, allocations: 11.92 kB / 0.768 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.157e-05/0.1602, allocations: 8 kB / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.1603, allocations: 0 / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.1604, allocations: 27.92 kB / 0.768 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.704e-05/0.1605, allocations: 11.92 kB / 0.768 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.005e-05/0.1605, allocations: 11.94 kB / 0.768 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.1607, allocations: 39.88 kB / 0.768 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1607, allocations: 0 / 0.768 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1607, allocations: 0 / 0.768 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.1607, allocations: 4 kB / 0.7681 GB, free: 6.703 MB / 0.5606 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.0005321/0.1612, allocations: 339.4 kB / 0.7684 GB, free: 6.32 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.1613, allocations: 12.03 kB / 0.7684 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.728e-05/0.1614, allocations: 8.844 kB / 0.7684 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.1615, allocations: 168.4 kB / 0.7686 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.1615, allocations: 384 / 0.7686 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.1615, allocations: 384 / 0.7686 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.1618, allocations: 54.17 kB / 0.7686 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1618, allocations: 4.172 kB / 0.7686 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.1618, allocations: 7.938 kB / 0.7686 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1618, allocations: 4 kB / 0.7686 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.162, allocations: 35.97 kB / 0.7687 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003964/0.1624, allocations: 253 kB / 0.7689 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.1626, allocations: 46.48 kB / 0.7689 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.692e-05/0.1627, allocations: 20.91 kB / 0.769 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.767e-05/0.1627, allocations: 7.938 kB / 0.769 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.1628, allocations: 34.56 kB / 0.769 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.382e-06/0.1628, allocations: 0 / 0.769 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003707/0.1631, allocations: 89.55 kB / 0.7691 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1632, allocations: 51.41 kB / 0.7691 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.319e-05/0.1633, allocations: 110 kB / 0.7692 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.1633, allocations: 29.7 kB / 0.7693 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.625e-05/0.1633, allocations: 88.02 kB / 0.7694 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.1634, allocations: 11.89 kB / 0.7694 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.1634, allocations: 13.72 kB / 0.7694 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1635, allocations: 310.8 kB / 0.7697 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.232e-05/0.1636, allocations: 19.98 kB / 0.7697 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.947e-05/0.1637, allocations: 23.91 kB / 0.7697 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.1638, allocations: 44.83 kB / 0.7698 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1638, allocations: 0 / 0.7698 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001926/0.164, allocations: 69.59 kB / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1641, allocations: 11.94 kB / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1641, allocations: 96 / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1641, allocations: 4 kB / 0.7698 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.387e-05/0.1642, allocations: 7.984 kB / 0.7699 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1642, allocations: 0 / 0.7699 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.183e-05/0.1642, allocations: 7.984 kB / 0.7699 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.1642, allocations: 4 kB / 0.7699 GB, free: 4.621 MB / 0.5606 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 (2): * Single equations (assignments): 2 * 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 7.081e-05/0.1643, allocations: 118.4 kB / 0.77 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.556e-05/0.1644, allocations: 4 kB / 0.77 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00022/0.1646, allocations: 73.19 kB / 0.77 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1646, allocations: 0 / 0.77 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1646, allocations: 0 / 0.77 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1646, allocations: 0 / 0.77 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001485/0.1648, allocations: 169.6 kB / 0.7702 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1648, allocations: 0 / 0.7702 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.373e-05/0.1648, allocations: 7.984 kB / 0.7702 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.1648, allocations: 4 kB / 0.7702 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.1648, allocations: 0 / 0.7702 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1649, allocations: 4.281 kB / 0.7702 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1649, allocations: 0 / 0.7702 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002132/0.1651, allocations: 175.3 kB / 0.7704 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.094e-05/0.1651, allocations: 81.11 kB / 0.7705 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.1651, allocations: 0 / 0.7705 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.252e-05/0.1652, allocations: 12.02 kB / 0.7705 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.1652, allocations: 0 / 0.7705 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.1653, allocations: 4 kB / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.811e-05/0.1653, allocations: 87.27 kB / 0.7706 GB, free: 3.797 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1653, allocations: 0 / 0.7706 GB, free: 3.797 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002256/0.1655, allocations: 8 kB / 0.7706 GB, free: 3.789 MB / 0.5606 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 (2): * Single equations (assignments): 2 * 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.0001312/0.1657, allocations: 99.25 kB / 0.7707 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001913/0.1659, allocations: 47.89 kB / 0.7707 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1659, allocations: 0 / 0.7707 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 7.726e-05/0.166, allocations: 19.98 kB / 0.7707 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.1662, allocations: 15.86 kB / 0.7708 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002693/0.1665, allocations: 113.5 kB / 0.7709 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.1667, allocations: 0.6845 MB / 0.7715 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.29e-05/0.1668, allocations: 4.125 kB / 0.7715 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.941e-05/0.1668, allocations: 7.438 kB / 0.7715 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.1668, allocations: 0 / 0.7715 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of Templates: time 0.00249/0.1693, allocations: 0.5628 MB / 0.7721 GB, free: 2.184 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe 2>&1)