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.001626/0.001626, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7719/0.7719, allocations: 132.2 MB / 422.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001628, allocations: 72.94 kB / 0.5019 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3659, allocations: 80.2 MB / 0.5802 GB, free: 4.594 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001682/0.3676, allocations: 0.6033 MB / 0.5808 GB, free: 4.215 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3691, allocations: 1.454 MB / 0.5822 GB, free: 3.152 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.024e-05/0.3692, allocations: 0 / 0.5822 GB, free: 3.152 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.274e-05/0.3692, allocations: 3.938 kB / 0.5822 GB, free: 3.148 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.767e-05/0.3692, allocations: 0 / 0.5822 GB, free: 3.148 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.3697, allocations: 145.4 kB / 0.5824 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.601e-05/0.3697, allocations: 25.61 kB / 0.5824 GB, free: 3.078 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.725e-05/0.3698, allocations: 2.781 kB / 0.5824 GB, free: 3.078 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.927e-05/0.3698, allocations: 17.25 kB / 0.5824 GB, free: 3.074 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.032e-05/0.3699, allocations: 27.08 kB / 0.5824 GB, free: 3.066 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.3699, allocations: 1.969 kB / 0.5824 GB, free: 3.066 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004687/0.3704, allocations: 315.3 kB / 0.5827 GB, free: 2.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.3704, allocations: 13.16 kB / 0.5827 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.3705, allocations: 10.08 kB / 0.5827 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002978/0.3708, allocations: 186.6 kB / 0.5829 GB, free: 2.922 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3708, allocations: 4.844 kB / 0.5829 GB, free: 2.918 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3708, allocations: 0 / 0.5829 GB, free: 2.918 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.3708, allocations: 0.7969 kB / 0.5829 GB, free: 2.918 MB / 430.1 MB 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.0004217/0.3712, allocations: 365.2 kB / 0.5833 GB, free: 2.543 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.3713, allocations: 9.75 kB / 0.5833 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.547e-05/0.3713, allocations: 40.53 kB / 0.5833 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000475/0.3718, allocations: 66.25 kB / 0.5834 GB, free: 2.492 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.468e-05/0.3719, allocations: 162.6 kB / 0.5835 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.3719, allocations: 1.281 kB / 0.5835 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.3719, allocations: 7.359 kB / 0.5836 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/0.3722, allocations: 75.11 kB / 0.5836 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3722, allocations: 2.594 kB / 0.5836 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.3722, allocations: 4 kB / 0.5836 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.3722, allocations: 0 / 0.5836 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003157/0.3725, allocations: 68.91 kB / 0.5837 GB, free: 2.238 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.3727, allocations: 163.4 kB / 0.5839 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006141/0.3733, allocations: 126.6 kB / 0.584 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.3735, allocations: 45.97 kB / 0.584 GB, free: 1.984 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004514/0.3739, allocations: 158.9 kB / 0.5842 GB, free: 1.879 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.589e-05/0.374, allocations: 36.25 kB / 0.5842 GB, free: 1.836 MB / 430.1 MB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.374, allocations: 4.938 kB / 0.5842 GB, free: 1.832 MB / 430.1 MB Notification: Performance of matching and sorting (n=5): time 0.001131/0.3751, allocations: 402 kB / 0.5846 GB, free: 1.551 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.74e-05/0.3751, allocations: 52.53 kB / 0.5846 GB, free: 1.488 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.898e-05/0.3752, allocations: 94.03 kB / 0.5847 GB, free: 1.391 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.3752, allocations: 30.67 kB / 0.5848 GB, free: 1.355 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.309e-05/0.3752, allocations: 84.75 kB / 0.5848 GB, free: 1.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.3752, allocations: 16.2 kB / 0.5849 GB, free: 1.258 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.537e-05/0.3753, allocations: 20.84 kB / 0.5849 GB, free: 1.238 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.328e-05/0.3753, allocations: 322 kB / 0.5852 GB, free: 0.918 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.3755, allocations: 37.36 kB / 0.5852 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.3757, allocations: 36.58 kB / 0.5853 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.376, allocations: 77.58 kB / 0.5853 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.376, allocations: 0 / 0.5853 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003806/0.3764, allocations: 116.7 kB / 0.5854 GB, free: 0.832 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.3764, allocations: 5.031 kB / 0.5854 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.3764, allocations: 0 / 0.5854 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.3765, allocations: 1.375 kB / 0.5854 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.3766, allocations: 26.25 kB / 0.5855 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3766, allocations: 1.75 kB / 0.5855 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.3767, allocations: 16.41 kB / 0.5855 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.3768, allocations: 1.797 kB / 0.5855 GB, free: 0.8242 MB / 430.1 MB 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 5.327e-05/0.3768, allocations: 112 kB / 0.5856 GB, free: 0.707 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.3768, allocations: 6.688 kB / 0.5856 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004832/0.3773, allocations: 136.7 kB / 0.5857 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3773, allocations: 0.5625 kB / 0.5857 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3774, allocations: 0.6562 kB / 0.5857 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3774, allocations: 0.7969 kB / 0.5857 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.61e-05/0.3775, allocations: 170.6 kB / 0.5859 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3775, allocations: 3.938 kB / 0.5859 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.3776, allocations: 30.94 kB / 0.5859 GB, free: 440 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3777, allocations: 1.375 kB / 0.5859 GB, free: 440 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.3777, allocations: 1.438 kB / 0.5859 GB, free: 440 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3777, allocations: 5.125 kB / 0.5859 GB, free: 436 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3777, allocations: 0 / 0.5859 GB, free: 436 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005845/0.3783, allocations: 185.6 kB / 0.5861 GB, free: 340 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.877e-05/0.3783, allocations: 91.52 kB / 0.5862 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.3784, allocations: 10.22 kB / 0.5862 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.3785, allocations: 12.19 kB / 0.5862 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.3785, allocations: 5.109 kB / 0.5862 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.397e-06/0.3785, allocations: 3.312 kB / 0.5862 GB, free: 228 kB / 430.1 MB Notification: Performance of sorting global known variables: time 1.764e-05/0.3786, allocations: 77.31 kB / 0.5863 GB, free: 152 kB / 430.1 MB Notification: Performance of sort global known variables: time 9.92e-07/0.3786, allocations: 0 / 0.5863 GB, free: 152 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.3788, allocations: 42.8 kB / 0.5863 GB, free: 132 kB / 430.1 MB 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.001022/0.3799, allocations: 0.7421 MB / 0.5871 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004008/0.3803, allocations: 86.73 kB / 0.5872 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3803, allocations: 0 / 0.5872 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.3805, allocations: 50.48 kB / 0.5872 GB, free: 15.47 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/0.3806, allocations: 2.688 kB / 0.5872 GB, free: 15.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/0.3827, allocations: 1.349 MB / 0.5885 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.383, allocations: 0.6799 MB / 0.5892 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.3831, allocations: 15.16 kB / 0.5892 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.879e-05/0.3832, allocations: 13.36 kB / 0.5892 GB, free: 13.61 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3832, allocations: 0 / 0.5892 GB, free: 13.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.403, allocations: 2.019 MB / 0.5912 GB, free: 13.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.233/7.636, allocations: 12.25 kB / 0.5912 GB, free: 13.23 MB / 446.1 MB (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)