Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.InverseXDerivative_2_Check,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.006745/0.006745, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.001736/0.001736, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8453/0.8453, allocations: 132.2 MB / 422.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 68.55 kB / 0.5809 GB, free: 24.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1562, allocations: 80.2 MB / 0.6592 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001898/0.1581, allocations: 0.7941 MB / 0.66 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002032/0.1602, allocations: 1.474 MB / 0.6614 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.233e-05/0.1602, allocations: 0 / 0.6614 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.786e-05/0.1603, allocations: 7.938 kB / 0.6615 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.347e-05/0.1604, allocations: 3.938 kB / 0.6615 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005433/0.1609, allocations: 139.4 kB / 0.6616 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001124/0.161, allocations: 47.91 kB / 0.6616 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.733e-05/0.1611, allocations: 11.98 kB / 0.6616 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.315e-05/0.1612, allocations: 27.92 kB / 0.6617 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.96e-05/0.1613, allocations: 35.83 kB / 0.6617 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.1613, allocations: 8 kB / 0.6617 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004733/0.1618, allocations: 315.4 kB / 0.662 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.1618, allocations: 15.97 kB / 0.662 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.079e-05/0.1618, allocations: 27.86 kB / 0.6621 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003387/0.1622, allocations: 211.6 kB / 0.6623 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1622, allocations: 0 / 0.6623 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.074e-06/0.1622, allocations: 0 / 0.6623 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.1622, allocations: 4 kB / 0.6623 GB, free: 7.617 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007412/0.163, allocations: 402.9 kB / 0.6626 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.163, allocations: 8.031 kB / 0.6627 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.702e-05/0.1631, allocations: 42.67 kB / 0.6627 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004476/0.1635, allocations: 72.81 kB / 0.6628 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.1637, allocations: 172.2 kB / 0.6629 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.023e-05/0.1637, allocations: 4.375 kB / 0.6629 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.1637, allocations: 8.375 kB / 0.6629 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.1641, allocations: 113.7 kB / 0.6631 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.1642, allocations: 7.891 kB / 0.6631 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.1642, allocations: 8 kB / 0.6631 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1642, allocations: 0 / 0.6631 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004934/0.1647, allocations: 99.89 kB / 0.6632 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006043/0.1653, allocations: 332.7 kB / 0.6635 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006513/0.166, allocations: 154.4 kB / 0.6636 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.1662, allocations: 64.75 kB / 0.6637 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.1662, allocations: 0 / 0.6637 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.1663, allocations: 30.56 kB / 0.6637 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/0.1663, allocations: 0 / 0.6637 GB, free: 5.957 MB / 0.4981 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.01787/0.1842, allocations: 2.844 MB / 0.6665 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.1843, allocations: 55.34 kB / 0.6665 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.779e-05/0.1844, allocations: 97.86 kB / 0.6666 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/0.1844, allocations: 29.7 kB / 0.6667 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.1845, allocations: 92.02 kB / 0.6668 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.064e-05/0.1846, allocations: 39.66 kB / 0.6668 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.1847, allocations: 73.56 kB / 0.6669 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1849, allocations: 314.8 kB / 0.6672 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00069/0.1856, allocations: 195.8 kB / 0.6674 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006685/0.1863, allocations: 187.8 kB / 0.6675 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.1877, allocations: 399.9 kB / 0.6679 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1877, allocations: 0 / 0.6679 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001557/0.1892, allocations: 477.3 kB / 0.6684 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.1893, allocations: 9.719 kB / 0.6684 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1893, allocations: 0 / 0.6684 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.1893, allocations: 0 / 0.6684 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008149/0.1901, allocations: 115.7 kB / 0.6685 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1901, allocations: 3.938 kB / 0.6685 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006002/0.1908, allocations: 43.94 kB / 0.6685 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.797e-05/0.1908, allocations: 23.94 kB / 0.6686 GB, free: 0.8555 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 (13): * Single equations (assignments): 13 * 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.0001585/0.191, allocations: 122.7 kB / 0.6687 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.261e-05/0.1911, allocations: 96 / 0.6687 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.904e-05/0.1911, allocations: 15.91 kB / 0.6687 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1911, allocations: 3.938 kB / 0.6687 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.1912, allocations: 8 kB / 0.6687 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1912, allocations: 0 / 0.6687 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.1935, allocations: 1.054 MB / 0.6697 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1935, allocations: 0 / 0.6697 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008212/0.1943, allocations: 107.7 kB / 0.6698 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1944, allocations: 0 / 0.6698 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.583e-05/0.1944, allocations: 23.94 kB / 0.6699 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1944, allocations: 4 kB / 0.6699 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1944, allocations: 0 / 0.6699 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.1968, allocations: 0.7878 MB / 0.6706 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.197, allocations: 124.9 kB / 0.6707 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.1971, allocations: 0 / 0.6707 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006549/0.1977, allocations: 48 kB / 0.6708 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.1978, allocations: 27.92 kB / 0.6708 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.408e-05/0.1979, allocations: 27.92 kB / 0.6708 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.8e-05/0.198, allocations: 83.47 kB / 0.6709 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.198, allocations: 0 / 0.6709 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003657/0.1983, allocations: 55.94 kB / 0.671 GB, free: 14.21 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_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 (11): * Single equations (assignments): 11 * 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.002757/0.2011, allocations: 1.337 MB / 0.6723 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001485/0.2026, allocations: 423.6 kB / 0.6727 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2026, allocations: 0 / 0.6727 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000745/0.2034, allocations: 230.4 kB / 0.6729 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.2037, allocations: 16.94 kB / 0.6729 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008573/0.2123, allocations: 2.943 MB / 0.6758 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.2126, allocations: 0.6924 MB / 0.6765 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005177/0.2132, allocations: 92.67 kB / 0.6766 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002751/0.2134, allocations: 67.3 kB / 0.6766 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of SimCode: time 6.61e-07/0.2135, allocations: 0 / 0.6766 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.2422, allocations: 4.565 MB / 0.6811 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.845/8.088, allocations: 2.797 kB / 0.6811 GB, free: 3.863 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv --start-time -1.5 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0012 IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)