Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001253, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.001262/0.001262, allocations: 189.5 kB / 18.67 MB, free: 4.422 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.398/1.398, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1783/0.1783, allocations: 37.97 MB / 309.9 MB, free: 5.965 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.0019/0.0019, allocations: 63.91 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1283, allocations: 55.25 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007232/0.1355, allocations: 4.926 MB / 492.7 MB, free: 3.402 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004039/0.1396, allocations: 2.536 MB / 495.2 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005298/0.1402, allocations: 11.94 kB / 495.3 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.1418, allocations: 430.7 kB / 495.7 MB, free: 428 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001479/0.1433, allocations: 0.5096 MB / 496.2 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009435/0.1442, allocations: 283.2 kB / 496.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.1454, allocations: 0.7321 MB / 497.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006294/0.1461, allocations: 337.6 kB / 497.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006698/0.1468, allocations: 322.7 kB / 497.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006852/0.1475, allocations: 334.8 kB / 498.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.1476, allocations: 36 kB / 498.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.1489, allocations: 0.6274 MB / 498.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.1492, allocations: 199.5 kB / 499 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000444/0.1497, allocations: 246.8 kB / 499.3 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.1513, allocations: 0.7517 MB / 0.4883 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1513, allocations: 0 / 0.4883 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.1514, allocations: 7.984 kB / 0.4883 GB, free: 12.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.528e-05/0.1514, allocations: 0 / 0.4883 GB, free: 12.06 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001595/0.153, allocations: 0.7723 MB / 0.4891 GB, free: 11.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.153, allocations: 11.89 kB / 0.4891 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001863/0.1549, allocations: 204.1 kB / 0.4893 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006072/0.1555, allocations: 378.2 kB / 0.4896 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/0.1556, allocations: 29.38 kB / 0.4897 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.863e-05/0.1557, allocations: 44.36 kB / 0.4897 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.1568, allocations: 0.6265 MB / 0.4903 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.38e-05/0.1568, allocations: 12 kB / 0.4903 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.065e-05/0.1569, allocations: 16 kB / 0.4903 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.639e-05/0.157, allocations: 28.98 kB / 0.4904 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.158, allocations: 0.6128 MB / 0.491 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003584/0.1616, allocations: 2.249 MB / 0.4932 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006849/0.1623, allocations: 486.6 kB / 0.4936 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003279/0.1627, allocations: 237.7 kB / 0.4938 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.025e-05/0.1627, allocations: 8 kB / 0.4939 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.1628, allocations: 38.56 kB / 0.4939 GB, free: 6.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.234e-06/0.1628, allocations: 0 / 0.4939 GB, free: 6.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.003562/0.1663, allocations: 1.712 MB / 0.4956 GB, free: 4.266 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.1664, allocations: 93.17 kB / 0.4957 GB, free: 4.156 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.1667, allocations: 279 kB / 0.4959 GB, free: 3.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.1668, allocations: 29.7 kB / 0.4959 GB, free: 3.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.167, allocations: 228 kB / 0.4962 GB, free: 3.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.1671, allocations: 153.8 kB / 0.4963 GB, free: 3.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.1672, allocations: 86.16 kB / 0.4964 GB, free: 3.371 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1674, allocations: 350.7 kB / 0.4967 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.1677, allocations: 173 kB / 0.4969 GB, free: 2.852 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.168, allocations: 294.4 kB / 0.4972 GB, free: 2.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006618/0.1687, allocations: 0.508 MB / 0.4977 GB, free: 1.961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1687, allocations: 0 / 0.4977 GB, free: 1.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00118/0.1699, allocations: 0.6808 MB / 0.4983 GB, free: 1.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.1699, allocations: 8 kB / 0.4983 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.17, allocations: 4 kB / 0.4983 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005993/0.1706, allocations: 177.1 kB / 0.4985 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003702/0.1709, allocations: 99.81 kB / 0.4986 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003721/0.1747, allocations: 2.782 MB / 0.5013 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.175, allocations: 19.98 kB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.965e-05/0.1751, allocations: 20 kB / 0.5014 GB, free: 14.02 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002727/0.1753, allocations: 197.8 kB / 0.5016 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.921e-05/0.1754, allocations: 39.55 kB / 0.5016 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.1767, allocations: 0.6412 MB / 0.5022 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.397e-06/0.1767, allocations: 4 kB / 0.5022 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1767, allocations: 3.938 kB / 0.5022 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.1767, allocations: 7.938 kB / 0.5022 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002229/0.179, allocations: 1.352 MB / 0.5036 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.179, allocations: 0 / 0.5036 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.1794, allocations: 79.89 kB / 0.5036 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004682/0.1798, allocations: 140.7 kB / 0.5038 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.1799, allocations: 12 kB / 0.5038 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.183, allocations: 2.556 MB / 0.5063 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.183, allocations: 0 / 0.5063 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00146/0.1844, allocations: 0.9614 MB / 0.5072 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.1846, allocations: 116.6 kB / 0.5073 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.837e-05/0.1846, allocations: 11.94 kB / 0.5073 GB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.1849, allocations: 16.03 kB / 0.5073 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.467e-05/0.185, allocations: 31.95 kB / 0.5074 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.185, allocations: 16 kB / 0.5074 GB, free: 7.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002046/0.1852, allocations: 197.9 kB / 0.5076 GB, free: 7.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1852, allocations: 0 / 0.5076 GB, free: 7.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006193/0.1858, allocations: 136 kB / 0.5077 GB, free: 7.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000149/0.186, allocations: 111.2 kB / 0.5078 GB, free: 7.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.1873, allocations: 0.6735 MB / 0.5085 GB, free: 6.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1873, allocations: 4.188 kB / 0.5085 GB, free: 6.422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006959/0.188, allocations: 430.2 kB / 0.5089 GB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.1885, allocations: 76.67 kB / 0.509 GB, free: 5.914 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.1906, allocations: 1.182 MB / 0.5101 GB, free: 4.691 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.1911, allocations: 0.8668 MB / 0.511 GB, free: 3.801 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.1912, allocations: 39.42 kB / 0.511 GB, free: 3.762 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1912, allocations: 0 / 0.511 GB, free: 3.762 MB / 398.1 MB Notification: Performance of Templates: time 0.01084/0.2021, allocations: 6.917 MB / 0.5178 GB, free: 12.83 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)