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.005287/0.005287, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001127/0.001127, allocations: 194.3 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7575/0.7575, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 72.81 kB / 0.5809 GB, free: 1.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1543, allocations: 80.2 MB / 0.6592 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002563/0.157, allocations: 0.7762 MB / 0.66 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002147/0.1591, allocations: 1.484 MB / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.587e-05/0.1592, allocations: 0 / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.482e-05/0.1593, allocations: 3.938 kB / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.325e-05/0.1594, allocations: 3.938 kB / 0.6615 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007449/0.1601, allocations: 143.5 kB / 0.6616 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.608e-05/0.1602, allocations: 43.95 kB / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.477e-05/0.1603, allocations: 7.984 kB / 0.6616 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.309e-05/0.1604, allocations: 27.92 kB / 0.6617 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.93e-05/0.1605, allocations: 35.83 kB / 0.6617 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.1605, allocations: 8 kB / 0.6617 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004755/0.161, allocations: 323.3 kB / 0.662 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.502e-05/0.161, allocations: 15.97 kB / 0.662 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.538e-05/0.161, allocations: 23.86 kB / 0.6621 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.1614, allocations: 211.7 kB / 0.6623 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1614, allocations: 0 / 0.6623 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.984e-06/0.1614, allocations: 0 / 0.6623 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.1614, allocations: 0 / 0.6623 GB, free: 10.85 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.000646/0.1621, allocations: 402.9 kB / 0.6626 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1621, allocations: 8.031 kB / 0.6627 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.232e-05/0.1622, allocations: 42.73 kB / 0.6627 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004661/0.1626, allocations: 72.81 kB / 0.6628 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.1628, allocations: 168.3 kB / 0.6629 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.1628, allocations: 8.375 kB / 0.6629 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.1628, allocations: 8.375 kB / 0.6629 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003619/0.1632, allocations: 117.7 kB / 0.6631 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1632, allocations: 11.89 kB / 0.6631 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.1632, allocations: 0 / 0.6631 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.1633, allocations: 0 / 0.6631 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004749/0.1637, allocations: 103.9 kB / 0.6632 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005416/0.1643, allocations: 336.6 kB / 0.6635 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.165, allocations: 158.4 kB / 0.6636 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.1652, allocations: 48.81 kB / 0.6637 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.1652, allocations: 4 kB / 0.6637 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.1653, allocations: 42.55 kB / 0.6637 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1653, allocations: 0 / 0.6637 GB, free: 9.176 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.01827/0.1835, allocations: 2.837 MB / 0.6665 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.1836, allocations: 59.34 kB / 0.6666 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.707e-05/0.1837, allocations: 97.86 kB / 0.6666 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.1837, allocations: 33.7 kB / 0.6667 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.635e-05/0.1838, allocations: 92.02 kB / 0.6668 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.236e-05/0.1839, allocations: 47.62 kB / 0.6668 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.184, allocations: 65.58 kB / 0.6669 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.585e-05/0.1841, allocations: 318.8 kB / 0.6672 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006758/0.1848, allocations: 187.8 kB / 0.6674 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006665/0.1855, allocations: 201.5 kB / 0.6675 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.1869, allocations: 384.5 kB / 0.6679 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1869, allocations: 0 / 0.6679 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00154/0.1884, allocations: 491.8 kB / 0.6684 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1885, allocations: 4 kB / 0.6684 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1885, allocations: 0 / 0.6684 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1885, allocations: 0 / 0.6684 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008113/0.1893, allocations: 111.7 kB / 0.6685 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1893, allocations: 0 / 0.6685 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006046/0.1899, allocations: 43.94 kB / 0.6685 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.998e-05/0.19, allocations: 27.94 kB / 0.6686 GB, free: 4.074 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.0001507/0.1901, allocations: 122.4 kB / 0.6687 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.31e-05/0.1902, allocations: 4 kB / 0.6687 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.604e-05/0.1903, allocations: 11.97 kB / 0.6687 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1903, allocations: 3.938 kB / 0.6687 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.1903, allocations: 0 / 0.6687 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1903, allocations: 0 / 0.6687 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.1925, allocations: 1.051 MB / 0.6697 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1925, allocations: 0 / 0.6697 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000808/0.1933, allocations: 111.7 kB / 0.6698 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1933, allocations: 0 / 0.6698 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/0.1934, allocations: 23.94 kB / 0.6699 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.1934, allocations: 4 kB / 0.6699 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1934, allocations: 0 / 0.6699 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00234/0.1957, allocations: 0.7879 MB / 0.6706 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.1959, allocations: 120.9 kB / 0.6707 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.052e-05/0.196, allocations: 4 kB / 0.6707 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006744/0.1967, allocations: 51.98 kB / 0.6708 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.511e-05/0.1968, allocations: 23.94 kB / 0.6708 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.205e-05/0.1968, allocations: 23.92 kB / 0.6708 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.077e-05/0.1969, allocations: 87.55 kB / 0.6709 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1969, allocations: 3.938 kB / 0.6709 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003781/0.1973, allocations: 55.94 kB / 0.671 GB, free: 1.43 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.002699/0.2, allocations: 1.344 MB / 0.6723 GB, free: 60 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001449/0.2014, allocations: 423.5 kB / 0.6727 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2014, allocations: 0 / 0.6727 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007064/0.2022, allocations: 229.8 kB / 0.6729 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.2026, allocations: 17.81 kB / 0.6729 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008512/0.2111, allocations: 2.947 MB / 0.6758 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.2114, allocations: 0.6885 MB / 0.6765 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005277/0.2119, allocations: 88.67 kB / 0.6766 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.2122, allocations: 63.3 kB / 0.6766 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of SimCode: time 8.12e-07/0.2122, allocations: 0 / 0.6766 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.235, allocations: 4.561 MB / 0.6811 GB, free: 7.094 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/7.844, allocations: 4.031 kB / 0.6811 GB, free: 7.094 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)