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.004813/0.004813, allocations: 99.66 kB / 15.73 MB, free: 6.441 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.00313/0.00313, allocations: 199.7 kB / 16.67 MB, free: 6.352 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9677/0.9677, allocations: 135.1 MB / 425.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 59.91 kB / 0.5852 GB, free: 3.781 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4302/0.4319, allocations: 80.92 MB / 0.6642 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001461/0.4334, allocations: 0.5936 MB / 0.6648 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00158/0.435, allocations: 1.452 MB / 0.6662 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.574e-05/0.435, allocations: 1.438 kB / 0.6662 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.436e-05/0.435, allocations: 0 / 0.6662 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.275e-05/0.4351, allocations: 3.938 kB / 0.6662 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005315/0.4356, allocations: 141.6 kB / 0.6664 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.668e-05/0.4357, allocations: 28.44 kB / 0.6664 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.962e-05/0.4357, allocations: 5.312 kB / 0.6664 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.743e-05/0.4358, allocations: 14.17 kB / 0.6664 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.383e-05/0.4359, allocations: 36.59 kB / 0.6664 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.4359, allocations: 2.562 kB / 0.6664 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003942/0.4363, allocations: 316.4 kB / 0.6667 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.4363, allocations: 9.422 kB / 0.6667 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.839e-05/0.4364, allocations: 18.59 kB / 0.6668 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.4366, allocations: 184.8 kB / 0.6669 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4367, allocations: 0 / 0.6669 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.744e-06/0.4367, allocations: 0 / 0.6669 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.939e-06/0.4367, allocations: 0 / 0.6669 GB, free: 5.195 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.0004456/0.4371, allocations: 376.2 kB / 0.6673 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.4372, allocations: 10.66 kB / 0.6673 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.477e-05/0.4372, allocations: 34.75 kB / 0.6673 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004313/0.4376, allocations: 71.48 kB / 0.6674 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.531e-05/0.4377, allocations: 162.1 kB / 0.6676 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.4377, allocations: 5.812 kB / 0.6676 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.311e-05/0.4378, allocations: 1.781 kB / 0.6676 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.438, allocations: 81.03 kB / 0.6676 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.438, allocations: 5.156 kB / 0.6677 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.438, allocations: 0 / 0.6677 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.4381, allocations: 1.25 kB / 0.6677 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.4383, allocations: 62.44 kB / 0.6677 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001345/0.4385, allocations: 165.4 kB / 0.6679 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005572/0.439, allocations: 119.3 kB / 0.668 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.4392, allocations: 43.33 kB / 0.668 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004538/0.4397, allocations: 150.2 kB / 0.6682 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.4397, allocations: 47.83 kB / 0.6682 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.302e-06/0.4397, allocations: 0 / 0.6682 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.001081/0.4408, allocations: 406.2 kB / 0.6686 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.086e-05/0.4408, allocations: 52.88 kB / 0.6687 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.056e-05/0.4409, allocations: 93.36 kB / 0.6687 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.4409, allocations: 25.7 kB / 0.6688 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.342e-05/0.4409, allocations: 84.14 kB / 0.6688 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.4409, allocations: 22.75 kB / 0.6689 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.149e-05/0.441, allocations: 18.84 kB / 0.6689 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.556e-05/0.441, allocations: 316.4 kB / 0.6692 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.4412, allocations: 36.89 kB / 0.6692 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.4413, allocations: 39 kB / 0.6693 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.4416, allocations: 74.61 kB / 0.6693 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.4416, allocations: 4 kB / 0.6693 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003341/0.442, allocations: 113.4 kB / 0.6694 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.442, allocations: 5.031 kB / 0.6694 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.442, allocations: 4 kB / 0.6695 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.442, allocations: 1.5 kB / 0.6695 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.4422, allocations: 28.14 kB / 0.6695 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.4422, allocations: 0 / 0.6695 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.498e-05/0.4423, allocations: 15.92 kB / 0.6695 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.4423, allocations: 5.703 kB / 0.6695 GB, free: 2.84 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 4.996e-05/0.4424, allocations: 112.8 kB / 0.6696 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.4424, allocations: 5.094 kB / 0.6696 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004208/0.4428, allocations: 142.2 kB / 0.6698 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4428, allocations: 336 / 0.6698 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4428, allocations: 5.375 kB / 0.6698 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.4428, allocations: 0 / 0.6698 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.443, allocations: 166.6 kB / 0.6699 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.443, allocations: 5.469 kB / 0.6699 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.4431, allocations: 19.67 kB / 0.6699 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4431, allocations: 0 / 0.6699 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.4432, allocations: 5.25 kB / 0.6699 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4432, allocations: 1.375 kB / 0.6699 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4432, allocations: 3.984 kB / 0.6699 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005764/0.4438, allocations: 188 kB / 0.6701 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.426e-05/0.4438, allocations: 87.5 kB / 0.6702 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.4438, allocations: 5.625 kB / 0.6702 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.444, allocations: 11.83 kB / 0.6702 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.444, allocations: 10.73 kB / 0.6702 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-06/0.444, allocations: 1.25 kB / 0.6702 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.363e-05/0.444, allocations: 78.06 kB / 0.6703 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.444, allocations: 0 / 0.6703 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002452/0.4443, allocations: 37.02 kB / 0.6703 GB, free: 2.066 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.0008337/0.4451, allocations: 0.753 MB / 0.6711 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003818/0.4455, allocations: 82.92 kB / 0.6712 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4455, allocations: 0 / 0.6712 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.4457, allocations: 40.88 kB / 0.6712 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001638/0.4459, allocations: 10.58 kB / 0.6712 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.4476, allocations: 1.364 MB / 0.6725 GB, free: 92 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.4479, allocations: 0.6787 MB / 0.6732 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.403e-05/0.448, allocations: 18.66 kB / 0.6732 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.726e-05/0.448, allocations: 24.42 kB / 0.6732 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of SimCode: time 3.3e-07/0.448, allocations: 0 / 0.6732 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01884/0.4669, allocations: 2.043 MB / 0.6752 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.226, allocations: 9.906 kB / 0.6753 GB, free: 14.25 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)