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.0007779/0.0007775, allocations: 90.14 kB / 16.65 MB, free: 6.535 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.0008501/0.0008501, allocations: 177.7 kB / 17.56 MB, free: 6.18 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.613/1.613, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1977/0.1977, allocations: 38.05 MB / 310.1 MB, free: 5.91 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.0005592/0.0005594, allocations: 19.12 kB / 377.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2878, allocations: 56.32 MB / 433.5 MB, free: 18.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002382/0.2902, allocations: 1.805 MB / 435.3 MB, free: 16.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002793/0.293, allocations: 2.16 MB / 437.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.59e-05/0.2931, allocations: 0 / 437.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002191/0.2934, allocations: 19.92 kB / 437.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.573e-05/0.2935, allocations: 23.83 kB / 437.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001698/0.2952, allocations: 0.6827 MB / 438.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.2953, allocations: 123.7 kB / 438.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.531e-05/0.2954, allocations: 4.188 kB / 438.3 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.724e-05/0.2955, allocations: 27.8 kB / 438.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.782e-05/0.2955, allocations: 47.83 kB / 438.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.2956, allocations: 0 / 438.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.2969, allocations: 1.236 MB / 439.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.857e-05/0.297, allocations: 11.98 kB / 439.6 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.938e-05/0.297, allocations: 49.52 kB / 439.7 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.2981, allocations: 1.273 MB / 440.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2981, allocations: 4 kB / 440.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2981, allocations: 4 kB / 441 MB, free: 11.19 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2981, allocations: 0 / 441 MB, free: 11.19 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.0005002/0.2986, allocations: 496.9 kB / 441.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.2987, allocations: 12.03 kB / 441.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.2987, allocations: 12.84 kB / 441.5 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.2989, allocations: 187.5 kB / 441.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.2989, allocations: 0 / 441.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.2989, allocations: 4 kB / 441.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.299, allocations: 61.67 kB / 441.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.299, allocations: 4 kB / 441.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.299, allocations: 0 / 441.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.2991, allocations: 0 / 441.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.907e-05/0.2991, allocations: 19.98 kB / 441.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001133/0.2992, allocations: 173.5 kB / 441.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.273e-05/0.2993, allocations: 50.5 kB / 442 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/0.2993, allocations: 28.89 kB / 442 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.58e-06/0.2993, allocations: 0 / 442 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.671e-05/0.2994, allocations: 42.55 kB / 442 MB, free: 9.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.2994, allocations: 0 / 442 MB, free: 9.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002227/0.2996, allocations: 151.4 kB / 442.2 MB, free: 9.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.2996, allocations: 85.11 kB / 442.3 MB, free: 9.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.407e-05/0.2997, allocations: 132 kB / 442.4 MB, free: 9.555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.2997, allocations: 25.7 kB / 442.4 MB, free: 9.523 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.48e-05/0.2998, allocations: 92.12 kB / 442.5 MB, free: 9.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.2998, allocations: 31.67 kB / 442.5 MB, free: 9.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.458e-05/0.2999, allocations: 9.719 kB / 442.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.982e-05/0.2999, allocations: 326.8 kB / 442.9 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.07e-05/0.3, allocations: 23.98 kB / 442.9 MB, free: 9.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.438e-05/0.3, allocations: 19.98 kB / 442.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.526e-05/0.3001, allocations: 124.2 kB / 443 MB, free: 8.875 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3001, allocations: 0 / 443 MB, free: 8.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001117/0.3002, allocations: 127.3 kB / 443.1 MB, free: 8.738 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/0.3002, allocations: 45.69 kB / 443.2 MB, free: 8.688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.3003, allocations: 64 / 443.2 MB, free: 8.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3003, allocations: 4 kB / 443.2 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.3003, allocations: 7.938 kB / 443.2 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.3003, allocations: 0 / 443.2 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.385e-05/0.3003, allocations: 4 kB / 443.2 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.3004, allocations: 4 kB / 443.2 MB, free: 8.668 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 7.83e-05/0.3004, allocations: 159.4 kB / 443.4 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/0.3005, allocations: 15.84 kB / 443.4 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.322e-05/0.3005, allocations: 8.375 kB / 443.4 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.3005, allocations: 4 kB / 443.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3005, allocations: 0 / 443.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3005, allocations: 0 / 443.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.826e-05/0.3006, allocations: 173.6 kB / 443.6 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3006, allocations: 0 / 443.6 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3006, allocations: 0 / 443.6 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.3006, allocations: 0 / 443.6 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.3006, allocations: 4 kB / 443.6 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.3006, allocations: 0 / 443.6 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3006, allocations: 0 / 443.6 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/0.3008, allocations: 222.6 kB / 443.8 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.177e-05/0.3008, allocations: 92.89 kB / 443.9 MB, free: 7.895 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.3009, allocations: 4 kB / 443.9 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.205e-05/0.3009, allocations: 7.938 kB / 443.9 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.3009, allocations: 3.984 kB / 443.9 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.3009, allocations: 4 kB / 443.9 MB, free: 7.875 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.682e-05/0.301, allocations: 99.27 kB / 444 MB, free: 7.777 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.301, allocations: 0 / 444 MB, free: 7.777 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006361/0.3016, allocations: 312 kB / 444.3 MB, free: 7.473 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.0007905/0.3024, allocations: 374.5 kB / 444.7 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002153/0.3026, allocations: 195.3 kB / 444.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3026, allocations: 4 kB / 444.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.48e-05/0.3027, allocations: 147.4 kB / 445 MB, free: 6.734 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.303, allocations: 16.11 kB / 445 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003872/0.3034, allocations: 282.2 kB / 445.3 MB, free: 6.418 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000154/0.3035, allocations: 0.6965 MB / 446 MB, free: 5.695 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.221e-05/0.3036, allocations: 3.953 kB / 446 MB, free: 5.691 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.3036, allocations: 11.44 kB / 446 MB, free: 5.68 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3036, allocations: 0 / 446 MB, free: 5.68 MB / 318.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].