Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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.InverseXDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="IDEAS_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.001078/0.001078, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002316/0.002316, allocations: 194.9 kB / 16.25 MB, free: 6.621 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.294/1.294, allocations: 222.9 MB / 239.9 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6844/0.6844, allocations: 132.2 MB / 422.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 63.88 kB / 0.5014 GB, free: 8.996 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1269, allocations: 80.21 MB / 0.5797 GB, free: 9.012 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001511/0.1285, allocations: 0.6466 MB / 0.5803 GB, free: 8.359 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.1301, allocations: 1.452 MB / 0.5817 GB, free: 6.891 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.514e-05/0.1301, allocations: 4 kB / 0.5817 GB, free: 6.887 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.473e-05/0.1301, allocations: 0 / 0.5817 GB, free: 6.887 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.962e-05/0.1302, allocations: 0 / 0.5817 GB, free: 6.887 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.1306, allocations: 119.7 kB / 0.5819 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.603e-05/0.1306, allocations: 31.98 kB / 0.5819 GB, free: 6.738 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.035e-05/0.1307, allocations: 3.984 kB / 0.5819 GB, free: 6.734 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.183e-05/0.1307, allocations: 15.92 kB / 0.5819 GB, free: 6.719 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.047e-05/0.1308, allocations: 27.95 kB / 0.5819 GB, free: 6.691 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.1308, allocations: 0 / 0.5819 GB, free: 6.691 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000385/0.1312, allocations: 323.3 kB / 0.5822 GB, free: 6.375 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.263e-05/0.1312, allocations: 3.984 kB / 0.5822 GB, free: 6.371 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.198e-05/0.1312, allocations: 15.92 kB / 0.5823 GB, free: 6.355 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.1315, allocations: 187.6 kB / 0.5824 GB, free: 6.172 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1315, allocations: 0 / 0.5824 GB, free: 6.172 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1315, allocations: 0 / 0.5824 GB, free: 6.172 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1315, allocations: 4 kB / 0.5824 GB, free: 6.168 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.0004573/0.132, allocations: 367.7 kB / 0.5828 GB, free: 5.762 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.132, allocations: 12.03 kB / 0.5828 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.009e-05/0.132, allocations: 30.75 kB / 0.5828 GB, free: 5.711 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004138/0.1325, allocations: 72.84 kB / 0.5829 GB, free: 5.641 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.705e-05/0.1325, allocations: 160.4 kB / 0.5831 GB, free: 5.445 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.1326, allocations: 384 / 0.5831 GB, free: 5.445 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.1326, allocations: 4.375 kB / 0.5831 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.1328, allocations: 77.75 kB / 0.5831 GB, free: 5.359 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1328, allocations: 7.938 kB / 0.5831 GB, free: 5.352 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.1329, allocations: 0 / 0.5831 GB, free: 5.352 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.1329, allocations: 0 / 0.5831 GB, free: 5.352 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.1331, allocations: 59.94 kB / 0.5832 GB, free: 5.293 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001559/0.1333, allocations: 169.7 kB / 0.5834 GB, free: 5.078 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005492/0.1339, allocations: 122.6 kB / 0.5835 GB, free: 4.949 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.134, allocations: 40.91 kB / 0.5835 GB, free: 4.906 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004242/0.1344, allocations: 157 kB / 0.5837 GB, free: 4.734 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.1345, allocations: 50.44 kB / 0.5837 GB, free: 4.676 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.1345, allocations: 3.938 kB / 0.5837 GB, free: 4.672 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.001025/0.1355, allocations: 402.2 kB / 0.5841 GB, free: 4.227 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.1356, allocations: 51.41 kB / 0.5842 GB, free: 4.164 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.801e-05/0.1356, allocations: 93.86 kB / 0.5842 GB, free: 4.062 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.1356, allocations: 29.64 kB / 0.5843 GB, free: 4.027 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.036e-05/0.1357, allocations: 84.14 kB / 0.5844 GB, free: 3.941 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.1357, allocations: 27.77 kB / 0.5844 GB, free: 3.914 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.022e-05/0.1358, allocations: 17.72 kB / 0.5844 GB, free: 3.891 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.183e-05/0.1358, allocations: 318.8 kB / 0.5847 GB, free: 3.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.136, allocations: 31.97 kB / 0.5847 GB, free: 3.539 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.1362, allocations: 35.97 kB / 0.5848 GB, free: 3.504 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/0.1364, allocations: 80.8 kB / 0.5848 GB, free: 3.422 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.1364, allocations: 0 / 0.5848 GB, free: 3.422 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003187/0.1368, allocations: 117.5 kB / 0.585 GB, free: 3.301 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.1368, allocations: 4 kB / 0.585 GB, free: 3.297 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.1368, allocations: 0 / 0.585 GB, free: 3.297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.1368, allocations: 4 kB / 0.585 GB, free: 3.293 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.137, allocations: 19.98 kB / 0.585 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.137, allocations: 3.984 kB / 0.585 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.709e-05/0.1371, allocations: 19.98 kB / 0.585 GB, free: 3.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.894e-06/0.1371, allocations: 0 / 0.585 GB, free: 3.25 MB / 494.1 MB 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 6.443e-05/0.1372, allocations: 113.8 kB / 0.5851 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.1372, allocations: 3.938 kB / 0.5851 GB, free: 3.125 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004118/0.1376, allocations: 141.1 kB / 0.5853 GB, free: 2.977 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1376, allocations: 0 / 0.5853 GB, free: 2.977 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1376, allocations: 4.312 kB / 0.5853 GB, free: 2.973 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1376, allocations: 0 / 0.5853 GB, free: 2.973 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.1378, allocations: 169.6 kB / 0.5854 GB, free: 2.758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.1378, allocations: 3.938 kB / 0.5854 GB, free: 2.754 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/0.1379, allocations: 19.98 kB / 0.5854 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.138, allocations: 0 / 0.5854 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.138, allocations: 15.98 kB / 0.5855 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.138, allocations: 0 / 0.5855 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.138, allocations: 0 / 0.5855 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005/0.1385, allocations: 188.8 kB / 0.5856 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.1386, allocations: 85.03 kB / 0.5857 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.1386, allocations: 4.031 kB / 0.5857 GB, free: 2.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.1387, allocations: 20.05 kB / 0.5857 GB, free: 2.391 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.105e-05/0.1387, allocations: 3.984 kB / 0.5857 GB, free: 2.387 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.1387, allocations: 4 kB / 0.5857 GB, free: 2.383 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.334e-05/0.1388, allocations: 75.28 kB / 0.5858 GB, free: 2.309 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1388, allocations: 0 / 0.5858 GB, free: 2.309 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002131/0.139, allocations: 39.92 kB / 0.5859 GB, free: 2.27 MB / 494.1 MB 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.0008046/0.1398, allocations: 0.749 MB / 0.5866 GB, free: 1.492 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000338/0.1402, allocations: 83.98 kB / 0.5867 GB, free: 1.41 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1402, allocations: 0 / 0.5867 GB, free: 1.41 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.1403, allocations: 47.89 kB / 0.5867 GB, free: 1.363 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.1405, allocations: 15.27 kB / 0.5867 GB, free: 1.352 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.1422, allocations: 1.356 MB / 0.5881 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.1424, allocations: 0.6768 MB / 0.5887 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001027/0.1425, allocations: 20 kB / 0.5887 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.033e-05/0.1426, allocations: 15.42 kB / 0.5887 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of SimCode: time 1.81e-07/0.1426, allocations: 0 / 0.5887 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09599/0.2386, allocations: 1.944 MB / 0.5906 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002581/0.2389, allocations: 203 kB / 0.5908 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/2.01, allocations: 2.953 kB / 0.5908 GB, free: 13.14 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)