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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001867/0.001867, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.427/1.427, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002024/0.002024, allocations: 291 kB / 290.2 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9383/0.9383, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002692/0.002692, allocations: 92.58 kB / 0.5945 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1739, allocations: 86.99 MB / 0.6795 GB, free: 1.172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001982/0.1759, allocations: 0.8334 MB / 0.6803 GB, free: 356 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.1777, allocations: 1.494 MB / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.41e-05/0.1777, allocations: 0.875 kB / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.002e-05/0.1778, allocations: 0 / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.943e-05/0.1778, allocations: 0.7188 kB / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.1782, allocations: 118.3 kB / 0.6818 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.704e-05/0.1783, allocations: 55.84 kB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.05e-05/0.1784, allocations: 4 kB / 0.6819 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.652e-05/0.1784, allocations: 27.91 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.58e-05/0.1785, allocations: 31.89 kB / 0.682 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.1786, allocations: 4 kB / 0.682 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000429/0.179, allocations: 311.4 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.906e-05/0.179, allocations: 11.92 kB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.902e-05/0.1791, allocations: 31.84 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.1794, allocations: 207.8 kB / 0.6825 GB, free: 14.05 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1794, allocations: 0 / 0.6825 GB, free: 14.05 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1794, allocations: 4 kB / 0.6825 GB, free: 14.05 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1794, allocations: 0 / 0.6825 GB, free: 14.05 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.0006719/0.1801, allocations: 407.3 kB / 0.6829 GB, free: 13.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.1801, allocations: 8.031 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000484/0.1806, allocations: 68.77 kB / 0.683 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.1808, allocations: 172.3 kB / 0.6831 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.1808, allocations: 8.375 kB / 0.6831 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.465e-05/0.1809, allocations: 4.375 kB / 0.6831 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/0.1812, allocations: 113.9 kB / 0.6832 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.1813, allocations: 0 / 0.6832 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.1813, allocations: 0 / 0.6832 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.1813, allocations: 4 kB / 0.6832 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004699/0.1818, allocations: 102.6 kB / 0.6833 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005871/0.1824, allocations: 344.5 kB / 0.6837 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000657/0.183, allocations: 150.5 kB / 0.6838 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.1833, allocations: 52.81 kB / 0.6839 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.1833, allocations: 4 kB / 0.6839 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.1833, allocations: 42.48 kB / 0.6839 GB, free: 12.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.1833, allocations: 0 / 0.6839 GB, free: 12.44 MB / 494.1 MB 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.01872/0.2021, allocations: 2.843 MB / 0.6867 GB, free: 9.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.2021, allocations: 59.34 kB / 0.6867 GB, free: 9.43 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.514e-05/0.2022, allocations: 101.8 kB / 0.6868 GB, free: 9.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.574e-05/0.2023, allocations: 25.7 kB / 0.6869 GB, free: 9.289 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.982e-05/0.2023, allocations: 92.12 kB / 0.687 GB, free: 9.195 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.2024, allocations: 39.36 kB / 0.687 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.2026, allocations: 69.58 kB / 0.6871 GB, free: 9.082 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.2027, allocations: 318.8 kB / 0.6874 GB, free: 8.762 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006609/0.2034, allocations: 187.9 kB / 0.6875 GB, free: 8.578 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006399/0.204, allocations: 199.8 kB / 0.6877 GB, free: 8.383 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.2053, allocations: 396.5 kB / 0.6881 GB, free: 7.992 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2053, allocations: 0 / 0.6881 GB, free: 7.992 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001504/0.2069, allocations: 472.6 kB / 0.6886 GB, free: 7.527 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2069, allocations: 4 kB / 0.6886 GB, free: 7.523 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2069, allocations: 0 / 0.6886 GB, free: 7.523 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.2069, allocations: 8 kB / 0.6886 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008328/0.2078, allocations: 99.8 kB / 0.6887 GB, free: 7.418 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.2078, allocations: 3.938 kB / 0.6887 GB, free: 7.414 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006183/0.2084, allocations: 47.94 kB / 0.6887 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.956e-05/0.2085, allocations: 23.94 kB / 0.6887 GB, free: 7.344 MB / 494.1 MB 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.0001488/0.2086, allocations: 127 kB / 0.6889 GB, free: 7.211 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.38e-05/0.2087, allocations: 7.906 kB / 0.6889 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.038e-05/0.2088, allocations: 15.97 kB / 0.6889 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2088, allocations: 4 kB / 0.6889 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2088, allocations: 3.938 kB / 0.6889 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.2088, allocations: 0 / 0.6889 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.2109, allocations: 1.043 MB / 0.6899 GB, free: 6.027 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.211, allocations: 4 kB / 0.6899 GB, free: 6.023 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008426/0.2118, allocations: 107.8 kB / 0.69 GB, free: 5.918 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2118, allocations: 3.938 kB / 0.69 GB, free: 5.914 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.421e-05/0.2119, allocations: 19.94 kB / 0.69 GB, free: 5.895 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2119, allocations: 7.938 kB / 0.69 GB, free: 5.887 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2119, allocations: 0 / 0.69 GB, free: 5.887 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.2142, allocations: 0.7917 MB / 0.6908 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.2144, allocations: 125 kB / 0.6909 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.756e-05/0.2144, allocations: 0 / 0.6909 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007303/0.2152, allocations: 51.92 kB / 0.691 GB, free: 4.887 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.2153, allocations: 23.94 kB / 0.691 GB, free: 4.863 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.808e-05/0.2154, allocations: 27.92 kB / 0.691 GB, free: 4.836 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.652e-05/0.2154, allocations: 83.38 kB / 0.6911 GB, free: 4.754 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2154, allocations: 3.938 kB / 0.6911 GB, free: 4.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003779/0.2158, allocations: 44 kB / 0.6912 GB, free: 4.707 MB / 494.1 MB 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.000217/0.216, allocations: 125.6 kB / 0.6913 GB, free: 4.578 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.2175, allocations: 423.5 kB / 0.6917 GB, free: 4.164 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2175, allocations: 0 / 0.6917 GB, free: 4.164 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007228/0.2182, allocations: 219.7 kB / 0.6919 GB, free: 3.949 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.2186, allocations: 11.98 kB / 0.6919 GB, free: 3.938 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004381/0.223, allocations: 0.7921 MB / 0.6927 GB, free: 3.117 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.2232, allocations: 0.6888 MB / 0.6934 GB, free: 2.402 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006987/0.2239, allocations: 88.66 kB / 0.6934 GB, free: 2.316 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.2242, allocations: 59.3 kB / 0.6935 GB, free: 2.258 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.2242, allocations: 4 kB / 0.6935 GB, free: 2.254 MB / 494.1 MB Notification: Performance of Templates: time 0.005927/0.2302, allocations: 3.315 MB / 0.6967 GB, free: 14.94 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)