Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="BuildingSystems_BuildingSystems_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.008116/0.008117, allocations: 96.19 kB / 15.73 MB, free: 6.043 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.001221/0.001221, allocations: 204 kB / 16.68 MB, free: 5.969 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002358/0.002358, allocations: 274.9 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.019/1.019, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 95.17 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1743, allocations: 86.97 MB / 0.766 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.00209/0.1764, allocations: 0.7778 MB / 0.7667 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001985/0.1784, allocations: 1.478 MB / 0.7682 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.146e-05/0.1785, allocations: 4 kB / 0.7682 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.377e-05/0.1785, allocations: 3.938 kB / 0.7682 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.023e-05/0.1786, allocations: 7.875 kB / 0.7682 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.1792, allocations: 139.5 kB / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.467e-05/0.1793, allocations: 55.7 kB / 0.7684 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.139e-05/0.1794, allocations: 0 / 0.7684 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.432e-05/0.1795, allocations: 27.92 kB / 0.7684 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.611e-05/0.1796, allocations: 43.81 kB / 0.7684 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.1796, allocations: 4 kB / 0.7684 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004468/0.18, allocations: 315.3 kB / 0.7687 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.491e-05/0.1801, allocations: 15.97 kB / 0.7687 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.759e-05/0.1801, allocations: 23.86 kB / 0.7688 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003337/0.1805, allocations: 215.6 kB / 0.769 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1805, allocations: 0 / 0.769 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.493e-06/0.1805, allocations: 4 kB / 0.769 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.1805, allocations: 0 / 0.769 GB, free: 5.781 MB / 0.5606 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.0006732/0.1812, allocations: 398.9 kB / 0.7694 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.1812, allocations: 8.031 kB / 0.7694 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.296e-05/0.1813, allocations: 38.75 kB / 0.7694 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004633/0.1817, allocations: 72.8 kB / 0.7695 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.1819, allocations: 168.3 kB / 0.7696 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.935e-05/0.1819, allocations: 8.312 kB / 0.7696 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.1819, allocations: 12.33 kB / 0.7697 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.1823, allocations: 121.7 kB / 0.7698 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1823, allocations: 4 kB / 0.7698 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.1824, allocations: 0 / 0.7698 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.1824, allocations: 0 / 0.7698 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004881/0.1829, allocations: 107.9 kB / 0.7699 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005945/0.1835, allocations: 336.7 kB / 0.7702 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.1841, allocations: 154.4 kB / 0.7703 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.1844, allocations: 56.81 kB / 0.7704 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.1844, allocations: 0 / 0.7704 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.1844, allocations: 34.56 kB / 0.7704 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.1844, allocations: 0 / 0.7704 GB, free: 4.121 MB / 0.5606 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.01816/0.2026, allocations: 2.849 MB / 0.7732 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.2027, allocations: 55.34 kB / 0.7733 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.562e-05/0.2027, allocations: 101.8 kB / 0.7734 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.2028, allocations: 29.7 kB / 0.7734 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.2029, allocations: 84.17 kB / 0.7735 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/0.2029, allocations: 55.56 kB / 0.7735 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/0.2031, allocations: 65.58 kB / 0.7736 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.186e-05/0.2032, allocations: 318.8 kB / 0.7739 GB, free: 448 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006698/0.2039, allocations: 195.8 kB / 0.7741 GB, free: 252 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006605/0.2046, allocations: 191.8 kB / 0.7743 GB, free: 60 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3188/0.5233, allocations: 383.8 kB / 0.7746 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5234, allocations: 0 / 0.7746 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00166/0.5251, allocations: 477.9 kB / 0.7751 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.5251, allocations: 6.969 kB / 0.7751 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.5251, allocations: 0.5 kB / 0.7751 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.5251, allocations: 1.656 kB / 0.7751 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008556/0.526, allocations: 106.8 kB / 0.7752 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.526, allocations: 0.75 kB / 0.7752 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006189/0.5266, allocations: 47.72 kB / 0.7752 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.098e-05/0.5267, allocations: 24.16 kB / 0.7753 GB, free: 14.95 MB / 0.5606 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.0001454/0.5269, allocations: 121.4 kB / 0.7754 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.299e-05/0.5269, allocations: 5.375 kB / 0.7754 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.174e-05/0.527, allocations: 14.48 kB / 0.7754 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.527, allocations: 2.125 kB / 0.7754 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.527, allocations: 0 / 0.7754 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.527, allocations: 1.406 kB / 0.7754 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002127/0.5292, allocations: 1.053 MB / 0.7764 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5292, allocations: 0.7969 kB / 0.7764 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008578/0.53, allocations: 109.9 kB / 0.7765 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.5301, allocations: 0.7188 kB / 0.7765 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.21e-05/0.5301, allocations: 24.62 kB / 0.7766 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.5301, allocations: 4.844 kB / 0.7766 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5301, allocations: 0.6562 kB / 0.7766 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.5326, allocations: 0.7862 MB / 0.7773 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.5327, allocations: 125.5 kB / 0.7774 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.007e-05/0.5328, allocations: 2.281 kB / 0.7775 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006652/0.5335, allocations: 50.36 kB / 0.7775 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.691e-05/0.5335, allocations: 31.2 kB / 0.7775 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.405e-05/0.5336, allocations: 26.5 kB / 0.7776 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.563e-05/0.5336, allocations: 83.09 kB / 0.7776 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5336, allocations: 0 / 0.7776 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003992/0.534, allocations: 53.86 kB / 0.7777 GB, free: 13.99 MB / 0.5606 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.002488/0.5365, allocations: 1.338 MB / 0.779 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001506/0.5381, allocations: 427 kB / 0.7794 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5381, allocations: 1 kB / 0.7794 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007332/0.5388, allocations: 226.7 kB / 0.7796 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.5392, allocations: 18.55 kB / 0.7796 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008513/0.5477, allocations: 2.941 MB / 0.7825 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.5479, allocations: 0.695 MB / 0.7832 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000506/0.5484, allocations: 94.84 kB / 0.7833 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002896/0.5487, allocations: 63.39 kB / 0.7833 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of SimCode: time 7.82e-07/0.5487, allocations: 0 / 0.7833 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.5735, allocations: 4.589 MB / 0.7878 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.464/8.037, allocations: 10.22 kB / 0.7878 GB, free: 10.31 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)