Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 113.6 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.001661/0.001661, allocations: 192 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.62/1.62, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1769/0.1769, allocations: 37.98 MB / 309.8 MB, free: 5.98 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.001709/0.001709, allocations: 67.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2615, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003216/0.2648, allocations: 2.145 MB / 434.2 MB, free: 17.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2661, allocations: 1.103 MB / 435.3 MB, free: 16.22 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.478e-05/0.2661, allocations: 4 kB / 435.3 MB, free: 16.22 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.2663, allocations: 19.91 kB / 435.3 MB, free: 16.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.2664, allocations: 55.73 kB / 435.4 MB, free: 16.14 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. Notification: Performance of NFTyping.typeClassSections: time 0.0007316/0.2671, allocations: 279.2 kB / 435.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.2673, allocations: 119.6 kB / 435.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.312e-05/0.2673, allocations: 4 kB / 435.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.39e-05/0.2674, allocations: 51.77 kB / 435.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.964e-05/0.2675, allocations: 67.78 kB / 435.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.2675, allocations: 4 kB / 435.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004821/0.268, allocations: 419.1 kB / 436.3 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.671e-05/0.2681, allocations: 31.91 kB / 436.3 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.437e-05/0.2681, allocations: 39.73 kB / 436.4 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004443/0.2686, allocations: 0.5237 MB / 436.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2686, allocations: 0 / 436.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2686, allocations: 0 / 436.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2686, allocations: 0 / 436.9 MB, free: 14.63 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003777/0.269, allocations: 466.4 kB / 437.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.269, allocations: 15.89 kB / 437.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.189e-05/0.2691, allocations: 16.83 kB / 437.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.2692, allocations: 188.1 kB / 437.5 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-06/0.2692, allocations: 4.312 kB / 437.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.592e-05/0.2693, allocations: 12.06 kB / 437.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001589/0.2694, allocations: 89.66 kB / 437.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.2694, allocations: 0 / 437.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.2695, allocations: 4 kB / 437.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2695, allocations: 0 / 437.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.71e-05/0.2695, allocations: 59.95 kB / 437.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.2697, allocations: 181.5 kB / 437.9 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.2698, allocations: 134.5 kB / 438 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.258e-05/0.2699, allocations: 124.8 kB / 438.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.577e-06/0.2699, allocations: 0 / 438.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.2699, allocations: 34.56 kB / 438.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.102e-06/0.2699, allocations: 0 / 438.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003874/0.2703, allocations: 287.7 kB / 438.5 MB, free: 12.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.2704, allocations: 97.09 kB / 438.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.465e-05/0.2704, allocations: 133.8 kB / 438.7 MB, free: 12.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.2705, allocations: 25.7 kB / 438.7 MB, free: 12.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.2705, allocations: 96.45 kB / 438.8 MB, free: 12.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.223e-05/0.2706, allocations: 63 kB / 438.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.062e-05/0.2706, allocations: 33.64 kB / 438.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.618e-05/0.2707, allocations: 322.8 kB / 439.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.043e-05/0.2707, allocations: 59.97 kB / 439.3 MB, free: 12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.227e-05/0.2708, allocations: 59.92 kB / 439.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.271, allocations: 228.5 kB / 439.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.271, allocations: 0 / 439.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001894/0.2712, allocations: 223.2 kB / 439.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.579e-05/0.2712, allocations: 56.95 kB / 439.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.2712, allocations: 0 / 439.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.2713, allocations: 0 / 439.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.452e-06/0.2713, allocations: 0 / 439.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.2713, allocations: 7.984 kB / 439.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.736e-05/0.2713, allocations: 19.84 kB / 439.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.2714, allocations: 4 kB / 439.9 MB, free: 11.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.721e-05/0.2715, allocations: 183.4 kB / 440 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.202e-05/0.2715, allocations: 23.8 kB / 440.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.394e-05/0.2715, allocations: 9.188 kB / 440.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.2715, allocations: 0 / 440.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2715, allocations: 3.938 kB / 440.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.2715, allocations: 0 / 440.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.037e-05/0.2716, allocations: 193.5 kB / 440.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2716, allocations: 4 kB / 440.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.2717, allocations: 3.938 kB / 440.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.2717, allocations: 0 / 440.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.2717, allocations: 8 kB / 440.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.2717, allocations: 4 kB / 440.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2717, allocations: 0 / 440.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003547/0.2721, allocations: 394.5 kB / 440.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.2721, allocations: 88.95 kB / 440.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.2721, allocations: 4 kB / 440.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.623e-05/0.2722, allocations: 8.031 kB / 440.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.2722, allocations: 7.938 kB / 440.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.2722, allocations: 8 kB / 440.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.926e-05/0.2723, allocations: 107.2 kB / 440.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2723, allocations: 0 / 440.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003543/0.2727, allocations: 131.9 kB / 441 MB, free: 10.12 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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.0003645/0.273, allocations: 187.2 kB / 441.2 MB, free: 9.926 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003949/0.2734, allocations: 0.5617 MB / 441.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2734, allocations: 0 / 441.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000235/0.2737, allocations: 471.3 kB / 442.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.2739, allocations: 19.94 kB / 442.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004537/0.2743, allocations: 388.6 kB / 442.6 MB, free: 8.453 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.2745, allocations: 0.7275 MB / 443.3 MB, free: 7.699 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.486e-05/0.2745, allocations: 0 / 443.3 MB, free: 7.699 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.588e-06/0.2745, allocations: 11.44 kB / 443.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2745, allocations: 0 / 443.4 MB, free: 7.688 MB / 318.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].