Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 173.8 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008169/0.0008169, allocations: 86.36 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1779/0.1779, allocations: 38.07 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004034/0.0004035, allocations: 12 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1203, allocations: 56.34 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01308/0.1335, allocations: 9.374 MB / 488.4 MB, free: 8.625 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008224/0.1418, allocations: 3.477 MB / 491.9 MB, free: 5.141 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.1438, allocations: 59.62 kB / 492 MB, free: 5.082 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.1454, allocations: 293.9 kB / 492.3 MB, free: 4.793 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003306/0.1487, allocations: 0.7696 MB / 493 MB, free: 4.02 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00219/0.1509, allocations: 415.4 kB / 493.4 MB, free: 3.613 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00373/0.1547, allocations: 2.014 MB / 495.5 MB, free: 1.586 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00236/0.1571, allocations: 0.8762 MB / 496.3 MB, free: 0.668 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.1586, allocations: 0.5793 MB / 496.9 MB, free: 88 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001766/0.1604, allocations: 0.7277 MB / 497.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004065/0.1608, allocations: 56 kB / 497.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.1618, allocations: 283.5 kB / 498 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006394/0.1625, allocations: 406.7 kB / 498.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006222/0.1631, allocations: 269.1 kB / 498.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002102/0.1652, allocations: 1.527 MB / 0.4884 GB, free: 12.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1652, allocations: 3.938 kB / 0.4884 GB, free: 12.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1652, allocations: 0 / 0.4884 GB, free: 12.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.682e-05/0.1653, allocations: 0 / 0.4884 GB, free: 12.82 MB / 346.7 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.00409/0.1694, allocations: 1.421 MB / 0.4898 GB, free: 11.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.1695, allocations: 8.031 kB / 0.4898 GB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.1706, allocations: 186.2 kB / 0.49 GB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002017/0.1726, allocations: 0.8907 MB / 0.4909 GB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.807e-05/0.1727, allocations: 78.05 kB / 0.491 GB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003454/0.1731, allocations: 123.9 kB / 0.4911 GB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/0.1758, allocations: 1.349 MB / 0.4924 GB, free: 8.594 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.917e-05/0.1759, allocations: 11.91 kB / 0.4924 GB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.176, allocations: 40 kB / 0.4924 GB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.1761, allocations: 69.97 kB / 0.4925 GB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002014/0.1781, allocations: 1.07 MB / 0.4935 GB, free: 7.406 MB / 346.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.000124777475384046 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007575/0.1857, allocations: 5.154 MB / 0.4986 GB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.1869, allocations: 0.7659 MB / 0.4993 GB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000539/0.1875, allocations: 347.7 kB / 0.4997 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.388e-05/0.1876, allocations: 12.55 kB / 0.4997 GB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/0.1876, allocations: 47.06 kB / 0.4997 GB, free: 0.7852 MB / 346.7 MB Notification: Performance of pre-optimization done (n=64): time 3.576e-06/0.1876, allocations: 0 / 0.4997 GB, free: 0.7852 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.005968/0.1936, allocations: 2.709 MB / 0.5024 GB, free: 13.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.902e-05/0.1937, allocations: 137.1 kB / 0.5025 GB, free: 13.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.1948, allocations: 0.7433 MB / 0.5032 GB, free: 13.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.766e-05/0.1948, allocations: 41.7 kB / 0.5033 GB, free: 13.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004447/0.1953, allocations: 0.5649 MB / 0.5038 GB, free: 12.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002237/0.1955, allocations: 252.4 kB / 0.5041 GB, free: 12.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.136e-05/0.1956, allocations: 16 kB / 0.5041 GB, free: 12.17 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1957, allocations: 346 kB / 0.5044 GB, free: 11.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005357/0.1963, allocations: 289.8 kB / 0.5047 GB, free: 11.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007211/0.197, allocations: 0.5527 MB / 0.5052 GB, free: 10.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006638/0.1977, allocations: 391 kB / 0.5056 GB, free: 10.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.1977, allocations: 4 kB / 0.5056 GB, free: 10.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003028/0.2007, allocations: 1.356 MB / 0.5069 GB, free: 9.121 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002318/0.201, allocations: 333.7 kB / 0.5072 GB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/0.201, allocations: 11.95 kB / 0.5072 GB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.2025, allocations: 440.5 kB / 0.5077 GB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006511/0.2032, allocations: 167.7 kB / 0.5078 GB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008227/0.2114, allocations: 4.93 MB / 0.5126 GB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007762/0.2122, allocations: 43.92 kB / 0.5127 GB, free: 2.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.361e-05/0.2123, allocations: 40 kB / 0.5127 GB, free: 2.922 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.2123, allocations: 4 kB / 0.5127 GB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002537/0.2149, allocations: 1.144 MB / 0.5138 GB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/0.2149, allocations: 12 kB / 0.5139 GB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.2162, allocations: 405.1 kB / 0.5142 GB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/0.2169, allocations: 167.7 kB / 0.5144 GB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2101/0.427, allocations: 4.606 MB / 0.5189 GB, free: 48.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008119/0.4279, allocations: 36.36 kB / 0.5189 GB, free: 48.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.428, allocations: 39.25 kB / 0.519 GB, free: 48.66 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0008205/0.4289, allocations: 436.1 kB / 0.5194 GB, free: 48.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.4291, allocations: 92.41 kB / 0.5195 GB, free: 48.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.4307, allocations: 0.8834 MB / 0.5203 GB, free: 47.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.4307, allocations: 8.406 kB / 0.5203 GB, free: 47.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4307, allocations: 5.828 kB / 0.5203 GB, free: 47.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.4308, allocations: 5.016 kB / 0.5204 GB, free: 47.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003363/0.4341, allocations: 1.871 MB / 0.5222 GB, free: 47.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.4342, allocations: 1.062 kB / 0.5222 GB, free: 47.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008729/0.435, allocations: 166.8 kB / 0.5223 GB, free: 47.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.656e-05/0.4351, allocations: 3.531 kB / 0.5223 GB, free: 47.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.199e-05/0.4351, allocations: 19 kB / 0.5224 GB, free: 47.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.4352, allocations: 5.516 kB / 0.5224 GB, free: 47.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4352, allocations: 1.656 kB / 0.5224 GB, free: 47.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.4372, allocations: 1.279 MB / 0.5236 GB, free: 46.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004235/0.4376, allocations: 230.3 kB / 0.5238 GB, free: 46.28 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.4378, allocations: 20.03 kB / 0.5239 GB, free: 46.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005515/0.4384, allocations: 28.97 kB / 0.5239 GB, free: 46.26 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.4385, allocations: 43.55 kB / 0.5239 GB, free: 46.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.746e-05/0.4385, allocations: 22.7 kB / 0.5239 GB, free: 46.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008842/0.4394, allocations: 0.5098 MB / 0.5244 GB, free: 46.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4394, allocations: 0 / 0.5244 GB, free: 46.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002036/0.4415, allocations: 471.9 kB / 0.5249 GB, free: 45.98 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003573/0.4418, allocations: 142.6 kB / 0.525 GB, free: 45.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004034/0.4459, allocations: 1.909 MB / 0.5269 GB, free: 45.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.4459, allocations: 0 / 0.5269 GB, free: 45.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006039/0.4465, allocations: 358.7 kB / 0.5272 GB, free: 44.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.4479, allocations: 230.5 kB / 0.5275 GB, free: 44.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.4527, allocations: 3.115 MB / 0.5305 GB, free: 43.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.4538, allocations: 1.204 MB / 0.5317 GB, free: 42.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002853/0.4541, allocations: 78.95 kB / 0.5318 GB, free: 42.3 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4541, allocations: 0 / 0.5318 GB, free: 42.3 MB / 362.7 MB Notification: Performance of Templates: time 0.02383/0.478, allocations: 17.07 MB / 0.5484 GB, free: 30.62 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)