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.001846/0.001846, allocations: 110.8 kB / 17.29 MB, free: 6.188 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.002181/0.002181, allocations: 193.3 kB / 18.21 MB, free: 5.266 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.529/1.529, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2018/0.2018, allocations: 38.03 MB / 330.1 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 62.59 kB / 398.9 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1231, allocations: 58.05 MB / 457 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01581/0.139, allocations: 10.46 MB / 467.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008359/0.1474, allocations: 3.626 MB / 471.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001977/0.1494, allocations: 63.62 kB / 471.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002146/0.1516, allocations: 366 kB / 471.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002975/0.1546, allocations: 0.7156 MB / 472.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001714/0.1563, allocations: 431.2 kB / 472.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003799/0.1602, allocations: 1.87 MB / 474.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00241/0.1626, allocations: 1.124 MB / 475.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00171/0.1643, allocations: 0.751 MB / 476.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001912/0.1663, allocations: 0.8484 MB / 477.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004797/0.1668, allocations: 140 kB / 477.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.1681, allocations: 391.5 kB / 477.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009203/0.169, allocations: 498.6 kB / 478.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001467/0.1705, allocations: 0.7037 MB / 478.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002485/0.173, allocations: 1.563 MB / 480.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.173, allocations: 0 / 480.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.173, allocations: 0 / 480.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.854e-05/0.1731, allocations: 0 / 480.5 MB, free: 0.8164 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.005106/0.1782, allocations: 1.64 MB / 482.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.1783, allocations: 11.89 kB / 482.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001164/0.1795, allocations: 187.2 kB / 482.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.1819, allocations: 0.9225 MB / 483.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-05/0.182, allocations: 78.06 kB / 483.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004335/0.1825, allocations: 116 kB / 483.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003237/0.1857, allocations: 1.353 MB / 484.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.023e-05/0.1858, allocations: 7.906 kB / 484.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/0.1859, allocations: 40 kB / 484.8 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001377/0.1861, allocations: 65.97 kB / 484.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002679/0.1888, allocations: 1.073 MB / 486 MB, free: 11.15 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.01016/0.1989, allocations: 5.138 MB / 491.1 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.2006, allocations: 0.7531 MB / 491.9 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007057/0.2013, allocations: 342.8 kB / 492.2 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.645e-05/0.2014, allocations: 12.55 kB / 492.2 MB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.2015, allocations: 47.06 kB / 492.3 MB, free: 4.562 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 4.929e-06/0.2015, allocations: 0 / 492.3 MB, free: 4.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.007687/0.2092, allocations: 2.675 MB / 494.9 MB, free: 1.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.2094, allocations: 145 kB / 495.1 MB, free: 1.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001432/0.2108, allocations: 0.747 MB / 495.8 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.319e-05/0.2109, allocations: 33.7 kB / 495.9 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005472/0.2114, allocations: 0.569 MB / 496.4 MB, free: 256 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003387/0.2118, allocations: 256.5 kB / 496.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003298/0.2121, allocations: 158.4 kB / 496.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.2123, allocations: 341.9 kB / 497.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006894/0.213, allocations: 296.7 kB / 497.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009331/0.214, allocations: 0.549 MB / 498 MB, free: 14.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001746/0.2157, allocations: 0.9053 MB / 498.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.411e-05/0.2158, allocations: 7.938 kB / 498.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003918/0.2197, allocations: 1.34 MB / 0.4885 GB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.2197, allocations: 8 kB / 0.4885 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/0.2198, allocations: 8 kB / 0.4886 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001818/0.2216, allocations: 424.6 kB / 0.489 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008608/0.2225, allocations: 167.7 kB / 0.4891 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/0.2337, allocations: 5.285 MB / 0.4943 GB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009824/0.2347, allocations: 47.89 kB / 0.4943 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001477/0.2348, allocations: 36 kB / 0.4944 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001411/0.2363, allocations: 0.5565 MB / 0.4949 GB, free: 5.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009707/0.2373, allocations: 0.5373 MB / 0.4954 GB, free: 4.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001595/0.2389, allocations: 0.878 MB / 0.4963 GB, free: 3.859 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.987e-06/0.2389, allocations: 0 / 0.4963 GB, free: 3.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.003592/0.2425, allocations: 1.262 MB / 0.4975 GB, free: 2.586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.2425, allocations: 12 kB / 0.4975 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.2426, allocations: 8 kB / 0.4975 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/0.2443, allocations: 404.8 kB / 0.4979 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008519/0.2451, allocations: 163.7 kB / 0.4981 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009812/0.255, allocations: 5.08 MB / 0.503 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.2561, allocations: 31.98 kB / 0.5031 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001822/0.2563, allocations: 36 kB / 0.5031 GB, free: 12.72 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.0004671/0.2568, allocations: 236 kB / 0.5033 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004036/0.2572, allocations: 102.8 kB / 0.5034 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002518/0.2597, allocations: 0.8674 MB / 0.5043 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.2598, allocations: 8 kB / 0.5043 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.2598, allocations: 0 / 0.5043 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.2598, allocations: 3.984 kB / 0.5043 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005455/0.2653, allocations: 1.857 MB / 0.5061 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.2653, allocations: 0 / 0.5061 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.2669, allocations: 163.8 kB / 0.5063 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.871e-05/0.2669, allocations: 4 kB / 0.5063 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.267, allocations: 23.94 kB / 0.5063 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-05/0.267, allocations: 7.938 kB / 0.5063 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.2671, allocations: 3.984 kB / 0.5063 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.2703, allocations: 1.27 MB / 0.5075 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007109/0.271, allocations: 235.8 kB / 0.5078 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003323/0.2714, allocations: 15.94 kB / 0.5078 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.2724, allocations: 27.98 kB / 0.5078 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.2726, allocations: 44.58 kB / 0.5078 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.242e-05/0.2727, allocations: 20 kB / 0.5079 GB, free: 7.707 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001393/0.2741, allocations: 0.5146 MB / 0.5084 GB, free: 7.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2741, allocations: 0 / 0.5084 GB, free: 7.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002897/0.277, allocations: 468 kB / 0.5088 GB, free: 6.738 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.0004759/0.2775, allocations: 133 kB / 0.5089 GB, free: 6.598 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006872/0.2844, allocations: 2.072 MB / 0.511 GB, free: 4.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.2844, allocations: 0 / 0.511 GB, free: 4.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.2855, allocations: 351.8 kB / 0.5113 GB, free: 4.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/0.288, allocations: 257.6 kB / 0.5115 GB, free: 3.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008499/0.2965, allocations: 3.054 MB / 0.5145 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2575/0.554, allocations: 1.193 MB / 0.5157 GB, free: 68.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004301/0.5545, allocations: 71.73 kB / 0.5158 GB, free: 68.16 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5545, allocations: 0 / 0.5158 GB, free: 68.16 MB / 398.1 MB Notification: Performance of Templates: time 0.03469/0.5892, allocations: 17.13 MB / 0.5325 GB, free: 63.25 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)