Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.InverseXDerivative_2_Check,fileNamePrefix="IDEAS_dev_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_dev_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.00117/0.00117, allocations: 108 kB / 15.6 MB, free: 132 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.001106/0.001106, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9303/0.9303, allocations: 135.1 MB / 425.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 64.36 kB / 0.5055 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1603, allocations: 80.93 MB / 0.5845 GB, free: 4.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002167/0.1625, allocations: 0.7662 MB / 0.5852 GB, free: 3.691 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.1644, allocations: 1.479 MB / 0.5867 GB, free: 2.195 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.548e-05/0.1645, allocations: 0 / 0.5867 GB, free: 2.195 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.098e-05/0.1645, allocations: 3.938 kB / 0.5867 GB, free: 2.191 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.197e-05/0.1646, allocations: 3.938 kB / 0.5867 GB, free: 2.188 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000501/0.1651, allocations: 150.8 kB / 0.5868 GB, free: 2.043 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.877e-05/0.1652, allocations: 47.95 kB / 0.5869 GB, free: 1.996 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.508e-05/0.1652, allocations: 4 kB / 0.5869 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.029e-05/0.1653, allocations: 23.92 kB / 0.5869 GB, free: 1.969 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.279e-05/0.1654, allocations: 35.78 kB / 0.5869 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.1654, allocations: 4 kB / 0.5869 GB, free: 1.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004279/0.1658, allocations: 319.3 kB / 0.5873 GB, free: 1.617 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.998e-05/0.1659, allocations: 11.98 kB / 0.5873 GB, free: 1.605 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.673e-05/0.1659, allocations: 27.84 kB / 0.5873 GB, free: 1.578 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000309/0.1662, allocations: 211.8 kB / 0.5875 GB, free: 1.371 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1662, allocations: 4 kB / 0.5875 GB, free: 1.367 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1662, allocations: 0 / 0.5875 GB, free: 1.367 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.1662, allocations: 0 / 0.5875 GB, free: 1.367 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006415/0.1669, allocations: 399.4 kB / 0.5879 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.1669, allocations: 8.031 kB / 0.5879 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.167, allocations: 38.75 kB / 0.5879 GB, free: 0.875 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004561/0.1674, allocations: 72.75 kB / 0.588 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.1676, allocations: 168.3 kB / 0.5882 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/0.1676, allocations: 8.375 kB / 0.5882 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/0.1676, allocations: 16.22 kB / 0.5882 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003673/0.168, allocations: 109.7 kB / 0.5883 GB, free: 476 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.168, allocations: 3.984 kB / 0.5883 GB, free: 472 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.168, allocations: 0 / 0.5883 GB, free: 472 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.1681, allocations: 0 / 0.5883 GB, free: 472 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004984/0.1686, allocations: 99.91 kB / 0.5884 GB, free: 372 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.1692, allocations: 352.5 kB / 0.5887 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006621/0.1698, allocations: 158.4 kB / 0.5889 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002532/0.1701, allocations: 52.8 kB / 0.5889 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.1701, allocations: 0 / 0.5889 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.1702, allocations: 42.5 kB / 0.589 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.1702, allocations: 7.938 kB / 0.589 GB, free: 15.69 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.01861/0.1888, allocations: 2.824 MB / 0.5917 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.1888, allocations: 59.34 kB / 0.5918 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.21e-05/0.1889, allocations: 101.8 kB / 0.5919 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.189, allocations: 29.7 kB / 0.5919 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.173e-05/0.189, allocations: 91.98 kB / 0.592 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.445e-05/0.1891, allocations: 39.45 kB / 0.592 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.1893, allocations: 69.58 kB / 0.5921 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1894, allocations: 314.8 kB / 0.5924 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006826/0.1901, allocations: 187.8 kB / 0.5926 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006963/0.1908, allocations: 195.8 kB / 0.5928 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.1922, allocations: 396.5 kB / 0.5931 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1923, allocations: 0 / 0.5931 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001748/0.194, allocations: 480.4 kB / 0.5936 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.194, allocations: 8 kB / 0.5936 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1941, allocations: 0 / 0.5936 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1941, allocations: 0 / 0.5936 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009021/0.195, allocations: 107.7 kB / 0.5937 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.195, allocations: 4 kB / 0.5937 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006303/0.1956, allocations: 47.94 kB / 0.5938 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.414e-05/0.1957, allocations: 23.92 kB / 0.5938 GB, free: 10.61 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.000151/0.1959, allocations: 121.8 kB / 0.5939 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.492e-05/0.196, allocations: 4 kB / 0.5939 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.51e-05/0.196, allocations: 11.97 kB / 0.5939 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.196, allocations: 3.938 kB / 0.5939 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.196, allocations: 4 kB / 0.5939 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1961, allocations: 0 / 0.5939 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.1984, allocations: 1.059 MB / 0.595 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1984, allocations: 0 / 0.595 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008328/0.1992, allocations: 107.7 kB / 0.5951 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1992, allocations: 8 kB / 0.5951 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.448e-05/0.1993, allocations: 23.92 kB / 0.5951 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1993, allocations: 0 / 0.5951 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.604e-06/0.1993, allocations: 0 / 0.5951 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.2017, allocations: 0.7876 MB / 0.5959 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.2019, allocations: 124.8 kB / 0.596 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.135e-05/0.202, allocations: 4.094 kB / 0.596 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006992/0.2027, allocations: 51.94 kB / 0.596 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.2028, allocations: 27.92 kB / 0.5961 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.496e-05/0.2028, allocations: 27.94 kB / 0.5961 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.12e-05/0.2029, allocations: 79.47 kB / 0.5962 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2029, allocations: 4 kB / 0.5962 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003916/0.2033, allocations: 51.98 kB / 0.5962 GB, free: 7.961 MB / 0.4981 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.002747/0.206, allocations: 1.345 MB / 0.5975 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001507/0.2076, allocations: 427.5 kB / 0.5979 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2076, allocations: 0 / 0.5979 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007483/0.2083, allocations: 227.7 kB / 0.5981 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.2087, allocations: 11.98 kB / 0.5982 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009025/0.2178, allocations: 2.935 MB / 0.601 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.2181, allocations: 0.6885 MB / 0.6017 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006506/0.2187, allocations: 92.66 kB / 0.6018 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000278/0.219, allocations: 63.3 kB / 0.6018 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of SimCode: time 6.21e-07/0.219, allocations: 0 / 0.6018 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2371/0.4562, allocations: 4.52 MB / 0.6063 GB, free: 52.58 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.409/7.866, allocations: 7.188 kB / 0.6063 GB, free: 52.58 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)