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.007468/0.007468, allocations: 97.92 kB / 15.73 MB, free: 6.004 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.001769/0.001769, allocations: 197.7 kB / 16.67 MB, free: 5.922 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.002/1.002, allocations: 135.5 MB / 426.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 67.89 kB / 0.5858 GB, free: 3.129 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4263/0.4284, allocations: 81.01 MB / 0.6649 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001467/0.4299, allocations: 0.5862 MB / 0.6655 GB, free: 6.473 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001417/0.4313, allocations: 1.457 MB / 0.6669 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.469e-05/0.4314, allocations: 0 / 0.6669 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.517e-05/0.4314, allocations: 1.406 kB / 0.6669 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.222e-05/0.4314, allocations: 3.938 kB / 0.6669 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.4319, allocations: 140.9 kB / 0.6671 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.19e-05/0.432, allocations: 27.31 kB / 0.6671 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.666e-05/0.432, allocations: 3 kB / 0.6671 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.612e-05/0.432, allocations: 17.52 kB / 0.6671 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.115e-05/0.4321, allocations: 28.92 kB / 0.6671 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.4322, allocations: 2.188 kB / 0.6671 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003836/0.4325, allocations: 316.5 kB / 0.6674 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.4326, allocations: 5.422 kB / 0.6674 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.609e-05/0.4326, allocations: 22.72 kB / 0.6675 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.4329, allocations: 188.5 kB / 0.6676 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.4329, allocations: 0 / 0.6676 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4329, allocations: 0 / 0.6676 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.4329, allocations: 0 / 0.6676 GB, free: 4.855 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.0004349/0.4333, allocations: 371.7 kB / 0.668 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.4334, allocations: 8.844 kB / 0.668 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.537e-05/0.4334, allocations: 40.39 kB / 0.668 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004336/0.4338, allocations: 67.25 kB / 0.6681 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.692e-05/0.4339, allocations: 165.8 kB / 0.6683 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.4339, allocations: 8.375 kB / 0.6683 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.434, allocations: 7.406 kB / 0.6683 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.4342, allocations: 72.55 kB / 0.6683 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.4342, allocations: 0 / 0.6683 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.4342, allocations: 1.5 kB / 0.6683 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.4343, allocations: 3.938 kB / 0.6684 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002909/0.4345, allocations: 71.03 kB / 0.6684 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001609/0.4347, allocations: 165.6 kB / 0.6686 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.4353, allocations: 118.5 kB / 0.6687 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.4355, allocations: 44 kB / 0.6687 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004367/0.4359, allocations: 155.6 kB / 0.6689 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.736e-05/0.436, allocations: 34.5 kB / 0.6689 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.593e-06/0.436, allocations: 5.469 kB / 0.6689 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.001106/0.4371, allocations: 402.1 kB / 0.6693 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.4371, allocations: 51.41 kB / 0.6694 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.965e-05/0.4372, allocations: 104.7 kB / 0.6695 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.4372, allocations: 27.11 kB / 0.6695 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.267e-05/0.4372, allocations: 80.14 kB / 0.6696 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/0.4372, allocations: 22.36 kB / 0.6696 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.383e-05/0.4373, allocations: 23.08 kB / 0.6696 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.494e-05/0.4373, allocations: 312.1 kB / 0.6699 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.4375, allocations: 37.34 kB / 0.6699 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.4376, allocations: 37.39 kB / 0.67 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/0.4379, allocations: 72.44 kB / 0.67 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.438, allocations: 0 / 0.67 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003437/0.4383, allocations: 120.7 kB / 0.6702 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.4383, allocations: 5.75 kB / 0.6702 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.4383, allocations: 0 / 0.6702 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.4384, allocations: 0 / 0.6702 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.4385, allocations: 28.66 kB / 0.6702 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.4385, allocations: 9.016 kB / 0.6702 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.71e-05/0.4386, allocations: 15.3 kB / 0.6702 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.4386, allocations: 2.031 kB / 0.6702 GB, free: 2.496 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 5.515e-05/0.4387, allocations: 112.2 kB / 0.6703 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.556e-05/0.4387, allocations: 5.312 kB / 0.6703 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004395/0.4392, allocations: 138.1 kB / 0.6705 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4392, allocations: 0 / 0.6705 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.4392, allocations: 1.188 kB / 0.6705 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.4392, allocations: 0 / 0.6705 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.4393, allocations: 170.9 kB / 0.6706 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.4393, allocations: 5.469 kB / 0.6706 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.4395, allocations: 26.91 kB / 0.6706 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.4395, allocations: 1.469 kB / 0.6706 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.4395, allocations: 1.062 kB / 0.6706 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4395, allocations: 0 / 0.6706 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.4395, allocations: 1.156 kB / 0.6707 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005181/0.44, allocations: 191.9 kB / 0.6708 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.013e-05/0.4401, allocations: 91.62 kB / 0.6709 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.4401, allocations: 0.9688 kB / 0.6709 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.4403, allocations: 11.27 kB / 0.6709 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.392e-05/0.4403, allocations: 6.688 kB / 0.6709 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-06/0.4403, allocations: 6.328 kB / 0.6709 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.794e-05/0.4403, allocations: 77.78 kB / 0.671 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.4403, allocations: 0 / 0.671 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002282/0.4406, allocations: 33.12 kB / 0.6711 GB, free: 1.727 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.0007715/0.4414, allocations: 0.7482 MB / 0.6718 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003787/0.4417, allocations: 94.98 kB / 0.6719 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4418, allocations: 0 / 0.6719 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.4419, allocations: 43.81 kB / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.4421, allocations: 2.531 kB / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.444, allocations: 1.357 MB / 0.6732 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.4444, allocations: 0.6784 MB / 0.6739 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.552e-05/0.4445, allocations: 15.05 kB / 0.6739 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.195e-05/0.4446, allocations: 15.81 kB / 0.6739 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of SimCode: time 2.685e-06/0.4446, allocations: 0 / 0.6739 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02663/0.4712, allocations: 2.058 MB / 0.6759 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/8.531, allocations: 11.58 kB / 0.676 GB, free: 13.92 MB / 0.5137 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)