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.0007928/0.0007928, allocations: 88.72 kB / 16.31 MB, free: 5.684 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.0008083/0.0008085, allocations: 181.5 kB / 17.21 MB, free: 5.602 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.282/1.282, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1666/0.1666, allocations: 38.04 MB / 309.7 MB, free: 6.117 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.0005466/0.0005468, allocations: 16 kB / 376.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2274, allocations: 56.33 MB / 432.8 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.00211/0.2295, allocations: 1.77 MB / 434.6 MB, free: 17.05 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.2325, allocations: 1.944 MB / 436.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.604e-05/0.2326, allocations: 0 / 436.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.2327, allocations: 7.922 kB / 436.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.637e-05/0.2328, allocations: 39.83 kB / 436.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.2346, allocations: 0.642 MB / 437.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000115/0.2347, allocations: 103.6 kB / 437.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.659e-05/0.2348, allocations: 192 / 437.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.757e-05/0.2349, allocations: 27.86 kB / 437.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.362e-05/0.235, allocations: 51.81 kB / 437.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.235, allocations: 4 kB / 437.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001601/0.2366, allocations: 1.06 MB / 438.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.012e-05/0.2366, allocations: 27.91 kB / 438.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.164e-05/0.2367, allocations: 41.58 kB / 438.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009507/0.2376, allocations: 0.9219 MB / 439.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2377, allocations: 8 kB / 439.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2377, allocations: 0 / 439.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.2377, allocations: 0 / 439.5 MB, free: 12.16 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.0006435/0.2383, allocations: 0.5511 MB / 440 MB, free: 11.56 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.2384, allocations: 8.031 kB / 440 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.015e-05/0.2384, allocations: 11.81 kB / 440.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.2386, allocations: 194.8 kB / 440.2 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.2386, allocations: 4 kB / 440.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.2386, allocations: 4 kB / 440.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.2387, allocations: 101.5 kB / 440.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.2388, allocations: 0 / 440.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.2388, allocations: 0 / 440.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.2388, allocations: 3.953 kB / 440.4 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.453e-05/0.2389, allocations: 67.91 kB / 440.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.239, allocations: 185.4 kB / 440.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.32e-05/0.2391, allocations: 106.5 kB / 440.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.635e-05/0.2392, allocations: 92.86 kB / 440.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.706e-06/0.2392, allocations: 3.938 kB / 440.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.2392, allocations: 30.56 kB / 440.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 9.51e-07/0.2392, allocations: 0 / 440.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004785/0.2397, allocations: 311.1 kB / 441.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.2398, allocations: 105 kB / 441.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.2399, allocations: 155.2 kB / 441.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.2399, allocations: 25.7 kB / 441.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.24, allocations: 100.6 kB / 441.5 MB, free: 9.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.316e-05/0.2401, allocations: 74.84 kB / 441.6 MB, free: 9.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-06/0.2401, allocations: 0 / 441.6 MB, free: 9.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.186e-05/0.2402, allocations: 330.8 kB / 441.9 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.273e-05/0.2402, allocations: 63.91 kB / 442 MB, free: 9.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.949e-05/0.2403, allocations: 60.72 kB / 442 MB, free: 9.387 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.096e-05/0.2404, allocations: 129.7 kB / 442.2 MB, free: 9.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.2404, allocations: 4.031 kB / 442.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002021/0.2406, allocations: 235 kB / 442.4 MB, free: 9.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.811e-05/0.2407, allocations: 65.66 kB / 442.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2407, allocations: 0 / 442.5 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2407, allocations: 3.984 kB / 442.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.2407, allocations: 0 / 442.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2407, allocations: 0 / 442.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.425e-05/0.2408, allocations: 19.8 kB / 442.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.2408, allocations: 4 kB / 442.5 MB, free: 8.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.2409, allocations: 203.5 kB / 442.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.2409, allocations: 15.81 kB / 442.7 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.318e-05/0.241, allocations: 13.17 kB / 442.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.241, allocations: 0 / 442.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.241, allocations: 0 / 442.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.241, allocations: 0 / 442.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001252/0.2411, allocations: 209.4 kB / 442.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2411, allocations: 0 / 442.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.213e-06/0.2411, allocations: 3.938 kB / 442.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.2411, allocations: 0 / 442.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.2412, allocations: 4 kB / 442.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.2412, allocations: 11.98 kB / 442.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2412, allocations: 0 / 442.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004203/0.2416, allocations: 0.5101 MB / 443.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.2417, allocations: 100.8 kB / 443.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.2417, allocations: 7.938 kB / 443.5 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.667e-05/0.2417, allocations: 4 kB / 443.6 MB, free: 7.734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.732e-05/0.2418, allocations: 4 kB / 443.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.2418, allocations: 4.031 kB / 443.6 MB, free: 7.727 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.142e-05/0.2418, allocations: 123.1 kB / 443.7 MB, free: 7.605 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2418, allocations: 0 / 443.7 MB, free: 7.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007749/0.2426, allocations: 331.9 kB / 444 MB, free: 7.281 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009645/0.2436, allocations: 361.7 kB / 444.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000601/0.2442, allocations: 0.7177 MB / 445.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2442, allocations: 0 / 445.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003054/0.2445, allocations: 0.5696 MB / 445.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002068/0.2448, allocations: 15.94 kB / 445.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005071/0.2453, allocations: 0.5038 MB / 446.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.2454, allocations: 0.728 MB / 446.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.109e-05/0.2454, allocations: 0 / 446.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.22e-05/0.2455, allocations: 11.44 kB / 446.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2455, allocations: 4 kB / 446.9 MB, free: 4.293 MB / 318.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].