Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.001259, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001356/0.001356, allocations: 192 kB / 18.62 MB, free: 4.41 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.475/1.475, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1844/0.1844, allocations: 37.99 MB / 309.8 MB, free: 5.969 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.001785/0.001785, allocations: 63.91 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3136, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.004027/0.3177, allocations: 2.094 MB / 434.1 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002847/0.3205, allocations: 2.078 MB / 436.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.263e-05/0.3206, allocations: 4 kB / 436.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.3209, allocations: 15.91 kB / 436.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.081e-05/0.321, allocations: 35.83 kB / 436.2 MB, free: 15.24 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'. [/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.typeClassSections: time 0.001976/0.323, allocations: 0.8266 MB / 437.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001451/0.3231, allocations: 75.7 kB / 437.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.959e-05/0.3232, allocations: 4.188 kB / 437.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.939e-05/0.3233, allocations: 39.83 kB / 437.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.249e-05/0.3234, allocations: 39.83 kB / 437.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.472e-05/0.3234, allocations: 0 / 437.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001632/0.325, allocations: 1.407 MB / 438.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.692e-05/0.3251, allocations: 11.98 kB / 438.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.72e-05/0.3252, allocations: 19.81 kB / 438.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001229/0.3264, allocations: 1.321 MB / 440 MB, free: 11.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3264, allocations: 0 / 440 MB, free: 11.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3264, allocations: 0 / 440 MB, free: 11.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3264, allocations: 0 / 440 MB, free: 11.5 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005856/0.327, allocations: 0.5102 MB / 440.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.3271, allocations: 11.89 kB / 440.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.95e-05/0.3271, allocations: 8.844 kB / 440.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.3273, allocations: 179.7 kB / 440.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.3273, allocations: 0 / 440.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.3274, allocations: 0 / 440.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.3275, allocations: 61.61 kB / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.3276, allocations: 0 / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.3276, allocations: 0 / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.3276, allocations: 0 / 440.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.799e-05/0.3276, allocations: 27.98 kB / 440.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.3278, allocations: 165.5 kB / 440.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.715e-05/0.3279, allocations: 50.56 kB / 441 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.756e-05/0.328, allocations: 40.81 kB / 441 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.328, allocations: 0 / 441 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.328, allocations: 34.56 kB / 441.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 2.424e-06/0.328, allocations: 3.938 kB / 441.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002816/0.3283, allocations: 159.3 kB / 441.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.3284, allocations: 85.09 kB / 441.3 MB, free: 9.977 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.031e-05/0.3284, allocations: 121.8 kB / 441.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.418e-06/0.3285, allocations: 29.7 kB / 441.5 MB, free: 9.812 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.719e-05/0.3285, allocations: 88.14 kB / 441.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.654e-05/0.3285, allocations: 23.61 kB / 441.6 MB, free: 9.699 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.3286, allocations: 21.72 kB / 441.6 MB, free: 9.672 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.025e-05/0.3287, allocations: 322.8 kB / 441.9 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.567e-05/0.3287, allocations: 20.03 kB / 441.9 MB, free: 9.328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.74e-05/0.3287, allocations: 23.98 kB / 441.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.885e-05/0.3288, allocations: 132.2 kB / 442.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3288, allocations: 0 / 442.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001185/0.329, allocations: 119.4 kB / 442.2 MB, free: 9.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.153e-05/0.329, allocations: 41.69 kB / 442.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.329, allocations: 3.984 kB / 442.2 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.329, allocations: 4 kB / 442.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.329, allocations: 0 / 442.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.3291, allocations: 320 / 442.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.15e-05/0.3291, allocations: 15.91 kB / 442.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.3291, allocations: 4 kB / 442.3 MB, free: 8.957 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.01e-05/0.3292, allocations: 159.4 kB / 442.4 MB, free: 8.785 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/0.3292, allocations: 11.91 kB / 442.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.379e-05/0.3293, allocations: 8.359 kB / 442.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3293, allocations: 0 / 442.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3293, allocations: 0 / 442.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3293, allocations: 0 / 442.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.267e-05/0.3294, allocations: 173.6 kB / 442.6 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3294, allocations: 4 kB / 442.6 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-06/0.3294, allocations: 7.922 kB / 442.6 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.3294, allocations: 0 / 442.6 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.3294, allocations: 4 kB / 442.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3294, allocations: 0 / 442.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3294, allocations: 0 / 442.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001817/0.3296, allocations: 222.6 kB / 442.8 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.395e-05/0.3296, allocations: 89 kB / 442.9 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.3297, allocations: 4.031 kB / 442.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.272e-05/0.3297, allocations: 7.938 kB / 442.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.431e-05/0.3297, allocations: 3.984 kB / 442.9 MB, free: 8.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.3297, allocations: 7.938 kB / 442.9 MB, free: 8.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.892e-05/0.3298, allocations: 97.64 kB / 443 MB, free: 8.066 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3298, allocations: 0 / 443 MB, free: 8.066 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007317/0.3305, allocations: 319.9 kB / 443.4 MB, free: 7.754 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.000837/0.3314, allocations: 366.5 kB / 443.7 MB, free: 7.387 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002469/0.3316, allocations: 203.3 kB / 443.9 MB, free: 7.176 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3316, allocations: 0 / 443.9 MB, free: 7.176 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.3317, allocations: 151.4 kB / 444.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.332, allocations: 4 kB / 444.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000577/0.3326, allocations: 256.2 kB / 444.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.333, allocations: 0.6962 MB / 445 MB, free: 6.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.701e-05/0.333, allocations: 3.953 kB / 445 MB, free: 6.012 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.33e-05/0.333, allocations: 11.44 kB / 445 MB, free: 6 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.333, allocations: 0 / 445 MB, free: 6 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].