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.001191/0.001191, allocations: 116.2 kB / 17.07 MB, free: 6 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.001425/0.001425, 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.685/1.685, 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.2135/0.2135, allocations: 37.99 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.001464/0.001464, allocations: 63.91 kB / 431.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1487, allocations: 55.25 MB / 487.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.007069/0.1558, allocations: 4.413 MB / 491.5 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002796/0.1587, allocations: 1.473 MB / 493 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.159, allocations: 19.88 kB / 493 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.1603, allocations: 370.5 kB / 493.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000678/0.1609, allocations: 250.8 kB / 493.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007893/0.1617, allocations: 243.4 kB / 493.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006768/0.1624, allocations: 0.5534 MB / 494.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004794/0.1629, allocations: 289 kB / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.1633, allocations: 258.9 kB / 494.9 MB, free: 488 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005048/0.1638, allocations: 359 kB / 495.3 MB, free: 128 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.47e-05/0.1639, allocations: 36 kB / 495.3 MB, free: 92 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004863/0.1644, allocations: 231.6 kB / 495.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.1646, allocations: 239.5 kB / 495.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003202/0.1649, allocations: 262.7 kB / 496 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007715/0.1657, allocations: 0.662 MB / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.1657, allocations: 0 / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1657, allocations: 0 / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.1658, 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.001801/0.1676, allocations: 0.7777 MB / 497.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.723e-05/0.1676, allocations: 15.89 kB / 497.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006628/0.1683, allocations: 88.23 kB / 497.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008316/0.1692, allocations: 423.2 kB / 498 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.1692, allocations: 33.36 kB / 498 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.1694, allocations: 44.12 kB / 498.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.1704, allocations: 0.6842 MB / 498.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.1704, allocations: 3.938 kB / 498.8 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.132e-05/0.1705, allocations: 16 kB / 498.8 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.1707, allocations: 48.97 kB / 498.8 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009995/0.1717, allocations: 0.6752 MB / 499.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003755/0.1755, allocations: 2.501 MB / 0.4902 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000563/0.176, allocations: 345.3 kB / 0.4906 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.1763, allocations: 221.7 kB / 0.4908 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.159e-05/0.1764, allocations: 16.23 kB / 0.4908 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.1764, allocations: 46.48 kB / 0.4908 GB, free: 8.508 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 1.913e-06/0.1764, allocations: 0 / 0.4908 GB, free: 8.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.002258/0.1787, allocations: 1.349 MB / 0.4921 GB, free: 7.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.1788, allocations: 81.11 kB / 0.4922 GB, free: 7.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.1791, allocations: 300.5 kB / 0.4925 GB, free: 6.703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/0.1791, allocations: 29.7 kB / 0.4925 GB, free: 6.668 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.1793, allocations: 259.6 kB / 0.4928 GB, free: 6.406 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.1795, allocations: 157.8 kB / 0.4929 GB, free: 6.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.1797, allocations: 94.16 kB / 0.493 GB, free: 6.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.1799, allocations: 354.8 kB / 0.4934 GB, free: 5.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003394/0.1803, allocations: 193 kB / 0.4935 GB, free: 5.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.1807, allocations: 373 kB / 0.4939 GB, free: 5.172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007591/0.1815, allocations: 0.6058 MB / 0.4945 GB, free: 4.496 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1815, allocations: 0 / 0.4945 GB, free: 4.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009046/0.1824, allocations: 0.6302 MB / 0.4951 GB, free: 3.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.1824, allocations: 8 kB / 0.4951 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1825, allocations: 4.688 kB / 0.4951 GB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.1825, allocations: 8 kB / 0.4951 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.1829, allocations: 119.8 kB / 0.4952 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.1829, allocations: 8 kB / 0.4953 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/0.1832, allocations: 27.97 kB / 0.4953 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.101e-05/0.1832, allocations: 23.98 kB / 0.4953 GB, free: 3.664 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.00027/0.1835, allocations: 213.6 kB / 0.4955 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.881e-05/0.1836, allocations: 43.45 kB / 0.4955 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008432/0.1845, allocations: 0.4965 MB / 0.496 GB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.35e-05/0.1845, allocations: 12 kB / 0.496 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1845, allocations: 0 / 0.496 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.1845, allocations: 3.984 kB / 0.496 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.1864, allocations: 1.097 MB / 0.4971 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.1864, allocations: 4.094 kB / 0.4971 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003478/0.1867, allocations: 79.83 kB / 0.4972 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.1868, allocations: 4 kB / 0.4972 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.1868, allocations: 8 kB / 0.4972 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1868, allocations: 0 / 0.4972 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1868, allocations: 4 kB / 0.4972 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.1879, allocations: 0.832 MB / 0.498 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.192e-05/0.188, allocations: 104.7 kB / 0.4981 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.722e-05/0.1881, allocations: 15.94 kB / 0.4981 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.1883, allocations: 15.98 kB / 0.4982 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.1883, allocations: 31.91 kB / 0.4982 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.1884, allocations: 8 kB / 0.4982 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.1886, allocations: 211.1 kB / 0.4984 GB, free: 380 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1886, allocations: 7.938 kB / 0.4984 GB, free: 372 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004973/0.1891, allocations: 115.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.0002408/0.1894, allocations: 132.1 kB / 0.4986 GB, free: 116 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007597/0.1901, allocations: 0.4895 MB / 0.4991 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1901, allocations: 0 / 0.4991 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002844/0.1904, allocations: 227.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.0005263/0.191, allocations: 84.84 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.001803/0.1928, allocations: 1.108 MB / 0.5005 GB, free: 14.17 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.1933, allocations: 0.8704 MB / 0.5013 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003146/0.1936, 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.0001014/0.1938, allocations: 39.42 kB / 0.5015 GB, free: 13.11 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1938, allocations: 4 kB / 0.5015 GB, free: 13.11 MB / 398.1 MB Notification: Performance of Templates: time 0.009143/0.2029, allocations: 3.974 MB / 0.5054 GB, free: 9.125 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)