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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004488/0.004488, allocations: 96.16 kB / 15.73 MB, free: 6.043 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.001189/0.001189, allocations: 195.7 kB / 16.68 MB, free: 5.969 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002451/0.002451, allocations: 286.5 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9649/0.9649, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002537/0.002537, allocations: 93.45 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1592, allocations: 86.98 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.002386/0.1616, allocations: 1.435 MB / 0.7673 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002818/0.1619, allocations: 100.5 kB / 0.7674 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.1619, allocations: 0 / 0.7674 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.989e-05/0.162, allocations: 3.938 kB / 0.7674 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.898e-05/0.162, allocations: 0 / 0.7674 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.1622, allocations: 23.92 kB / 0.7674 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.864e-05/0.1623, allocations: 23.92 kB / 0.7675 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.712e-05/0.1624, allocations: 8 kB / 0.7675 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.818e-05/0.1624, allocations: 15.97 kB / 0.7675 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.27e-05/0.1625, allocations: 7.938 kB / 0.7675 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.308e-06/0.1625, allocations: 0 / 0.7675 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.296e-05/0.1626, allocations: 27.97 kB / 0.7675 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.061e-05/0.1626, allocations: 3.938 kB / 0.7675 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.34e-05/0.1626, allocations: 11.94 kB / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.1627, allocations: 36.17 kB / 0.7676 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1628, allocations: 0 / 0.7676 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.356e-06/0.1628, allocations: 0 / 0.7676 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.1628, allocations: 7.938 kB / 0.7676 GB, free: 7.234 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.0004531/0.1632, allocations: 343.4 kB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1633, allocations: 11.97 kB / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.327e-05/0.1633, allocations: 30.75 kB / 0.7679 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.736e-05/0.1633, allocations: 12.88 kB / 0.7679 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.1635, allocations: 164.4 kB / 0.7681 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.1635, allocations: 4.375 kB / 0.7681 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-06/0.1635, allocations: 4.375 kB / 0.7681 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001763/0.1637, allocations: 54.23 kB / 0.7682 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1637, allocations: 7.875 kB / 0.7682 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.1637, allocations: 0 / 0.7682 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-06/0.1637, allocations: 0 / 0.7682 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.1639, allocations: 39.95 kB / 0.7682 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003127/0.1642, allocations: 248.9 kB / 0.7684 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001239/0.1644, allocations: 50.53 kB / 0.7685 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.174e-05/0.1644, allocations: 24.91 kB / 0.7685 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.1645, allocations: 4 kB / 0.7685 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.1645, allocations: 34.55 kB / 0.7686 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.1645, allocations: 0 / 0.7686 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.000353/0.1649, allocations: 101.5 kB / 0.7687 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.1649, allocations: 51.41 kB / 0.7687 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.165, allocations: 101.9 kB / 0.7688 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.1651, allocations: 29.69 kB / 0.7688 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.954e-05/0.1651, allocations: 84.14 kB / 0.7689 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.1652, allocations: 11.89 kB / 0.7689 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.902e-05/0.1652, allocations: 9.844 kB / 0.7689 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1653, allocations: 318.8 kB / 0.7692 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.01e-05/0.1654, allocations: 19.97 kB / 0.7693 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.845e-05/0.1655, allocations: 19.98 kB / 0.7693 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.1656, allocations: 40.81 kB / 0.7693 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.1657, allocations: 4 kB / 0.7693 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001796/0.1658, allocations: 73.61 kB / 0.7694 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.1659, allocations: 4 kB / 0.7694 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.227e-06/0.1659, allocations: 0 / 0.7694 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.1659, allocations: 3.984 kB / 0.7694 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.873e-05/0.166, allocations: 11.94 kB / 0.7694 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.166, allocations: 0 / 0.7694 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.875e-05/0.166, allocations: 11.98 kB / 0.7694 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-06/0.1661, allocations: 4.031 kB / 0.7694 GB, free: 5.102 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.596e-05/0.1661, allocations: 114.4 kB / 0.7695 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.1662, allocations: 3.953 kB / 0.7695 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.1664, allocations: 81.11 kB / 0.7696 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1664, allocations: 0 / 0.7696 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1664, allocations: 4 kB / 0.7696 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.1664, allocations: 0 / 0.7696 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.1666, allocations: 161.6 kB / 0.7698 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1666, allocations: 0 / 0.7698 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.766e-05/0.1667, allocations: 11.98 kB / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.1667, allocations: 0 / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.1667, allocations: 256 / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1667, allocations: 4 kB / 0.7698 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1667, allocations: 3.938 kB / 0.7698 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002375/0.1669, allocations: 171.5 kB / 0.7699 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.431e-05/0.167, allocations: 81.09 kB / 0.77 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.167, allocations: 4 kB / 0.77 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.838e-05/0.1671, allocations: 3.938 kB / 0.77 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.577e-05/0.1672, allocations: 11.98 kB / 0.77 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.1672, allocations: 0 / 0.77 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.419e-05/0.1672, allocations: 79.28 kB / 0.7701 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1672, allocations: 0 / 0.7701 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002956/0.1675, allocations: 12.03 kB / 0.7701 GB, free: 4.27 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.000572/0.1681, allocations: 0.7085 MB / 0.7708 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001915/0.1683, allocations: 43.94 kB / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1683, allocations: 0 / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.029e-05/0.1684, allocations: 19.97 kB / 0.7709 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.1687, allocations: 8 kB / 0.7709 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004355/0.1692, allocations: 147 kB / 0.771 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.1695, allocations: 0.6769 MB / 0.7717 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.082e-05/0.1695, allocations: 4 kB / 0.7717 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.99e-05/0.1695, allocations: 19.38 kB / 0.7717 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of SimCode: time 2.11e-07/0.1695, allocations: 0 / 0.7717 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3245/0.494, allocations: 1.44 MB / 0.7731 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.749/9.243, allocations: 7.594 kB / 0.7731 GB, free: 1.203 MB / 0.5606 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/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)