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.001532/0.001532, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001587/0.001586, allocations: 197.3 kB / 16.53 MB, free: 6.664 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.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002419/0.002419, allocations: 290.8 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.026/1.026, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002654/0.002654, allocations: 99.81 kB / 0.6066 GB, free: 24.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1544, allocations: 89.13 MB / 0.6936 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002029/0.1564, allocations: 0.7917 MB / 0.6944 GB, free: 3.422 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.1583, allocations: 1.472 MB / 0.6958 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.024e-05/0.1583, allocations: 0 / 0.6958 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.062e-05/0.1583, allocations: 7.922 kB / 0.6958 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.406e-05/0.1584, allocations: 7.938 kB / 0.6958 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004532/0.1588, allocations: 143.4 kB / 0.696 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.875e-05/0.1589, allocations: 55.83 kB / 0.696 GB, free: 1.723 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.772e-05/0.159, allocations: 4 kB / 0.696 GB, free: 1.719 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.258e-05/0.1591, allocations: 31.91 kB / 0.6961 GB, free: 1.688 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.868e-05/0.1591, allocations: 23.91 kB / 0.6961 GB, free: 1.664 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.1591, allocations: 4 kB / 0.6961 GB, free: 1.66 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004632/0.1596, allocations: 323.3 kB / 0.6964 GB, free: 1.344 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.1596, allocations: 19.92 kB / 0.6964 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.223e-05/0.1597, allocations: 19.86 kB / 0.6964 GB, free: 1.305 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003184/0.16, allocations: 215.8 kB / 0.6966 GB, free: 1.094 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.16, allocations: 0 / 0.6966 GB, free: 1.094 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.16, allocations: 0 / 0.6966 GB, free: 1.094 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.16, allocations: 0 / 0.6966 GB, free: 1.094 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006524/0.1607, allocations: 395.4 kB / 0.697 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.1607, allocations: 12.03 kB / 0.697 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.734e-05/0.1608, allocations: 38.73 kB / 0.6971 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004349/0.1612, allocations: 68.77 kB / 0.6971 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.1614, allocations: 172.3 kB / 0.6973 GB, free: 336 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.1614, allocations: 12.38 kB / 0.6973 GB, free: 324 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.1614, allocations: 12.31 kB / 0.6973 GB, free: 312 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.1618, allocations: 109.7 kB / 0.6974 GB, free: 196 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.1618, allocations: 3.906 kB / 0.6974 GB, free: 192 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.1618, allocations: 3.938 kB / 0.6974 GB, free: 188 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.1619, allocations: 8 kB / 0.6974 GB, free: 180 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004808/0.1623, allocations: 99.89 kB / 0.6975 GB, free: 80 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005764/0.1629, allocations: 340.5 kB / 0.6979 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006514/0.1636, allocations: 154.4 kB / 0.698 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.1638, allocations: 52.81 kB / 0.6981 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.1639, allocations: 7.984 kB / 0.6981 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.1639, allocations: 38.5 kB / 0.6981 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.1639, allocations: 0 / 0.6981 GB, free: 15.43 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.01828/0.1822, allocations: 2.832 MB / 0.7009 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.1823, allocations: 59.34 kB / 0.7009 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.002e-05/0.1823, allocations: 93.86 kB / 0.701 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.984e-05/0.1824, allocations: 29.7 kB / 0.701 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.869e-05/0.1825, allocations: 96.03 kB / 0.7011 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.458e-05/0.1825, allocations: 39.45 kB / 0.7012 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.1827, allocations: 65.58 kB / 0.7012 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1829, allocations: 314.8 kB / 0.7015 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006878/0.1836, allocations: 187.8 kB / 0.7017 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00068/0.1843, allocations: 195.8 kB / 0.7019 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.1856, allocations: 399.7 kB / 0.7023 GB, free: 11 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.1857, allocations: 0 / 0.7023 GB, free: 11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001573/0.1872, allocations: 485.2 kB / 0.7027 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1873, allocations: 4 kB / 0.7027 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1873, allocations: 1.016 kB / 0.7027 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.1873, allocations: 4 kB / 0.7027 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008086/0.1881, allocations: 107.7 kB / 0.7029 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.1881, allocations: 0 / 0.7029 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006122/0.1887, allocations: 48.12 kB / 0.7029 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.122e-05/0.1888, allocations: 19.94 kB / 0.7029 GB, free: 10.34 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.0001538/0.189, allocations: 125.8 kB / 0.703 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.443e-05/0.189, allocations: 7.984 kB / 0.703 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.057e-05/0.1891, allocations: 11.97 kB / 0.7031 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.972e-06/0.1891, allocations: 7.938 kB / 0.7031 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1891, allocations: 0 / 0.7031 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1891, allocations: 0 / 0.7031 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.1916, allocations: 1.047 MB / 0.7041 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1916, allocations: 0 / 0.7041 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008121/0.1924, allocations: 111.8 kB / 0.7042 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1924, allocations: 3.938 kB / 0.7042 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.857e-05/0.1925, allocations: 23.94 kB / 0.7042 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1925, allocations: 0 / 0.7042 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1925, allocations: 0 / 0.7042 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002392/0.1949, allocations: 0.7917 MB / 0.705 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.1951, allocations: 120.9 kB / 0.7051 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.978e-05/0.1951, allocations: 4 kB / 0.7051 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006764/0.1958, allocations: 55.92 kB / 0.7052 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.348e-05/0.1959, allocations: 19.94 kB / 0.7052 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.494e-05/0.196, allocations: 27.92 kB / 0.7052 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.52e-05/0.196, allocations: 83.28 kB / 0.7053 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.196, allocations: 0 / 0.7053 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00036/0.1964, allocations: 52 kB / 0.7053 GB, free: 7.703 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.002803/0.1992, allocations: 1.341 MB / 0.7066 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001501/0.2007, allocations: 435.5 kB / 0.7071 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2007, allocations: 0 / 0.7071 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007623/0.2015, allocations: 219.7 kB / 0.7073 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.2019, allocations: 10.58 kB / 0.7073 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008677/0.2106, allocations: 2.938 MB / 0.7102 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.2109, allocations: 0.6969 MB / 0.7108 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006429/0.2115, allocations: 88.66 kB / 0.7109 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.2118, allocations: 63.3 kB / 0.711 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.2118, allocations: 4 kB / 0.711 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02732/0.2391, allocations: 4.578 MB / 0.7155 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.474/7.713, allocations: 2.844 kB / 0.7155 GB, free: 13.35 MB / 0.5137 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)