Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001101/0.001101, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.552/1.552, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2333/0.2333, allocations: 37.98 MB / 309.8 MB, free: 5.965 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.001477/0.001477, allocations: 67.91 kB / 376.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3308, allocations: 55.24 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.00317/0.3341, allocations: 2.11 MB / 434.1 MB, free: 17.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.3364, allocations: 2.078 MB / 436.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.322e-05/0.3365, allocations: 3.938 kB / 436.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.3367, allocations: 11.92 kB / 436.2 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.479e-05/0.3367, allocations: 31.84 kB / 436.3 MB, free: 15.22 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.001778/0.3385, allocations: 0.8204 MB / 437.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.3386, allocations: 75.75 kB / 437.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.928e-05/0.3387, allocations: 4.188 kB / 437.1 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.644e-05/0.3388, allocations: 39.77 kB / 437.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.11e-05/0.3389, allocations: 43.83 kB / 437.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.244e-05/0.3389, allocations: 0 / 437.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.3404, allocations: 1.407 MB / 438.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.546e-05/0.3404, allocations: 27.92 kB / 438.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.536e-05/0.3405, allocations: 43.66 kB / 438.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00112/0.3416, allocations: 1.352 MB / 440.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3416, allocations: 3.984 kB / 440.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3416, allocations: 0 / 440.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3416, allocations: 0 / 440.1 MB, free: 11.41 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005419/0.3422, allocations: 0.5646 MB / 440.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.3422, allocations: 11.89 kB / 440.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.341e-05/0.3423, allocations: 16.75 kB / 440.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.3425, allocations: 195.6 kB / 440.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.3425, allocations: 4 kB / 440.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.3425, allocations: 0 / 440.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.3427, allocations: 97.52 kB / 440.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3427, allocations: 0 / 440.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.3427, allocations: 8 kB / 441 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3427, allocations: 0 / 441 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.698e-05/0.3428, allocations: 67.91 kB / 441 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.3429, allocations: 201.3 kB / 441.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.374e-05/0.343, allocations: 98.55 kB / 441.3 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.089e-05/0.3431, allocations: 96.8 kB / 441.4 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-06/0.3431, allocations: 0 / 441.4 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.3431, allocations: 34.56 kB / 441.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 8.01e-07/0.3431, allocations: 4 kB / 441.4 MB, free: 9.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004036/0.3435, allocations: 315 kB / 441.8 MB, free: 9.535 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.3436, allocations: 101.1 kB / 441.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.859e-05/0.3437, allocations: 151.1 kB / 442 MB, free: 9.262 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.3437, allocations: 29.64 kB / 442 MB, free: 9.227 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.3438, allocations: 96.58 kB / 442.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.3438, allocations: 74.84 kB / 442.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.569e-05/0.3439, allocations: 29.7 kB / 442.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.344, allocations: 338.8 kB / 442.6 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.026e-05/0.344, allocations: 59.97 kB / 442.6 MB, free: 8.621 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.147e-05/0.3441, allocations: 60.78 kB / 442.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.3443, allocations: 256.2 kB / 442.9 MB, free: 8.297 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3443, allocations: 0 / 442.9 MB, free: 8.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002001/0.3445, allocations: 234.9 kB / 443.2 MB, free: 8.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.635e-05/0.3445, allocations: 69.66 kB / 443.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.3446, allocations: 0 / 443.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.3446, allocations: 0 / 443.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.3446, allocations: 0 / 443.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.3446, allocations: 4.062 kB / 443.2 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.329e-05/0.3447, allocations: 11.91 kB / 443.2 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.3447, allocations: 4 kB / 443.2 MB, free: 7.961 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 0.0001167/0.3448, allocations: 203.3 kB / 443.4 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.19e-05/0.3448, allocations: 15.81 kB / 443.5 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.529e-05/0.3449, allocations: 13.19 kB / 443.5 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.3449, allocations: 0 / 443.5 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3449, allocations: 4 kB / 443.5 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3449, allocations: 0 / 443.5 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.345, allocations: 213.4 kB / 443.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.345, allocations: 0 / 443.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.345, allocations: 0 / 443.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-07/0.345, allocations: 0 / 443.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.345, allocations: 8 kB / 443.7 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.345, allocations: 0 / 443.7 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.345, allocations: 0 / 443.7 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004252/0.3455, allocations: 0.5217 MB / 444.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.273e-05/0.3455, allocations: 96.89 kB / 444.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.3455, allocations: 4 kB / 444.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.667e-05/0.3456, allocations: 8 kB / 444.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.031e-05/0.3456, allocations: 4 kB / 444.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.3456, allocations: 11.94 kB / 444.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.092e-05/0.3457, allocations: 122.9 kB / 444.5 MB, free: 6.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3457, allocations: 0 / 444.5 MB, free: 6.645 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006849/0.3464, allocations: 339.9 kB / 444.8 MB, free: 6.312 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.0007909/0.3472, allocations: 366.8 kB / 445.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005086/0.3477, allocations: 0.7139 MB / 445.9 MB, free: 5.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3477, allocations: 0 / 445.9 MB, free: 5.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003134/0.348, allocations: 0.5773 MB / 446.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000198/0.3482, allocations: 8 kB / 446.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005661/0.3488, allocations: 465.8 kB / 446.9 MB, free: 4.141 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001632/0.349, allocations: 0.7316 MB / 447.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.425e-05/0.349, allocations: 0 / 447.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.117e-05/0.349, allocations: 11.38 kB / 447.6 MB, free: 3.371 MB / 318.1 MB Notification: Performance of SimCode: time 1.9e-07/0.349, allocations: 0 / 447.6 MB, free: 3.371 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].