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.001016/0.001016, allocations: 93.91 kB / 16.32 MB, free: 5.676 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.001245/0.001245, allocations: 182.6 kB / 17.21 MB, free: 5.594 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.301/1.301, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1684/0.1684, allocations: 38.04 MB / 309.7 MB, free: 6.039 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.0004839/0.000484, allocations: 19.28 kB / 376.5 MB, free: 3.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2069, allocations: 56.33 MB / 432.8 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.001723/0.2087, allocations: 1.77 MB / 434.6 MB, free: 17.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.2109, allocations: 1.944 MB / 436.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.707e-05/0.211, allocations: 0 / 436.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.2112, allocations: 19.91 kB / 436.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.424e-05/0.2113, allocations: 27.84 kB / 436.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.2128, allocations: 0.646 MB / 437.2 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.729e-05/0.2129, allocations: 95.64 kB / 437.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.268e-05/0.2129, allocations: 4.188 kB / 437.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.351e-05/0.213, allocations: 31.84 kB / 437.4 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.549e-05/0.2131, allocations: 39.83 kB / 437.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.2131, allocations: 0 / 437.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.2144, allocations: 1.057 MB / 438.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.763e-05/0.2144, allocations: 15.98 kB / 438.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.2145, allocations: 33.64 kB / 438.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007727/0.2153, allocations: 0.9024 MB / 439.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2153, allocations: 0 / 439.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2153, allocations: 0 / 439.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.2153, allocations: 0 / 439.4 MB, free: 12.21 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.0004518/0.2157, allocations: 0.4967 MB / 439.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2158, allocations: 8.031 kB / 439.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.346e-05/0.2158, allocations: 11.91 kB / 439.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.216, allocations: 182.9 kB / 440.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-06/0.216, allocations: 0 / 440.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.216, allocations: 0 / 440.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.2161, allocations: 57.61 kB / 440.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.2161, allocations: 0 / 440.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.858e-06/0.2162, allocations: 4 kB / 440.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2162, allocations: 3.953 kB / 440.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.572e-05/0.2162, allocations: 19.98 kB / 440.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001044/0.2163, allocations: 165.7 kB / 440.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.787e-05/0.2164, allocations: 50.56 kB / 440.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.507e-05/0.2164, allocations: 36.88 kB / 440.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-06/0.2164, allocations: 7.875 kB / 440.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.2165, allocations: 30.56 kB / 440.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.2165, allocations: 0 / 440.5 MB, free: 10.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002155/0.2167, allocations: 151.4 kB / 440.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.2167, allocations: 97.09 kB / 440.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.539e-05/0.2168, allocations: 117.8 kB / 440.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.767e-06/0.2168, allocations: 25.7 kB / 440.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.434e-05/0.2168, allocations: 92.14 kB / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.2169, allocations: 27.64 kB / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-06/0.2169, allocations: 0 / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.398e-05/0.217, allocations: 318.8 kB / 441.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.255e-05/0.217, allocations: 20 kB / 441.3 MB, free: 10.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.554e-05/0.217, allocations: 31.86 kB / 441.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.165e-05/0.2171, allocations: 65.67 kB / 441.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2171, allocations: 0 / 441.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001222/0.2172, allocations: 119.3 kB / 441.5 MB, free: 9.859 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.2173, allocations: 45.69 kB / 441.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2173, allocations: 0 / 441.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.2173, allocations: 0 / 441.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.2173, allocations: 0 / 441.6 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.2173, allocations: 3.984 kB / 441.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.381e-05/0.2174, allocations: 11.86 kB / 441.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.738e-05/0.2174, allocations: 4 kB / 441.6 MB, free: 9.789 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 6.958e-05/0.2175, allocations: 155.5 kB / 441.7 MB, free: 9.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.2175, allocations: 11.91 kB / 441.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.348e-05/0.2175, allocations: 12.36 kB / 441.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2175, allocations: 0 / 441.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2175, allocations: 0 / 441.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.2175, allocations: 0 / 441.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.653e-05/0.2176, allocations: 169.6 kB / 441.9 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.2176, allocations: 0 / 441.9 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.2176, allocations: 7.922 kB / 441.9 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.2176, allocations: 4 kB / 441.9 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.2176, allocations: 7.984 kB / 442 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.2177, allocations: 0 / 442 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2177, allocations: 0 / 442 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/0.2178, allocations: 222.6 kB / 442.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.848e-05/0.2179, allocations: 92.94 kB / 442.3 MB, free: 9.012 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.2179, allocations: 4 kB / 442.3 MB, free: 9.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.198e-05/0.2179, allocations: 4 kB / 442.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.769e-05/0.2179, allocations: 4.031 kB / 442.3 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-06/0.218, allocations: 4 kB / 442.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.48e-05/0.218, allocations: 106.1 kB / 442.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.218, allocations: 0 / 442.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006274/0.2186, allocations: 308 kB / 442.7 MB, free: 8.594 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.0007086/0.2194, allocations: 362.3 kB / 443 MB, free: 8.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001952/0.2196, allocations: 199.3 kB / 443.2 MB, free: 8.023 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2196, allocations: 0 / 443.2 MB, free: 8.023 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.759e-05/0.2197, allocations: 147.4 kB / 443.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.2199, allocations: 11.95 kB / 443.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.2202, allocations: 274.3 kB / 443.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.2204, allocations: 0.6965 MB / 444.3 MB, free: 6.844 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.221e-05/0.2204, allocations: 4 kB / 444.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.317e-06/0.2204, allocations: 7.438 kB / 444.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2204, allocations: 0 / 444.4 MB, free: 6.832 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].