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.005303/0.005303, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001183/0.001183, allocations: 196.6 kB / 16.68 MB, free: 5.93 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7951/0.7951, allocations: 132.2 MB / 422.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 66.98 kB / 0.5809 GB, free: 23.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1629, allocations: 80.22 MB / 0.6592 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001918/0.1649, allocations: 0.5934 MB / 0.6598 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001987/0.1669, allocations: 1.453 MB / 0.6612 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.32e-05/0.1669, allocations: 0 / 0.6612 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.752e-05/0.167, allocations: 3.938 kB / 0.6612 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.599e-05/0.167, allocations: 0 / 0.6612 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006205/0.1677, allocations: 143.5 kB / 0.6614 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.617e-05/0.1678, allocations: 27.97 kB / 0.6614 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.1678, allocations: 3.938 kB / 0.6614 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.438e-05/0.1678, allocations: 15.98 kB / 0.6614 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.643e-05/0.1679, allocations: 35.94 kB / 0.6615 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.168, allocations: 0 / 0.6615 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004599/0.1684, allocations: 315.4 kB / 0.6618 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.933e-05/0.1685, allocations: 7.922 kB / 0.6618 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.327e-05/0.1685, allocations: 15.97 kB / 0.6618 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.1688, allocations: 191.7 kB / 0.662 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1688, allocations: 0 / 0.662 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.503e-06/0.1688, allocations: 0 / 0.662 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.689e-06/0.1689, allocations: 0 / 0.662 GB, free: 7.906 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.0005727/0.1694, allocations: 367.1 kB / 0.6623 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.1695, allocations: 12.03 kB / 0.6623 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.292e-05/0.1695, allocations: 34.69 kB / 0.6624 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004786/0.17, allocations: 76.73 kB / 0.6624 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.1701, allocations: 160.4 kB / 0.6626 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.1702, allocations: 8.375 kB / 0.6626 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.1702, allocations: 4.375 kB / 0.6626 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.1705, allocations: 81.75 kB / 0.6627 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1705, allocations: 0 / 0.6627 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.1705, allocations: 3.938 kB / 0.6627 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1705, allocations: 0 / 0.6627 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003003/0.1709, allocations: 63.94 kB / 0.6627 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000193/0.1711, allocations: 165.7 kB / 0.6629 GB, free: 6.801 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006156/0.1717, allocations: 122.5 kB / 0.663 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.1719, allocations: 44.92 kB / 0.6631 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000462/0.1723, allocations: 149 kB / 0.6632 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.1724, allocations: 38.48 kB / 0.6632 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.1724, allocations: 0 / 0.6632 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.00117/0.1736, allocations: 418.1 kB / 0.6636 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.1736, allocations: 51.41 kB / 0.6637 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.768e-05/0.1737, allocations: 93.86 kB / 0.6638 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.1737, allocations: 25.7 kB / 0.6638 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.992e-05/0.1737, allocations: 80.14 kB / 0.6639 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.1738, allocations: 23.84 kB / 0.6639 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/0.1738, allocations: 17.72 kB / 0.6639 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.757e-05/0.1739, allocations: 322.9 kB / 0.6642 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.1741, allocations: 35.95 kB / 0.6643 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.1742, allocations: 35.97 kB / 0.6643 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.1746, allocations: 72.8 kB / 0.6644 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1746, allocations: 4 kB / 0.6644 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003673/0.1749, allocations: 113.6 kB / 0.6645 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.175, allocations: 4 kB / 0.6645 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.175, allocations: 4 kB / 0.6645 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.175, allocations: 4 kB / 0.6645 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.1752, allocations: 23.92 kB / 0.6645 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.1752, allocations: 0 / 0.6645 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.1753, allocations: 11.98 kB / 0.6645 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.1753, allocations: 8.234 kB / 0.6645 GB, free: 4.984 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.994e-05/0.1754, allocations: 113.8 kB / 0.6646 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.006e-05/0.1754, allocations: 3.938 kB / 0.6646 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004643/0.1759, allocations: 133.2 kB / 0.6648 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1759, allocations: 7.938 kB / 0.6648 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1759, allocations: 4 kB / 0.6648 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.176, allocations: 3.938 kB / 0.6648 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.1761, allocations: 169.6 kB / 0.6649 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.1761, allocations: 3.938 kB / 0.6649 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.1763, allocations: 23.92 kB / 0.665 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1763, allocations: 0 / 0.665 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.1763, allocations: 4 kB / 0.665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1763, allocations: 0 / 0.665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1763, allocations: 3.984 kB / 0.665 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005749/0.1769, allocations: 185 kB / 0.6651 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.852e-05/0.177, allocations: 85.03 kB / 0.6652 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.177, allocations: 4.031 kB / 0.6652 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.1771, allocations: 15.98 kB / 0.6652 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.597e-05/0.1772, allocations: 8.047 kB / 0.6653 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.1772, allocations: 4 kB / 0.6653 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.305e-05/0.1772, allocations: 75.28 kB / 0.6653 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.512e-06/0.1772, allocations: 0 / 0.6653 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002373/0.1775, allocations: 39.8 kB / 0.6654 GB, free: 4.004 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.0008959/0.1784, allocations: 0.7451 MB / 0.6661 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003717/0.1787, allocations: 91.92 kB / 0.6662 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1788, allocations: 0 / 0.6662 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.1789, allocations: 40.28 kB / 0.6662 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001647/0.1791, allocations: 6.062 kB / 0.6662 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.1811, allocations: 1.367 MB / 0.6676 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.1813, allocations: 0.6807 MB / 0.6682 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.754e-05/0.1814, allocations: 12 kB / 0.6682 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.772e-05/0.1815, allocations: 19.42 kB / 0.6683 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of SimCode: time 1.563e-06/0.1815, allocations: 0 / 0.6683 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01884/0.2003, allocations: 2.053 MB / 0.6703 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/7.688, allocations: 12.8 kB / 0.6703 GB, free: 14.98 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)