Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 112.7 kB / 17.06 MB, free: 5.996 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.001037/0.001037, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1788/0.1788, allocations: 37.98 MB / 309.2 MB, free: 5.938 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 64.47 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1664, allocations: 55.25 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005794/0.1723, allocations: 3.324 MB / 490.4 MB, free: 4.984 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.1745, allocations: 1.268 MB / 491.7 MB, free: 3.707 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002367/0.1747, allocations: 7.938 kB / 491.7 MB, free: 3.699 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008025/0.1756, allocations: 163.3 kB / 491.9 MB, free: 3.539 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005187/0.1761, allocations: 175.2 kB / 492 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.1765, allocations: 135.6 kB / 492.2 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003801/0.1769, allocations: 275 kB / 492.4 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003727/0.1773, allocations: 130.1 kB / 492.6 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.1775, allocations: 127.5 kB / 492.7 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.1777, allocations: 115.5 kB / 492.8 MB, free: 2.602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.1777, allocations: 12 kB / 492.8 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004056/0.1781, allocations: 231.4 kB / 493 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.599e-05/0.1782, allocations: 51.83 kB / 493.1 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.1783, allocations: 103.5 kB / 493.2 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.1788, allocations: 287.1 kB / 493.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.1788, allocations: 0 / 493.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.439e-06/0.1788, allocations: 0 / 493.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.1789, allocations: 3.938 kB / 493.5 MB, free: 1.926 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008386/0.1797, allocations: 0.4913 MB / 494 MB, free: 1.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1798, allocations: 11.89 kB / 494 MB, free: 1.375 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007118/0.1805, allocations: 76.58 kB / 494.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.1808, allocations: 263.8 kB / 494.3 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.1809, allocations: 20.7 kB / 494.3 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.375e-05/0.1809, allocations: 12.38 kB / 494.3 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004294/0.1813, allocations: 272 kB / 494.6 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1814, allocations: 0 / 494.6 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.1814, allocations: 8 kB / 494.6 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.1814, allocations: 12.31 kB / 494.6 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.1818, allocations: 232.3 kB / 494.9 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.1836, allocations: 1.202 MB / 496.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/0.1839, allocations: 141.2 kB / 496.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.6e-05/0.184, allocations: 45.77 kB / 496.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.445e-05/0.1841, allocations: 8 kB / 496.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.82e-05/0.1841, allocations: 34.56 kB / 496.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.1841, allocations: 0 / 496.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004156/0.1845, allocations: 165.3 kB / 496.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.188e-05/0.1846, allocations: 81.11 kB / 496.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002563/0.1849, allocations: 203 kB / 496.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.1849, allocations: 29.7 kB / 496.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.1851, allocations: 152 kB / 496.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.332e-05/0.1851, allocations: 47.36 kB / 496.9 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.888e-05/0.1852, allocations: 37.7 kB / 497 MB, free: 14.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.1854, allocations: 330.8 kB / 497.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.265e-05/0.1855, allocations: 43.84 kB / 497.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.1857, allocations: 126.2 kB / 497.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.1859, allocations: 178.2 kB / 497.6 MB, free: 13.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1859, allocations: 3.938 kB / 497.6 MB, free: 13.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003246/0.1863, allocations: 213.6 kB / 497.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1863, allocations: 4 kB / 497.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.1863, allocations: 4 kB / 497.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.956e-05/0.1863, allocations: 7.938 kB / 497.9 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002699/0.1866, allocations: 43.97 kB / 497.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.188, allocations: 1.428 MB / 499.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.1881, allocations: 27.72 kB / 499.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.1881, allocations: 12.16 kB / 499.4 MB, free: 11.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001922/0.1883, allocations: 141.8 kB / 499.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.524e-05/0.1884, allocations: 15.81 kB / 499.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002521/0.1887, allocations: 147 kB / 499.7 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1887, allocations: 7.938 kB / 499.7 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1887, allocations: 0 / 499.7 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1887, allocations: 0 / 499.7 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007876/0.1895, allocations: 0.492 MB / 0.4885 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.1895, allocations: 0 / 0.4885 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.1897, allocations: 27.98 kB / 0.4885 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.1897, allocations: 4 kB / 0.4885 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.1897, allocations: 96 / 0.4885 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.1909, allocations: 1.428 MB / 0.4899 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1909, allocations: 0 / 0.4899 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003575/0.1913, allocations: 318.3 kB / 0.4902 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.918e-05/0.1913, allocations: 92.95 kB / 0.4903 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.1914, allocations: 4 kB / 0.4903 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.699e-05/0.1915, allocations: 4 kB / 0.4903 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.1915, allocations: 11.98 kB / 0.4903 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.1916, allocations: 8.062 kB / 0.4903 GB, free: 8.547 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001716/0.1917, allocations: 152.4 kB / 0.4904 GB, free: 8.398 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1917, allocations: 0 / 0.4904 GB, free: 8.398 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003811/0.1921, allocations: 51.84 kB / 0.4905 GB, free: 8.348 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001906/0.1923, allocations: 103.2 kB / 0.4906 GB, free: 8.238 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.1927, allocations: 128.4 kB / 0.4907 GB, free: 8.113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.1927, allocations: 8.062 kB / 0.4907 GB, free: 8.105 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001517/0.1929, allocations: 55.84 kB / 0.4908 GB, free: 8.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.1933, allocations: 39.84 kB / 0.4908 GB, free: 8.012 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.1945, allocations: 0.5203 MB / 0.4913 GB, free: 7.461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/0.1949, allocations: 0.7398 MB / 0.492 GB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.195, allocations: 33.52 kB / 0.4921 GB, free: 6.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.1951, allocations: 19.42 kB / 0.4921 GB, free: 6.645 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1951, allocations: 0 / 0.4921 GB, free: 6.645 MB / 382.1 MB Notification: Performance of Templates: time 0.005609/0.2007, allocations: 1.547 MB / 0.4936 GB, free: 5.098 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)