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.346/1.346, allocations: 251.9 MB / 266.9 MB, free: 11.05 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.001093/0.001093, allocations: 185.3 kB / 326.5 MB, free: 2.25 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.604/1.604, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.0008995/0.0008994, allocations: 98.28 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003409/0.000341, allocations: 10.83 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1894, allocations: 106.3 MB / 0.9002 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0008794/0.1903, allocations: 0.5083 MB / 0.9007 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001507/0.1918, allocations: 1.456 MB / 0.9021 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.009e-05/0.1919, allocations: 4 kB / 0.9021 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.763e-05/0.1919, allocations: 0 / 0.9021 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 3.878e-05/0.1919, allocations: 4 kB / 0.9021 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.1924, allocations: 110.4 kB / 0.9022 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.839e-05/0.1924, allocations: 31.91 kB / 0.9022 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.1925, allocations: 7.984 kB / 0.9022 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.418e-05/0.1925, allocations: 31.91 kB / 0.9023 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.897e-05/0.1926, allocations: 31.89 kB / 0.9023 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.1926, allocations: 4 kB / 0.9023 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003356/0.193, allocations: 311.5 kB / 0.9026 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.4e-05/0.193, allocations: 7.984 kB / 0.9026 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.366e-05/0.193, allocations: 37.64 kB / 0.9026 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.1932, allocations: 151.8 kB / 0.9028 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.1932, allocations: 0 / 0.9028 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1933, allocations: 0 / 0.9028 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.087e-06/0.1933, allocations: 0 / 0.9028 GB, free: 61.12 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.0005224/0.1938, allocations: 395.5 kB / 0.9032 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1938, allocations: 8.031 kB / 0.9032 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.37e-05/0.1939, allocations: 38.55 kB / 0.9032 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004624/0.1943, allocations: 83.88 kB / 0.9033 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.16e-05/0.1944, allocations: 175 kB / 0.9034 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.1945, allocations: 4 kB / 0.9034 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.1945, allocations: 11.91 kB / 0.9035 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.1949, allocations: 121.5 kB / 0.9036 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1949, allocations: 0 / 0.9036 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1949, allocations: 15.94 kB / 0.9036 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1949, allocations: 0 / 0.9036 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004565/0.1954, allocations: 123.9 kB / 0.9037 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005015/0.1959, allocations: 332.7 kB / 0.904 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006098/0.1965, allocations: 194.4 kB / 0.9042 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.1965, allocations: 0 / 0.9042 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.1966, allocations: 38.45 kB / 0.9042 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.1966, allocations: 0 / 0.9042 GB, free: 59.45 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.01706/0.2136, allocations: 3.181 MB / 0.9074 GB, free: 56.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.2137, allocations: 51.41 kB / 0.9074 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.576e-05/0.2137, allocations: 101.9 kB / 0.9075 GB, free: 56 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.2138, allocations: 29.64 kB / 0.9075 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.603e-05/0.2138, allocations: 95.97 kB / 0.9076 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.809e-05/0.2139, allocations: 35.45 kB / 0.9077 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.214, allocations: 8 kB / 0.9077 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.016e-05/0.214, allocations: 314.8 kB / 0.908 GB, free: 55.5 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/0.2146, allocations: 215.8 kB / 0.9082 GB, free: 55.29 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.2153, allocations: 215.8 kB / 0.9084 GB, free: 55.08 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006441/0.2159, allocations: 223.8 kB / 0.9086 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2159, allocations: 0 / 0.9086 GB, free: 54.86 MB / 0.6042 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001387/0.2173, allocations: 0.5225 MB / 0.9091 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2173, allocations: 7.938 kB / 0.9091 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.2174, allocations: 0 / 0.9091 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.2174, allocations: 0 / 0.9091 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000804/0.2182, allocations: 123.7 kB / 0.9092 GB, free: 54.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.2182, allocations: 4 kB / 0.9092 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005903/0.2188, allocations: 55.94 kB / 0.9093 GB, free: 54.15 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.2189, allocations: 23.94 kB / 0.9093 GB, free: 54.12 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.0001343/0.219, allocations: 117.8 kB / 0.9094 GB, free: 54 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.45e-05/0.2191, allocations: 11.95 kB / 0.9094 GB, free: 53.99 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.005e-05/0.2191, allocations: 7.969 kB / 0.9094 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2191, allocations: 4 kB / 0.9094 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2191, allocations: 192 / 0.9094 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2192, allocations: 0 / 0.9094 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.221, allocations: 1.105 MB / 0.9105 GB, free: 52.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.2211, allocations: 0 / 0.9105 GB, free: 52.76 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007503/0.2218, allocations: 123.8 kB / 0.9106 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.2218, allocations: 96 / 0.9106 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.143e-05/0.2219, allocations: 27.86 kB / 0.9107 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2219, allocations: 0 / 0.9107 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2219, allocations: 0 / 0.9107 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.224, allocations: 0.8738 MB / 0.9115 GB, free: 51.72 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.2241, allocations: 117 kB / 0.9116 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.652e-05/0.2242, allocations: 64 / 0.9116 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000658/0.2249, allocations: 71.92 kB / 0.9117 GB, free: 51.52 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.808e-05/0.2249, allocations: 31.86 kB / 0.9117 GB, free: 51.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.225, allocations: 23.94 kB / 0.9117 GB, free: 51.46 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.63e-05/0.225, allocations: 83.27 kB / 0.9118 GB, free: 51.38 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.01e-07/0.225, allocations: 0 / 0.9118 GB, free: 51.38 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003634/0.2254, allocations: 52 kB / 0.9119 GB, free: 51.33 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.002335/0.2277, allocations: 1.411 MB / 0.9133 GB, free: 49.89 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001532/0.2293, allocations: 479.5 kB / 0.9137 GB, free: 49.42 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.2293, allocations: 0 / 0.9137 GB, free: 49.42 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0009432/0.2303, allocations: 251.7 kB / 0.914 GB, free: 49.18 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.2306, allocations: 7.375 kB / 0.914 GB, free: 49.17 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006194/0.2368, allocations: 1.86 MB / 0.9158 GB, free: 47.27 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.2369, allocations: 0.6926 MB / 0.9165 GB, free: 46.55 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0006537/0.2376, allocations: 92.66 kB / 0.9165 GB, free: 46.46 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/0.2379, allocations: 71.3 kB / 0.9166 GB, free: 46.39 MB / 0.6042 GB Notification: Performance of SimCode: time 4.61e-07/0.2379, allocations: 3.938 kB / 0.9166 GB, free: 46.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01445/0.2523, allocations: 4.138 MB / 0.9207 GB, free: 42.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.2526, allocations: 220.6 kB / 0.9209 GB, free: 42.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/1.853, allocations: 0 / 0.9209 GB, free: 42.17 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)