Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_maint_7_0_x_Buildings_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.324/1.324, allocations: 252 MB / 267 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000905/0.000905, allocations: 180.8 kB / 326.6 MB, free: 2.203 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.4 MB / 0.5777 GB, free: 20.51 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007396/0.0007396, allocations: 92.23 kB / 0.6822 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002977, allocations: 15.66 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1589, allocations: 106.3 MB / 0.9003 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0008253/0.1597, allocations: 0.5048 MB / 0.9008 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001403/0.1611, allocations: 1.448 MB / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.1612, allocations: 0 / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.166e-05/0.1612, allocations: 0 / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 3.737e-05/0.1613, allocations: 7.922 kB / 0.9022 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.1616, allocations: 110.3 kB / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.852e-05/0.1617, allocations: 43.91 kB / 0.9024 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 3.961e-05/0.1617, allocations: 7.984 kB / 0.9024 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.391e-05/0.1618, allocations: 23.92 kB / 0.9024 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.734e-05/0.1618, allocations: 31.91 kB / 0.9024 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.1619, allocations: 4 kB / 0.9024 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003299/0.1622, allocations: 311.3 kB / 0.9027 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.416e-05/0.1622, allocations: 15.98 kB / 0.9028 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.169e-05/0.1623, allocations: 29.7 kB / 0.9028 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.1624, allocations: 151.8 kB / 0.9029 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1624, allocations: 3.938 kB / 0.9029 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1625, allocations: 3.938 kB / 0.9029 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.1625, allocations: 0 / 0.9029 GB, free: 61.47 MB / 0.6042 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.0004905/0.163, allocations: 391.5 kB / 0.9033 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.163, allocations: 16.02 kB / 0.9033 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.756e-05/0.163, allocations: 34.56 kB / 0.9034 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004318/0.1635, allocations: 83.86 kB / 0.9034 GB, free: 60.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.333e-05/0.1635, allocations: 171 kB / 0.9036 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.1636, allocations: 8 kB / 0.9036 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.1636, allocations: 7.906 kB / 0.9036 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000346/0.164, allocations: 121.5 kB / 0.9037 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.164, allocations: 0 / 0.9037 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.164, allocations: 8 kB / 0.9037 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.164, allocations: 3.984 kB / 0.9037 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004759/0.1645, allocations: 123.9 kB / 0.9039 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/0.165, allocations: 332.7 kB / 0.9042 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006334/0.1656, allocations: 186.4 kB / 0.9044 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.1659, allocations: 68.8 kB / 0.9044 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.1659, allocations: 7.953 kB / 0.9044 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.1659, allocations: 30.56 kB / 0.9045 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.166, allocations: 0 / 0.9045 GB, free: 59.73 MB / 0.6042 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.01844/0.1844, allocations: 3.186 MB / 0.9076 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.282e-05/0.1845, allocations: 51.41 kB / 0.9076 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.377e-05/0.1845, allocations: 105.8 kB / 0.9077 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.693e-05/0.1846, allocations: 29.7 kB / 0.9078 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.518e-05/0.1846, allocations: 88.05 kB / 0.9078 GB, free: 56.15 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.67e-05/0.1846, allocations: 39.39 kB / 0.9079 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.1847, allocations: 4 kB / 0.9079 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.878e-05/0.1847, allocations: 322.8 kB / 0.9082 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006392/0.1854, allocations: 215.8 kB / 0.9084 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006029/0.186, allocations: 215.8 kB / 0.9086 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/0.1866, allocations: 219.8 kB / 0.9088 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.51e-07/0.1866, allocations: 0 / 0.9088 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001407/0.188, allocations: 0.523 MB / 0.9093 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.1881, allocations: 8 kB / 0.9093 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1881, allocations: 0 / 0.9093 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.1881, allocations: 0 / 0.9093 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007868/0.1889, allocations: 123.8 kB / 0.9094 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.1889, allocations: 3.938 kB / 0.9094 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006154/0.1895, allocations: 59.94 kB / 0.9095 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/0.1896, allocations: 23.94 kB / 0.9095 GB, free: 54.41 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.1897, allocations: 117.8 kB / 0.9096 GB, free: 54.28 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.1898, allocations: 8.141 kB / 0.9096 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.651e-05/0.1898, allocations: 15.95 kB / 0.9097 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.1898, allocations: 7.984 kB / 0.9097 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1898, allocations: 4 kB / 0.9097 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.1899, allocations: 0 / 0.9097 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.1917, allocations: 1.098 MB / 0.9107 GB, free: 53.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1917, allocations: 0 / 0.9107 GB, free: 53.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007748/0.1925, allocations: 123.8 kB / 0.9109 GB, free: 52.91 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.1925, allocations: 4 kB / 0.9109 GB, free: 52.91 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.345e-05/0.1926, allocations: 19.94 kB / 0.9109 GB, free: 52.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1926, allocations: 3.938 kB / 0.9109 GB, free: 52.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1926, allocations: 0 / 0.9109 GB, free: 52.89 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.1947, allocations: 0.8698 MB / 0.9117 GB, free: 52 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.1948, allocations: 120.9 kB / 0.9119 GB, free: 51.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.1948, allocations: 0 / 0.9119 GB, free: 51.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006778/0.1955, allocations: 60 kB / 0.9119 GB, free: 51.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.69e-05/0.1956, allocations: 31.92 kB / 0.9119 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.654e-05/0.1957, allocations: 27.92 kB / 0.912 GB, free: 51.75 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.009e-05/0.1957, allocations: 79.28 kB / 0.912 GB, free: 51.67 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1957, allocations: 0 / 0.912 GB, free: 51.67 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003327/0.196, allocations: 48 kB / 0.9121 GB, free: 51.62 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002288/0.1983, allocations: 1.426 MB / 0.9135 GB, free: 50.17 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001314/0.1996, allocations: 471.5 kB / 0.9139 GB, free: 49.71 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.1997, allocations: 4 kB / 0.9139 GB, free: 49.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0006499/0.2003, allocations: 243.7 kB / 0.9142 GB, free: 49.46 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.2007, allocations: 8 kB / 0.9142 GB, free: 49.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00633/0.207, allocations: 1.86 MB / 0.916 GB, free: 47.55 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.435e-05/0.2071, allocations: 0.6926 MB / 0.9167 GB, free: 46.83 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.000675/0.2078, allocations: 96.66 kB / 0.9168 GB, free: 46.73 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002577/0.2081, allocations: 63.3 kB / 0.9168 GB, free: 46.67 MB / 0.6042 GB Notification: Performance of SimCode: time 5.11e-07/0.2081, allocations: 4 kB / 0.9168 GB, free: 46.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01335/0.2215, allocations: 4.168 MB / 0.9209 GB, free: 42.68 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/0.2217, allocations: 216.9 kB / 0.9211 GB, free: 42.44 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/1.985, allocations: 4.062 kB / 0.9211 GB, free: 42.44 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)