Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 116.1 kB / 16.37 MB, free: 6.012 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.001321/0.001321, allocations: 194.3 kB / 17.31 MB, free: 5.613 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.26/1.26, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002049/0.002049, allocations: 283.8 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8979/0.8979, allocations: 169.3 MB / 0.4989 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 98.91 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1715, allocations: 86.97 MB / 0.6816 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001639/0.1731, allocations: 0.5952 MB / 0.6822 GB, free: 6.859 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.1748, allocations: 1.458 MB / 0.6836 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.982e-05/0.1749, allocations: 0 / 0.6836 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.337e-05/0.1749, allocations: 0 / 0.6836 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.524e-05/0.1749, allocations: 0 / 0.6836 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004542/0.1754, allocations: 135.5 kB / 0.6838 GB, free: 5.25 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.242e-05/0.1755, allocations: 27.97 kB / 0.6838 GB, free: 5.223 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.238e-05/0.1755, allocations: 11.92 kB / 0.6838 GB, free: 5.211 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.006e-05/0.1756, allocations: 15.98 kB / 0.6838 GB, free: 5.195 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.978e-05/0.1756, allocations: 27.91 kB / 0.6838 GB, free: 5.168 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.1757, allocations: 0 / 0.6838 GB, free: 5.168 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004342/0.1761, allocations: 315.3 kB / 0.6841 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.581e-05/0.1761, allocations: 4 kB / 0.6841 GB, free: 4.855 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.932e-05/0.1762, allocations: 15.92 kB / 0.6842 GB, free: 4.84 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002782/0.1764, allocations: 187.7 kB / 0.6843 GB, free: 4.656 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1765, allocations: 3.938 kB / 0.6843 GB, free: 4.652 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1765, allocations: 4 kB / 0.6843 GB, free: 4.648 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1765, allocations: 0 / 0.6843 GB, free: 4.648 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004842/0.177, allocations: 367.3 kB / 0.6847 GB, free: 4.246 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.177, allocations: 8.031 kB / 0.6847 GB, free: 4.238 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004299/0.1774, allocations: 68.84 kB / 0.6848 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.1776, allocations: 168.2 kB / 0.6849 GB, free: 3.969 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.1776, allocations: 384 / 0.6849 GB, free: 3.969 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.1776, allocations: 12.38 kB / 0.6849 GB, free: 3.957 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.1778, allocations: 81.88 kB / 0.685 GB, free: 3.871 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.1779, allocations: 0 / 0.685 GB, free: 3.871 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.1779, allocations: 3.984 kB / 0.685 GB, free: 3.867 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.1779, allocations: 4 kB / 0.685 GB, free: 3.863 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002845/0.1782, allocations: 63.94 kB / 0.6851 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/0.1783, allocations: 161.7 kB / 0.6852 GB, free: 3.594 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005407/0.1789, allocations: 122.6 kB / 0.6854 GB, free: 3.465 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.1791, allocations: 44.92 kB / 0.6854 GB, free: 3.418 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004374/0.1795, allocations: 157 kB / 0.6855 GB, free: 3.246 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.1795, allocations: 38.44 kB / 0.6856 GB, free: 3.199 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.1795, allocations: 4 kB / 0.6856 GB, free: 3.195 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.001092/0.1806, allocations: 410.1 kB / 0.686 GB, free: 2.742 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.1807, allocations: 51.41 kB / 0.686 GB, free: 2.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.207e-05/0.1807, allocations: 93.86 kB / 0.6861 GB, free: 2.578 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1808, allocations: 33.83 kB / 0.6861 GB, free: 2.539 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.425e-05/0.1808, allocations: 80.14 kB / 0.6862 GB, free: 2.457 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.1808, allocations: 15.8 kB / 0.6862 GB, free: 2.441 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.1809, allocations: 17.72 kB / 0.6863 GB, free: 2.418 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.137e-05/0.181, allocations: 314.8 kB / 0.6866 GB, free: 2.102 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.1811, allocations: 39.95 kB / 0.6866 GB, free: 2.062 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.1813, allocations: 39.91 kB / 0.6866 GB, free: 2.023 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002779/0.1816, allocations: 72.8 kB / 0.6867 GB, free: 1.949 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1816, allocations: 4 kB / 0.6867 GB, free: 1.945 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003242/0.1819, allocations: 117.5 kB / 0.6868 GB, free: 1.824 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1819, allocations: 8 kB / 0.6868 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1819, allocations: 0 / 0.6868 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.182, allocations: 0 / 0.6868 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.1821, allocations: 19.98 kB / 0.6868 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1821, allocations: 4 kB / 0.6868 GB, free: 1.793 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.012e-05/0.1822, allocations: 11.98 kB / 0.6869 GB, free: 1.781 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.1822, allocations: 7.984 kB / 0.6869 GB, free: 1.773 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 (6): * Single equations (assignments): 6 * 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 7.312e-05/0.1823, allocations: 109.8 kB / 0.687 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.1823, allocations: 7.844 kB / 0.687 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004177/0.1828, allocations: 141.3 kB / 0.6871 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1828, allocations: 4 kB / 0.6871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1828, allocations: 4 kB / 0.6871 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1828, allocations: 0 / 0.6871 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.1829, allocations: 165.7 kB / 0.6873 GB, free: 1.281 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1829, allocations: 4 kB / 0.6873 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.1831, allocations: 27.92 kB / 0.6873 GB, free: 1.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1831, allocations: 0 / 0.6873 GB, free: 1.25 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.1831, allocations: 3.984 kB / 0.6873 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1831, allocations: 0 / 0.6873 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1831, allocations: 0 / 0.6873 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005131/0.1836, allocations: 181 kB / 0.6875 GB, free: 1.051 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.163e-05/0.1837, allocations: 96.97 kB / 0.6876 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.1837, allocations: 4.062 kB / 0.6876 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.1839, allocations: 11.98 kB / 0.6876 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.347e-05/0.1839, allocations: 7.984 kB / 0.6876 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.1839, allocations: 336 / 0.6876 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.187e-05/0.1839, allocations: 83.28 kB / 0.6877 GB, free: 0.832 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.184, allocations: 0 / 0.6877 GB, free: 0.832 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.1842, allocations: 27.98 kB / 0.6877 GB, free: 0.8047 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0001713/0.1844, allocations: 135.2 kB / 0.6878 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003558/0.1847, allocations: 91.86 kB / 0.6879 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1847, allocations: 0 / 0.6879 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.1849, allocations: 39.97 kB / 0.688 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.185, allocations: 5.312 kB / 0.688 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005772/0.1856, allocations: 189.4 kB / 0.6882 GB, free: 324 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2318/0.4174, allocations: 0.6762 MB / 0.6888 GB, free: 17.76 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.4176, allocations: 18.06 kB / 0.6888 GB, free: 17.76 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.5e-05/0.4177, allocations: 12.47 kB / 0.6888 GB, free: 17.75 MB / 494.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4177, allocations: 0.5625 kB / 0.6888 GB, free: 17.75 MB / 494.1 MB Notification: Performance of Templates: time 0.00358/0.4212, allocations: 1.161 MB / 0.69 GB, free: 17.72 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)