Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.008414/0.008415, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001872/0.001872, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.535/1.535, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8395/0.8395, allocations: 132.2 MB / 422.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 74.39 kB / 0.5809 GB, free: 23.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1661, allocations: 80.21 MB / 0.6592 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.002042/0.1682, allocations: 0.5931 MB / 0.6598 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1704, allocations: 1.457 MB / 0.6612 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.632e-05/0.1704, allocations: 0 / 0.6612 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.091e-05/0.1705, allocations: 7.938 kB / 0.6612 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.735e-05/0.1705, allocations: 0 / 0.6612 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005707/0.1711, allocations: 135.4 kB / 0.6614 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.394e-05/0.1712, allocations: 31.91 kB / 0.6614 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.481e-05/0.1712, allocations: 8 kB / 0.6614 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.594e-05/0.1713, allocations: 15.98 kB / 0.6614 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.241e-05/0.1714, allocations: 23.89 kB / 0.6615 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.1714, allocations: 4 kB / 0.6615 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000528/0.172, allocations: 315.4 kB / 0.6618 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.607e-05/0.172, allocations: 19.91 kB / 0.6618 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.755e-05/0.172, allocations: 3.984 kB / 0.6618 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.1724, allocations: 191.7 kB / 0.662 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1724, allocations: 0 / 0.662 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1724, allocations: 4 kB / 0.662 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.1724, allocations: 0 / 0.662 GB, free: 7.879 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006108/0.173, allocations: 367.1 kB / 0.6623 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1731, allocations: 8.031 kB / 0.6623 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.912e-05/0.1731, allocations: 34.69 kB / 0.6624 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004716/0.1736, allocations: 72.8 kB / 0.6624 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.1738, allocations: 160.4 kB / 0.6626 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.1738, allocations: 4.375 kB / 0.6626 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.1738, allocations: 4.359 kB / 0.6626 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002927/0.1741, allocations: 81.77 kB / 0.6627 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1742, allocations: 3.938 kB / 0.6627 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1742, allocations: 0 / 0.6627 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1742, allocations: 4 kB / 0.6627 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003029/0.1745, allocations: 63.92 kB / 0.6627 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002047/0.1747, allocations: 157.7 kB / 0.6629 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006015/0.1753, allocations: 126.5 kB / 0.663 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.1755, allocations: 48.91 kB / 0.6631 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000471/0.176, allocations: 149 kB / 0.6632 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.176, allocations: 42.5 kB / 0.6632 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.263e-06/0.176, allocations: 0 / 0.6632 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.0012/0.1772, allocations: 406.4 kB / 0.6636 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.1773, allocations: 51.41 kB / 0.6637 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.1774, allocations: 101.8 kB / 0.6638 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.1774, allocations: 25.7 kB / 0.6638 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.628e-05/0.1774, allocations: 80.14 kB / 0.6639 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.471e-05/0.1775, allocations: 19.98 kB / 0.6639 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/0.1775, allocations: 21.7 kB / 0.6639 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1777, allocations: 314.8 kB / 0.6642 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.1778, allocations: 39.91 kB / 0.6642 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.178, allocations: 35.97 kB / 0.6643 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/0.1783, allocations: 76.8 kB / 0.6644 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-07/0.1783, allocations: 0 / 0.6644 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003759/0.1787, allocations: 125.8 kB / 0.6645 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1787, allocations: 4 kB / 0.6645 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.1788, allocations: 0 / 0.6645 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1788, allocations: 3.938 kB / 0.6645 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.1789, allocations: 27.91 kB / 0.6645 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.1789, allocations: 0 / 0.6645 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.179, allocations: 15.98 kB / 0.6645 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.1791, allocations: 4 kB / 0.6645 GB, free: 4.957 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 (6): * Single equations (assignments): 6 * 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 8.462e-05/0.1792, allocations: 109.8 kB / 0.6646 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/0.1792, allocations: 7.938 kB / 0.6646 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004644/0.1796, allocations: 133.2 kB / 0.6648 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1797, allocations: 0 / 0.6648 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1797, allocations: 3.938 kB / 0.6648 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1797, allocations: 0 / 0.6648 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.1798, allocations: 177.6 kB / 0.6649 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1799, allocations: 3.938 kB / 0.6649 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.18, allocations: 27.91 kB / 0.665 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.18, allocations: 0 / 0.665 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.18, allocations: 0 / 0.665 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.1801, allocations: 8 kB / 0.665 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.1801, allocations: 3.984 kB / 0.665 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/0.1807, allocations: 173 kB / 0.6651 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.44e-05/0.1808, allocations: 93.06 kB / 0.6652 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.1808, allocations: 3.984 kB / 0.6652 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.1809, allocations: 16.05 kB / 0.6653 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.53e-05/0.1809, allocations: 4 kB / 0.6653 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.181, allocations: 192 / 0.6653 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.648e-05/0.181, allocations: 87.27 kB / 0.6653 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.181, allocations: 0 / 0.6653 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002346/0.1812, allocations: 27.88 kB / 0.6654 GB, free: 3.984 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y_comp) * 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 (6): * Single equations (assignments): 6 * 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.001/0.1823, allocations: 0.7567 MB / 0.6661 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000384/0.1826, allocations: 83.94 kB / 0.6662 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1827, allocations: 0 / 0.6662 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.1828, allocations: 43.95 kB / 0.6662 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001489/0.183, allocations: 4 kB / 0.6662 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.1852, allocations: 1.36 MB / 0.6676 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.1855, allocations: 0.6828 MB / 0.6682 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000101/0.1857, allocations: 20 kB / 0.6682 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.368e-05/0.1857, allocations: 15.44 kB / 0.6683 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of SimCode: time 3.91e-07/0.1857, allocations: 3.938 kB / 0.6683 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.2105, allocations: 2.053 MB / 0.6703 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/8.04, allocations: 9.016 kB / 0.6703 GB, free: 14.95 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)