Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 108 kB / 17.06 MB, free: 6.016 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.001377/0.001377, allocations: 195.9 kB / 18 MB, free: 5.102 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.762/1.762, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1962/0.1962, allocations: 37.99 MB / 309.2 MB, free: 5.957 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.001355/0.001355, allocations: 71.89 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1501, allocations: 55.24 MB / 487.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006672/0.1568, allocations: 4.421 MB / 491.5 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002815/0.1597, allocations: 1.465 MB / 493 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.16, allocations: 15.94 kB / 493 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.1612, allocations: 374.4 kB / 493.4 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006201/0.1618, allocations: 250.8 kB / 493.6 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.1625, allocations: 243.4 kB / 493.8 MB, free: 1.566 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006733/0.1632, allocations: 0.5612 MB / 494.4 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000473/0.1637, allocations: 285 kB / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003645/0.1641, allocations: 259 kB / 494.9 MB, free: 488 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005259/0.1646, allocations: 351 kB / 495.3 MB, free: 136 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.616e-05/0.1647, allocations: 40 kB / 495.3 MB, free: 96 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004738/0.1652, allocations: 227.6 kB / 495.5 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002426/0.1654, allocations: 243.5 kB / 495.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003147/0.1657, allocations: 262.7 kB / 496 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007926/0.1665, allocations: 0.6659 MB / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1666, allocations: 0 / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1666, allocations: 0 / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1666, allocations: 0 / 496.7 MB, free: 14.71 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001668/0.1683, allocations: 0.7778 MB / 497.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.1683, allocations: 11.89 kB / 497.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006131/0.1689, allocations: 92.2 kB / 497.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008264/0.1698, allocations: 427.2 kB / 498 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.1698, allocations: 21.38 kB / 498 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.17, allocations: 56.05 kB / 498.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.171, allocations: 0.6726 MB / 498.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.1711, allocations: 4 kB / 498.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.049e-05/0.1711, allocations: 23.97 kB / 498.8 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001819/0.1713, allocations: 52.95 kB / 498.8 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009771/0.1723, allocations: 0.6674 MB / 499.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003577/0.1759, allocations: 2.505 MB / 0.4902 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005426/0.1765, allocations: 341.3 kB / 0.4906 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003207/0.1768, allocations: 233.6 kB / 0.4908 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.1769, allocations: 4.266 kB / 0.4908 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.1769, allocations: 42.48 kB / 0.4908 GB, free: 8.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.104e-06/0.1769, allocations: 0 / 0.4908 GB, free: 8.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.002229/0.1791, allocations: 1.349 MB / 0.4921 GB, free: 7.109 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.1792, allocations: 85.05 kB / 0.4922 GB, free: 7.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/0.1795, allocations: 300.5 kB / 0.4925 GB, free: 6.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.1796, allocations: 29.7 kB / 0.4925 GB, free: 6.672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.1798, allocations: 259.6 kB / 0.4928 GB, free: 6.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.1799, allocations: 149.8 kB / 0.4929 GB, free: 6.262 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.1801, allocations: 98.14 kB / 0.493 GB, free: 6.156 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1802, allocations: 354.8 kB / 0.4934 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.1805, allocations: 201 kB / 0.4935 GB, free: 5.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004226/0.181, allocations: 361.1 kB / 0.4939 GB, free: 5.184 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007503/0.1817, allocations: 0.6096 MB / 0.4945 GB, free: 4.504 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.1817, allocations: 0 / 0.4945 GB, free: 4.504 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009544/0.1827, allocations: 0.6341 MB / 0.4951 GB, free: 3.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.1827, allocations: 8 kB / 0.4951 GB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.1828, allocations: 8.688 kB / 0.4951 GB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/0.1828, allocations: 8 kB / 0.4951 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004332/0.1832, allocations: 119.8 kB / 0.4952 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.115e-05/0.1833, allocations: 19.91 kB / 0.4953 GB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.1835, allocations: 23.97 kB / 0.4953 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/0.1836, allocations: 24 kB / 0.4953 GB, free: 3.656 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.000261/0.1838, allocations: 213.6 kB / 0.4955 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.1839, allocations: 43.47 kB / 0.4956 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007677/0.1847, allocations: 0.4888 MB / 0.496 GB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.579e-05/0.1848, allocations: 15.98 kB / 0.496 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.1848, allocations: 4 kB / 0.4961 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1848, allocations: 0 / 0.4961 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.1865, allocations: 1.101 MB / 0.4971 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.1865, allocations: 0 / 0.4971 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.1869, allocations: 75.98 kB / 0.4972 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.1869, allocations: 4 kB / 0.4972 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.128e-05/0.187, allocations: 11.98 kB / 0.4972 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.187, allocations: 4 kB / 0.4972 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.187, allocations: 0 / 0.4972 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.188, allocations: 0.8281 MB / 0.498 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.155e-05/0.1881, allocations: 108.8 kB / 0.4981 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.24e-05/0.1882, allocations: 11.91 kB / 0.4981 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.1884, allocations: 19.92 kB / 0.4982 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.1884, allocations: 27.91 kB / 0.4982 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-05/0.1885, allocations: 19.97 kB / 0.4982 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002019/0.1887, allocations: 211.1 kB / 0.4984 GB, free: 368 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1887, allocations: 4 kB / 0.4984 GB, free: 364 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005131/0.1892, allocations: 107.9 kB / 0.4985 GB, free: 256 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002624/0.1895, allocations: 132 kB / 0.4986 GB, free: 116 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007508/0.1903, allocations: 0.4935 MB / 0.4991 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1903, allocations: 0 / 0.4991 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002795/0.1906, allocations: 223.8 kB / 0.4993 GB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000563/0.1911, allocations: 80.91 kB / 0.4994 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.1929, allocations: 1.119 MB / 0.5005 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/0.1934, allocations: 0.8626 MB / 0.5013 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002926/0.1937, allocations: 127.1 kB / 0.5015 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.1939, allocations: 35.44 kB / 0.5015 GB, free: 13.11 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1939, allocations: 3.938 kB / 0.5015 GB, free: 13.11 MB / 398.1 MB Notification: Performance of Templates: time 0.008945/0.2028, allocations: 3.947 MB / 0.5054 GB, free: 9.156 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)