Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="IDEAS_dev_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.001119/0.001119, allocations: 108 kB / 15.61 MB, free: 152 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.001179/0.001179, allocations: 195.9 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9142/0.9142, allocations: 135.1 MB / 425.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 68.81 kB / 0.5055 GB, free: 5.219 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1367, allocations: 80.92 MB / 0.5845 GB, free: 4.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.00182/0.1385, allocations: 0.5965 MB / 0.5851 GB, free: 3.855 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.1402, allocations: 1.44 MB / 0.5865 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.284e-05/0.1403, allocations: 0 / 0.5865 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.064e-05/0.1403, allocations: 4 kB / 0.5865 GB, free: 2.395 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.605e-05/0.1404, allocations: 0 / 0.5865 GB, free: 2.395 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005032/0.1409, allocations: 142 kB / 0.5866 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.325e-05/0.1409, allocations: 35.91 kB / 0.5866 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.655e-05/0.141, allocations: 4 kB / 0.5866 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.127e-05/0.141, allocations: 19.92 kB / 0.5867 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.046e-05/0.1411, allocations: 19.97 kB / 0.5867 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.1411, allocations: 0 / 0.5867 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004302/0.1416, allocations: 323.3 kB / 0.587 GB, free: 1.863 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.707e-05/0.1416, allocations: 3.984 kB / 0.587 GB, free: 1.859 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.982e-05/0.1416, allocations: 15.92 kB / 0.587 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.1419, allocations: 187.6 kB / 0.5872 GB, free: 1.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1419, allocations: 0 / 0.5872 GB, free: 1.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1419, allocations: 0 / 0.5872 GB, free: 1.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.1419, allocations: 0 / 0.5872 GB, free: 1.66 MB / 494.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.0004824/0.1424, allocations: 367.7 kB / 0.5875 GB, free: 1.254 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1425, allocations: 12.03 kB / 0.5876 GB, free: 1.242 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/0.1425, allocations: 38.73 kB / 0.5876 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004638/0.143, allocations: 64.86 kB / 0.5877 GB, free: 1.133 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.306e-05/0.1431, allocations: 164.4 kB / 0.5878 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.1431, allocations: 384 / 0.5878 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.1431, allocations: 4.375 kB / 0.5878 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.1434, allocations: 81.7 kB / 0.5879 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.1434, allocations: 0 / 0.5879 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.1434, allocations: 0 / 0.5879 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1434, allocations: 3.938 kB / 0.5879 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003075/0.1437, allocations: 67.92 kB / 0.588 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001627/0.1439, allocations: 169.7 kB / 0.5881 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006084/0.1445, allocations: 118.5 kB / 0.5882 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.1447, allocations: 52.83 kB / 0.5883 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004743/0.1452, allocations: 157 kB / 0.5884 GB, free: 212 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.1452, allocations: 34.5 kB / 0.5885 GB, free: 168 kB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.1453, allocations: 4 kB / 0.5885 GB, free: 164 kB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.001189/0.1464, allocations: 402.2 kB / 0.5889 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.1465, allocations: 51.41 kB / 0.5889 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.224e-05/0.1466, allocations: 97.84 kB / 0.589 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1466, allocations: 29.7 kB / 0.589 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.728e-05/0.1466, allocations: 80.14 kB / 0.5891 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/0.1466, allocations: 19.66 kB / 0.5891 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.1467, allocations: 25.83 kB / 0.5891 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.765e-05/0.1468, allocations: 318.8 kB / 0.5894 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/0.147, allocations: 32.03 kB / 0.5895 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002126/0.1472, allocations: 39.95 kB / 0.5895 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004123/0.1477, allocations: 80.75 kB / 0.5896 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1477, allocations: 0 / 0.5896 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004025/0.1481, allocations: 113.6 kB / 0.5897 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.1481, allocations: 4 kB / 0.5897 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1481, allocations: 0 / 0.5897 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1481, allocations: 4 kB / 0.5897 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.1483, allocations: 27.97 kB / 0.5897 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.1483, allocations: 0 / 0.5897 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.1484, allocations: 11.98 kB / 0.5897 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.1484, allocations: 4 kB / 0.5898 GB, free: 14.74 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 7.065e-05/0.1485, allocations: 109.8 kB / 0.5899 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.1485, allocations: 3.938 kB / 0.5899 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004803/0.149, allocations: 137.1 kB / 0.59 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.149, allocations: 8 kB / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1491, allocations: 0 / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1491, allocations: 0 / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.1492, allocations: 161.7 kB / 0.5902 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1492, allocations: 3.938 kB / 0.5902 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.1494, allocations: 23.97 kB / 0.5902 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1494, allocations: 256 / 0.5902 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.1494, allocations: 11.94 kB / 0.5902 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.1494, allocations: 11.94 kB / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1494, allocations: 0 / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005906/0.15, allocations: 192.9 kB / 0.5904 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.271e-05/0.1501, allocations: 85.03 kB / 0.5905 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.1501, allocations: 8.031 kB / 0.5905 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.1503, allocations: 16.05 kB / 0.5905 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.216e-05/0.1503, allocations: 0 / 0.5905 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.1503, allocations: 7.984 kB / 0.5905 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.25e-05/0.1503, allocations: 75.28 kB / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.1503, allocations: 0 / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002421/0.1506, allocations: 36 kB / 0.5906 GB, free: 13.76 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.0008854/0.1515, allocations: 0.7452 MB / 0.5913 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003856/0.1519, allocations: 87.98 kB / 0.5914 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.1519, allocations: 0 / 0.5914 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001777/0.1521, allocations: 43.91 kB / 0.5915 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001551/0.1522, allocations: 10.5 kB / 0.5915 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.1543, allocations: 1.368 MB / 0.5928 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.1545, allocations: 0.6768 MB / 0.5935 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001119/0.1547, allocations: 20 kB / 0.5935 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.579e-05/0.1547, allocations: 11.44 kB / 0.5935 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.1547, allocations: 0 / 0.5935 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.1726, allocations: 2.028 MB / 0.5955 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.403/7.575, allocations: 11.36 kB / 0.5955 GB, free: 8.738 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)