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.001518/0.001518, allocations: 114.9 kB / 17.75 MB, free: 5.312 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.001756/0.001756, allocations: 188.4 kB / 18.67 MB, free: 4.395 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.43/1.43, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1797/0.1797, allocations: 37.98 MB / 309.9 MB, free: 5.945 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.001435/0.001435, allocations: 67.91 kB / 432.5 MB, free: 15.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1064, allocations: 55.23 MB / 487.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.0117/0.1182, allocations: 9.267 MB / 497 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006188/0.1244, allocations: 3.307 MB / 0.4886 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.1257, allocations: 39.81 kB / 0.4887 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001813/0.1275, allocations: 409.3 kB / 0.4891 GB, free: 11.38 MB / 382.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.002654/0.1302, allocations: 0.8006 MB / 0.4898 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.1316, allocations: 475.2 kB / 0.4903 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002875/0.1345, allocations: 1.87 MB / 0.4921 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001922/0.1364, allocations: 1.12 MB / 0.4932 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001418/0.1379, allocations: 0.7628 MB / 0.494 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.1394, allocations: 0.8133 MB / 0.4948 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004756/0.1399, allocations: 140 kB / 0.4949 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.1411, allocations: 383.5 kB / 0.4953 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007412/0.1418, allocations: 498.7 kB / 0.4957 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.1432, allocations: 0.7037 MB / 0.4964 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002771/0.146, allocations: 1.99 MB / 0.4984 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.146, allocations: 0 / 0.4984 GB, free: 1.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.146, allocations: 0 / 0.4984 GB, free: 1.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.83e-05/0.1461, allocations: 0 / 0.4984 GB, free: 1.805 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.004442/0.1505, allocations: 1.643 MB / 0.5 GB, free: 108 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1506, allocations: 15.83 kB / 0.5 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009892/0.1516, allocations: 191.2 kB / 0.5002 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/0.1536, allocations: 0.9576 MB / 0.5011 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.719e-05/0.1537, allocations: 78.06 kB / 0.5012 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003628/0.1541, allocations: 127.9 kB / 0.5013 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00256/0.1566, allocations: 1.345 MB / 0.5026 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.288e-05/0.1567, allocations: 7.844 kB / 0.5026 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.1568, allocations: 44 kB / 0.5027 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001178/0.157, allocations: 69.97 kB / 0.5027 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.1589, allocations: 1.07 MB / 0.5038 GB, free: 12.09 MB / 398.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.00766/0.1666, allocations: 5.09 MB / 0.5087 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.1678, allocations: 0.7721 MB / 0.5095 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005178/0.1684, allocations: 348.1 kB / 0.5098 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.428e-05/0.1684, allocations: 8.562 kB / 0.5098 GB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.1685, allocations: 39.12 kB / 0.5099 GB, free: 5.531 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 3.286e-06/0.1685, allocations: 0 / 0.5099 GB, free: 5.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.005984/0.1745, allocations: 2.678 MB / 0.5125 GB, free: 2.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.1746, allocations: 137.1 kB / 0.5126 GB, free: 2.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.1758, allocations: 0.7551 MB / 0.5133 GB, free: 1.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.001e-05/0.1759, allocations: 37.7 kB / 0.5134 GB, free: 1.789 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/0.1763, allocations: 0.5727 MB / 0.5139 GB, free: 1.207 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.1766, allocations: 244.4 kB / 0.5142 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.1768, allocations: 162.6 kB / 0.5143 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1769, allocations: 341.9 kB / 0.5147 GB, free: 472 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000505/0.1775, allocations: 300.6 kB / 0.5149 GB, free: 168 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006938/0.1782, allocations: 0.5527 MB / 0.5155 GB, free: 15.49 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.1794, allocations: 0.8936 MB / 0.5164 GB, free: 14.49 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.1794, allocations: 7.938 kB / 0.5164 GB, free: 14.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002905/0.1823, allocations: 1.344 MB / 0.5177 GB, free: 13.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.1824, allocations: 8 kB / 0.5177 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/0.1824, allocations: 8 kB / 0.5177 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001448/0.1838, allocations: 428.6 kB / 0.5181 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006548/0.1845, allocations: 167.8 kB / 0.5183 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009068/0.1936, allocations: 5.277 MB / 0.5234 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008633/0.1945, allocations: 31.98 kB / 0.5234 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001575/0.1947, allocations: 43.98 kB / 0.5235 GB, free: 7.027 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001095/0.1958, allocations: 0.5605 MB / 0.524 GB, free: 6.461 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007461/0.1965, allocations: 0.5334 MB / 0.5246 GB, free: 5.816 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001225/0.1978, allocations: 0.8819 MB / 0.5254 GB, free: 4.824 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.689e-06/0.1978, allocations: 4 kB / 0.5254 GB, free: 4.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002752/0.2005, allocations: 1.262 MB / 0.5267 GB, free: 3.547 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.2006, allocations: 11.91 kB / 0.5267 GB, free: 3.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.2006, allocations: 8 kB / 0.5267 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/0.2019, allocations: 409.3 kB / 0.5271 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006246/0.2026, allocations: 171.7 kB / 0.5272 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2352/0.4378, allocations: 5.03 MB / 0.5321 GB, free: 47.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007785/0.4386, allocations: 37.25 kB / 0.5322 GB, free: 47.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.4387, allocations: 36.92 kB / 0.5322 GB, free: 47.8 MB / 414.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.000261/0.439, allocations: 240.1 kB / 0.5324 GB, free: 47.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.4392, allocations: 94.2 kB / 0.5325 GB, free: 47.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.4407, allocations: 0.8713 MB / 0.5334 GB, free: 47.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.4407, allocations: 11.88 kB / 0.5334 GB, free: 47.47 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.4407, allocations: 1.219 kB / 0.5334 GB, free: 47.47 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.4408, allocations: 3.703 kB / 0.5334 GB, free: 47.47 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003117/0.4439, allocations: 1.86 MB / 0.5352 GB, free: 46.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.4439, allocations: 1.25 kB / 0.5352 GB, free: 46.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008325/0.4447, allocations: 161.7 kB / 0.5354 GB, free: 46.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-05/0.4448, allocations: 4.375 kB / 0.5354 GB, free: 46.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-05/0.4448, allocations: 19.73 kB / 0.5354 GB, free: 46.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.407e-06/0.4448, allocations: 8.406 kB / 0.5354 GB, free: 46.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4449, allocations: 1.281 kB / 0.5354 GB, free: 46.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.4466, allocations: 1.27 MB / 0.5366 GB, free: 46.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003382/0.447, allocations: 233.9 kB / 0.5369 GB, free: 46.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.4471, allocations: 17.94 kB / 0.5369 GB, free: 46.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005076/0.4477, allocations: 23.36 kB / 0.5369 GB, free: 46.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.4478, allocations: 52.81 kB / 0.537 GB, free: 46.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.311e-05/0.4478, allocations: 19.41 kB / 0.537 GB, free: 46.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007723/0.4486, allocations: 0.5125 MB / 0.5375 GB, free: 45.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4486, allocations: 3.391 kB / 0.5375 GB, free: 45.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001871/0.4505, allocations: 464.1 kB / 0.5379 GB, free: 45.91 MB / 414.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.0003413/0.4508, allocations: 149 kB / 0.5381 GB, free: 45.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003768/0.4546, allocations: 1.904 MB / 0.5399 GB, free: 44.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.4546, allocations: 3.312 kB / 0.5399 GB, free: 44.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006361/0.4553, allocations: 353.4 kB / 0.5403 GB, free: 44.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.4568, allocations: 251.5 kB / 0.5405 GB, free: 44.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004791/0.4616, allocations: 2.551 MB / 0.543 GB, free: 43.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009606/0.4625, allocations: 1.199 MB / 0.5442 GB, free: 42.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003037/0.4629, allocations: 76.61 kB / 0.5442 GB, free: 42.75 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4629, allocations: 3.281 kB / 0.5442 GB, free: 42.75 MB / 414.1 MB Notification: Performance of Templates: time 0.02411/0.487, allocations: 17.3 MB / 0.5611 GB, free: 34.56 MB / 414.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)