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 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.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.001248/0.001248, allocations: 115.2 kB / 17.69 MB, free: 5.309 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.001436/0.001436, allocations: 191 kB / 18.63 MB, free: 4.375 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.555/1.555, allocations: 205.1 MB / 224.5 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.176/0.176, allocations: 37.99 MB / 309.8 MB, free: 5.984 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.001807/0.001807, allocations: 71.17 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3651, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008746/0.3739, allocations: 9.272 MB / 441.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00476/0.3787, allocations: 3.292 MB / 444.6 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006541/0.3794, allocations: 43.75 kB / 444.6 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.3806, allocations: 409.3 kB / 445 MB, free: 6.449 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001601/0.3822, allocations: 0.7927 MB / 445.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009168/0.3832, allocations: 477.5 kB / 446.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001804/0.385, allocations: 1.878 MB / 448.2 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/0.3862, allocations: 1.112 MB / 449.3 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007694/0.387, allocations: 0.7588 MB / 450 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000834/0.3878, allocations: 0.8133 MB / 450.9 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.388, allocations: 140 kB / 451 MB, free: 468 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005397/0.3885, allocations: 379.5 kB / 451.4 MB, free: 88 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005257/0.3891, allocations: 0.4948 MB / 451.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009367/0.39, allocations: 0.7037 MB / 452.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002507/0.3925, allocations: 1.99 MB / 454.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3925, allocations: 7.938 kB / 454.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.3926, allocations: 0 / 454.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.3926, allocations: 0 / 454.6 MB, free: 12.88 MB / 334.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.003407/0.396, allocations: 1.632 MB / 456.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.3961, allocations: 11.89 kB / 456.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007403/0.3968, allocations: 199.1 kB / 456.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002275/0.3991, allocations: 0.9422 MB / 457.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.958e-05/0.3992, allocations: 90.05 kB / 457.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004188/0.3996, allocations: 119.9 kB / 457.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002547/0.4022, allocations: 1.352 MB / 458.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.4022, allocations: 0 / 458.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.933e-05/0.4023, allocations: 44 kB / 458.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/0.4024, allocations: 65.97 kB / 459 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.4046, allocations: 1.077 MB / 460.1 MB, free: 7.172 MB / 334.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 8.318498358936397e-4 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007447/0.4121, allocations: 5.09 MB / 465.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.4134, allocations: 0.7708 MB / 465.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005396/0.4139, allocations: 344.2 kB / 466.3 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.406e-05/0.414, allocations: 12.55 kB / 466.3 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.4141, allocations: 39.12 kB / 466.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 5.761e-06/0.4141, allocations: 4 kB / 466.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.006091/0.4202, allocations: 2.678 MB / 469 MB, free: 13.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.4203, allocations: 137 kB / 469.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009852/0.4213, allocations: 0.7511 MB / 469.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.523e-05/0.4213, allocations: 41.7 kB / 469.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004347/0.4218, allocations: 0.5611 MB / 470.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002442/0.422, allocations: 256.3 kB / 470.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.4223, allocations: 162.6 kB / 470.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4224, allocations: 342 kB / 471.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004965/0.4229, allocations: 296.7 kB / 471.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007365/0.4237, allocations: 0.5451 MB / 472.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.425, allocations: 0.9014 MB / 473 MB, free: 9.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.425, allocations: 7.938 kB / 473 MB, free: 9.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00291/0.4279, allocations: 1.34 MB / 474.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.428, allocations: 8 kB / 474.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.428, allocations: 8.312 kB / 474.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001337/0.4293, allocations: 420.5 kB / 474.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000654/0.43, allocations: 171.7 kB / 474.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009581/0.4396, allocations: 5.273 MB / 480.2 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.4408, allocations: 47.91 kB / 480.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.4409, allocations: 32 kB / 480.3 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001459/0.4424, allocations: 0.5682 MB / 480.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00088/0.4433, allocations: 0.537 MB / 481.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001618/0.4449, allocations: 0.8819 MB / 482.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.582e-06/0.4449, allocations: 3.938 kB / 482.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.003794/0.4487, allocations: 1.262 MB / 483.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.4488, allocations: 11.94 kB / 483.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/0.4488, allocations: 8.312 kB / 483.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001659/0.4505, allocations: 401 kB / 483.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008733/0.4514, allocations: 175.7 kB / 484.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/0.4615, allocations: 5.048 MB / 489.2 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/0.4628, allocations: 31.98 kB / 489.2 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-05/0.463, allocations: 43.98 kB / 489.2 MB, free: 8.793 MB / 366.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.00041/0.4634, allocations: 228 kB / 489.5 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002501/0.4636, allocations: 98.72 kB / 489.5 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002002/0.4657, allocations: 0.8714 MB / 490.4 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.4657, allocations: 8 kB / 490.4 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4657, allocations: 0 / 490.4 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.4657, allocations: 3.984 kB / 490.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004157/0.4699, allocations: 1.864 MB / 492.3 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/0.4699, allocations: 4 kB / 492.3 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.4709, allocations: 167.8 kB / 492.5 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.228e-06/0.471, allocations: 4 kB / 492.5 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.395e-05/0.471, allocations: 15.94 kB / 492.5 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.471, allocations: 8.031 kB / 492.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.471, allocations: 0 / 492.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.4729, allocations: 1.267 MB / 493.8 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004068/0.4733, allocations: 231.9 kB / 494 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.4734, allocations: 19.94 kB / 494 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005526/0.474, allocations: 23.98 kB / 494 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.4741, allocations: 48.53 kB / 494.1 MB, free: 3.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-05/0.4742, allocations: 16 kB / 494.1 MB, free: 3.785 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009464/0.4751, allocations: 0.5224 MB / 494.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4751, allocations: 0 / 494.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002432/0.4776, allocations: 464 kB / 495.1 MB, free: 2.812 MB / 366.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.0004816/0.4781, allocations: 147.1 kB / 495.2 MB, free: 2.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005068/0.4832, allocations: 1.907 MB / 497.1 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4832, allocations: 0 / 497.1 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007959/0.484, allocations: 353.2 kB / 497.5 MB, free: 396 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/0.4857, allocations: 265.4 kB / 497.7 MB, free: 144 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006076/0.4917, allocations: 2.478 MB / 0.4885 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.493, allocations: 1.209 MB / 0.4897 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001276/0.4943, allocations: 247.4 kB / 0.4899 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003064/0.4947, allocations: 71.42 kB / 0.49 GB, free: 12.07 MB / 382.1 MB Notification: Performance of SimCode: time 3.617e-06/0.4947, allocations: 0 / 0.49 GB, free: 12.07 MB / 382.1 MB Notification: Performance of Templates: time 0.03499/0.5297, allocations: 17.9 MB / 0.5074 GB, free: 10.18 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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)