Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 110.4 kB / 16.51 MB, free: 6.707 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.001293/0.001293, allocations: 190.6 kB / 17.43 MB, free: 6.066 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.451/1.451, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1858/0.1858, allocations: 38.03 MB / 329.3 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 65.72 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1297, allocations: 58.06 MB / 456.2 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01228/0.142, allocations: 10.46 MB / 466.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007307/0.1494, allocations: 3.648 MB / 470.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.1509, allocations: 67.62 kB / 470.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.1525, allocations: 354.1 kB / 470.7 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002704/0.1552, allocations: 0.7234 MB / 471.4 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.1567, allocations: 430.8 kB / 471.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003314/0.16, allocations: 2.424 MB / 474.2 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.1616, allocations: 0.86 MB / 475.1 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001421/0.1631, allocations: 0.6339 MB / 475.7 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.1644, allocations: 0.821 MB / 476.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.1646, allocations: 80 kB / 476.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007785/0.1654, allocations: 311.5 kB / 476.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006161/0.166, allocations: 446.7 kB / 477.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007559/0.1668, allocations: 0.6373 MB / 478 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001915/0.1687, allocations: 1.893 MB / 479.9 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.1687, allocations: 4 kB / 479.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1687, allocations: 0 / 479.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.693e-05/0.1688, allocations: 0 / 479.9 MB, free: 0.6562 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003933/0.1727, allocations: 1.628 MB / 481.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.1728, allocations: 15.97 kB / 481.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000755/0.1735, allocations: 187.2 kB / 481.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.1752, allocations: 0.9109 MB / 482.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-05/0.1753, allocations: 82.05 kB / 482.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000282/0.1756, allocations: 123.9 kB / 482.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002482/0.1781, allocations: 1.341 MB / 484.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.623e-05/0.1781, allocations: 7.906 kB / 484.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.1782, allocations: 48 kB / 484.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001238/0.1784, allocations: 69.97 kB / 484.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001854/0.1802, allocations: 1.066 MB / 485.4 MB, free: 11.01 MB / 366.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007396/0.1876, allocations: 5.135 MB / 490.5 MB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.1889, allocations: 0.7608 MB / 491.3 MB, free: 4.828 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000604/0.1895, allocations: 344.2 kB / 491.6 MB, free: 4.484 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.507e-05/0.1896, allocations: 8.562 kB / 491.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.1896, allocations: 47.06 kB / 491.7 MB, free: 4.418 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.575e-06/0.1896, allocations: 0 / 491.7 MB, free: 4.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.006091/0.1957, allocations: 2.672 MB / 494.3 MB, free: 1.652 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.093e-05/0.1958, allocations: 141.1 kB / 494.5 MB, free: 1.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009478/0.1968, allocations: 0.7509 MB / 495.2 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.123e-05/0.1968, allocations: 41.7 kB / 495.3 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004414/0.1973, allocations: 0.5572 MB / 495.8 MB, free: 108 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/0.1975, allocations: 252.5 kB / 496.1 MB, free: 15.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002415/0.1978, allocations: 166.5 kB / 496.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1979, allocations: 341.9 kB / 496.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005166/0.1985, allocations: 300.7 kB / 496.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007793/0.1993, allocations: 0.549 MB / 497.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.2005, allocations: 0.8936 MB / 498.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.2006, allocations: 7.938 kB / 498.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00293/0.2035, allocations: 1.344 MB / 499.6 MB, free: 12.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.2035, allocations: 8 kB / 499.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.2036, allocations: 8 kB / 499.7 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.205, allocations: 408.8 kB / 0.4883 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006746/0.2057, allocations: 167.7 kB / 0.4885 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008145/0.2139, allocations: 4.852 MB / 0.4932 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007853/0.2147, allocations: 35.98 kB / 0.4933 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.2148, allocations: 39.98 kB / 0.4933 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001029/0.2158, allocations: 0.5565 MB / 0.4939 GB, free: 5.816 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006869/0.2165, allocations: 0.5373 MB / 0.4944 GB, free: 5.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001218/0.2178, allocations: 0.878 MB / 0.4952 GB, free: 4.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.376e-06/0.2178, allocations: 4 kB / 0.4952 GB, free: 4.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002747/0.2205, allocations: 1.254 MB / 0.4965 GB, free: 2.906 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.2206, allocations: 8 kB / 0.4965 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.2206, allocations: 8 kB / 0.4965 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.222, allocations: 408.8 kB / 0.4969 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006869/0.2227, allocations: 175.7 kB / 0.497 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007133/0.2298, allocations: 4.636 MB / 0.5016 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008662/0.2307, allocations: 35.98 kB / 0.5016 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.2309, allocations: 36 kB / 0.5016 GB, free: 13.48 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * 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 {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0003575/0.2312, allocations: 239.9 kB / 0.5019 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002662/0.2315, allocations: 90.88 kB / 0.5019 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.2332, allocations: 0.8752 MB / 0.5028 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/0.2332, allocations: 8 kB / 0.5028 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.2332, allocations: 4 kB / 0.5028 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.2332, allocations: 3.984 kB / 0.5028 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00388/0.2371, allocations: 1.857 MB / 0.5046 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.2371, allocations: 0 / 0.5046 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008668/0.238, allocations: 159.8 kB / 0.5048 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.437e-05/0.238, allocations: 4 kB / 0.5048 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-05/0.2381, allocations: 20 kB / 0.5048 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.2381, allocations: 4 kB / 0.5048 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.2381, allocations: 11.92 kB / 0.5048 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.2401, allocations: 1.27 MB / 0.5061 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004618/0.2406, allocations: 235.7 kB / 0.5063 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002245/0.2408, allocations: 16 kB / 0.5063 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006094/0.2414, allocations: 31.98 kB / 0.5063 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.508e-05/0.2415, allocations: 44.53 kB / 0.5064 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.2416, allocations: 20 kB / 0.5064 GB, free: 8.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007546/0.2423, allocations: 0.5107 MB / 0.5069 GB, free: 7.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2423, allocations: 3.938 kB / 0.5069 GB, free: 7.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001939/0.2443, allocations: 468 kB / 0.5073 GB, free: 7.488 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * Array equations: 0 * 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.0003772/0.2447, allocations: 143.2 kB / 0.5075 GB, free: 7.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003726/0.2484, allocations: 1.888 MB / 0.5093 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2484, allocations: 4 kB / 0.5093 GB, free: 5.422 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000592/0.249, allocations: 351.5 kB / 0.5097 GB, free: 5.082 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.2504, allocations: 234.4 kB / 0.5099 GB, free: 4.859 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.2551, allocations: 2.962 MB / 0.5128 GB, free: 1.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009473/0.256, allocations: 1.209 MB / 0.514 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008956/0.2569, allocations: 247.4 kB / 0.5142 GB, free: 380 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002358/0.2572, allocations: 71.42 kB / 0.5143 GB, free: 312 kB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2572, allocations: 0 / 0.5143 GB, free: 312 kB / 398.1 MB Notification: Performance of Templates: time 0.2354/0.4926, allocations: 17.08 MB / 0.5309 GB, free: 63.68 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)