Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_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.006247/0.006247, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001235/0.001235, allocations: 197.2 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.312/1.312, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.86/0.86, allocations: 132.2 MB / 422.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 74.3 kB / 0.5809 GB, free: 24.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1517, allocations: 80.2 MB / 0.6592 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Polynomial): time 0.002623/0.1543, allocations: 0.5843 MB / 0.6598 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002867/0.1547, allocations: 31.88 kB / 0.6598 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.285e-05/0.1547, allocations: 0 / 0.6598 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.285e-05/0.1547, allocations: 0 / 0.6598 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.762e-06/0.1548, allocations: 0 / 0.6598 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003054/0.1551, allocations: 15.94 kB / 0.6598 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.219e-05/0.1551, allocations: 7.969 kB / 0.6598 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.758e-05/0.1552, allocations: 4 kB / 0.6599 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.798e-05/0.1552, allocations: 0 / 0.6599 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.2e-05/0.1553, allocations: 3.938 kB / 0.6599 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.1553, allocations: 7.938 kB / 0.6599 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.1554, allocations: 15.98 kB / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.1555, allocations: 0 / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.202e-05/0.1555, allocations: 4 kB / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.1556, allocations: 19.95 kB / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1557, allocations: 0 / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.044e-06/0.1557, allocations: 0 / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.1557, allocations: 0 / 0.6599 GB, free: 10.02 MB / 0.4981 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.0003787/0.1561, allocations: 315.8 kB / 0.6602 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/0.1561, allocations: 12.03 kB / 0.6602 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.055e-05/0.1562, allocations: 34.75 kB / 0.6602 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.1562, allocations: 0.9375 kB / 0.6602 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.1564, allocations: 164.4 kB / 0.6604 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1564, allocations: 4.312 kB / 0.6604 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.1564, allocations: 384 / 0.6604 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.1565, allocations: 32.81 kB / 0.6604 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1566, allocations: 3.938 kB / 0.6604 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.1566, allocations: 0 / 0.6604 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.1566, allocations: 0 / 0.6604 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.447e-05/0.1566, allocations: 8 kB / 0.6605 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002291/0.1569, allocations: 153.7 kB / 0.6606 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.921e-05/0.157, allocations: 18.52 kB / 0.6606 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.926e-05/0.157, allocations: 12.89 kB / 0.6606 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.777e-05/0.157, allocations: 0 / 0.6606 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1571, allocations: 34.55 kB / 0.6607 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.373e-06/0.1571, allocations: 0 / 0.6607 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001717/0.1573, allocations: 45.64 kB / 0.6607 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.1573, allocations: 55.39 kB / 0.6608 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.347e-05/0.1574, allocations: 89.86 kB / 0.6608 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.1574, allocations: 25.7 kB / 0.6609 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/0.1575, allocations: 80.14 kB / 0.6609 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.1575, allocations: 3.953 kB / 0.6609 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.291e-05/0.1576, allocations: 14.06 kB / 0.661 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002495/0.1578, allocations: 314.9 kB / 0.6613 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.612e-05/0.1579, allocations: 4 kB / 0.6613 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.495e-05/0.1579, allocations: 4 kB / 0.6613 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.019e-05/0.1579, allocations: 8.859 kB / 0.6613 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1579, allocations: 0 / 0.6613 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.491e-05/0.158, allocations: 37.69 kB / 0.6613 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.1581, allocations: 4 kB / 0.6613 GB, free: 8.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.1581, allocations: 3.938 kB / 0.6613 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1581, allocations: 0 / 0.6613 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.294e-05/0.1582, allocations: 12.03 kB / 0.6613 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.078e-06/0.1582, allocations: 0 / 0.6613 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.096e-05/0.1583, allocations: 3.938 kB / 0.6613 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.1583, allocations: 0 / 0.6613 GB, free: 8.312 MB / 0.4981 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 (1): * Single equations (assignments): 1 * 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 0.0001211/0.1584, allocations: 109.8 kB / 0.6614 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.1584, allocations: 0 / 0.6614 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.1586, allocations: 48.75 kB / 0.6615 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1586, allocations: 4 kB / 0.6615 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1586, allocations: 0 / 0.6615 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.1586, allocations: 0 / 0.6615 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.1588, allocations: 145.7 kB / 0.6616 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.1589, allocations: 4 kB / 0.6616 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.022e-05/0.1589, allocations: 4 kB / 0.6616 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.1589, allocations: 0 / 0.6616 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.1589, allocations: 3.938 kB / 0.6616 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.1589, allocations: 0 / 0.6616 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1589, allocations: 3.938 kB / 0.6616 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.826e-05/0.159, allocations: 69.09 kB / 0.6617 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/0.1591, allocations: 77.11 kB / 0.6618 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.1591, allocations: 3.938 kB / 0.6618 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.095e-05/0.1592, allocations: 4 kB / 0.6618 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.473e-05/0.1592, allocations: 0 / 0.6618 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.1592, allocations: 4 kB / 0.6618 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.539e-05/0.1593, allocations: 75.31 kB / 0.6619 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.31e-07/0.1593, allocations: 4 kB / 0.6619 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003414/0.1596, allocations: 7.938 kB / 0.6619 GB, free: 7.648 MB / 0.4981 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 (1): * Single equations (assignments): 1 * 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.0005327/0.1602, allocations: 0.6007 MB / 0.6625 GB, free: 7.016 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001062/0.1603, allocations: 16.02 kB / 0.6625 GB, free: 7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1603, allocations: 0 / 0.6625 GB, free: 7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.539e-05/0.1603, allocations: 0 / 0.6625 GB, free: 7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.1606, allocations: 4 kB / 0.6625 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003992/0.161, allocations: 98.59 kB / 0.6626 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.1614, allocations: 0.6768 MB / 0.6632 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.563e-05/0.1614, allocations: 4.125 kB / 0.6632 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.314e-05/0.1614, allocations: 11.44 kB / 0.6633 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of SimCode: time 7.21e-07/0.1615, allocations: 0 / 0.6633 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.1836, allocations: 1 MB / 0.6642 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.575/7.758, allocations: 3.938 kB / 0.6642 GB, free: 5.227 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Polynomial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)