Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 91.97 kB / 16.65 MB, free: 6.59 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.001168/0.001168, allocations: 181.1 kB / 17.56 MB, free: 6.203 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.556/1.556, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1721/0.1721, allocations: 38.05 MB / 310.1 MB, free: 5.926 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.0005513/0.0005518, allocations: 23.12 kB / 377.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2324, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002129/0.2345, allocations: 1.801 MB / 435.3 MB, free: 16.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002805/0.2374, allocations: 2.153 MB / 437.4 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.017e-05/0.2375, allocations: 4 kB / 437.5 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001661/0.2377, allocations: 11.92 kB / 437.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.2378, allocations: 31.83 kB / 437.5 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00183/0.2396, allocations: 0.6788 MB / 438.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.2398, allocations: 127.7 kB / 438.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.713e-05/0.2398, allocations: 4.188 kB / 438.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.2399, allocations: 31.8 kB / 438.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.275e-05/0.24, allocations: 47.83 kB / 438.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.2401, allocations: 0 / 438.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001552/0.2416, allocations: 1.232 MB / 439.6 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.103e-05/0.2417, allocations: 19.92 kB / 439.6 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.603e-05/0.2417, allocations: 53.44 kB / 439.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.2431, allocations: 1.28 MB / 441 MB, free: 11.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.2431, allocations: 7.938 kB / 441 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2431, allocations: 0 / 441 MB, free: 11.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.2432, allocations: 0 / 441 MB, free: 11.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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005853/0.2437, allocations: 0.5086 MB / 441.5 MB, free: 10.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.2438, allocations: 8.031 kB / 441.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.27e-05/0.2438, allocations: 12.78 kB / 441.5 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.244, allocations: 191.5 kB / 441.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.244, allocations: 0 / 441.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.244, allocations: 0 / 441.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001247/0.2441, allocations: 73.66 kB / 441.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2441, allocations: 0 / 441.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.2442, allocations: 0 / 441.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2442, allocations: 0 / 441.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.765e-05/0.2442, allocations: 31.98 kB / 441.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001137/0.2443, allocations: 177.5 kB / 442 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.542e-05/0.2444, allocations: 62.5 kB / 442 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.795e-05/0.2445, allocations: 48.88 kB / 442.1 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-06/0.2445, allocations: 4 kB / 442.1 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.2445, allocations: 30.56 kB / 442.1 MB, free: 9.855 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.2445, allocations: 0 / 442.1 MB, free: 9.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002711/0.2448, allocations: 195.4 kB / 442.3 MB, free: 9.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.2448, allocations: 89.05 kB / 442.4 MB, free: 9.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.135e-05/0.2449, allocations: 133 kB / 442.5 MB, free: 9.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.245, allocations: 25.7 kB / 442.5 MB, free: 9.379 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.974e-05/0.245, allocations: 96.12 kB / 442.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.721e-05/0.245, allocations: 39.48 kB / 442.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.523e-05/0.2451, allocations: 17.72 kB / 442.7 MB, free: 9.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.693e-05/0.2451, allocations: 326.8 kB / 443 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.32e-05/0.2452, allocations: 31.98 kB / 443 MB, free: 8.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.447e-05/0.2452, allocations: 27.98 kB / 443.1 MB, free: 8.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.2454, allocations: 164 kB / 443.2 MB, free: 8.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2454, allocations: 0 / 443.2 MB, free: 8.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001561/0.2455, allocations: 163 kB / 443.4 MB, free: 8.488 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/0.2456, allocations: 49.67 kB / 443.4 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2456, allocations: 4.062 kB / 443.4 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.2456, allocations: 0 / 443.4 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.034e-06/0.2456, allocations: 4 kB / 443.4 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2456, allocations: 0 / 443.4 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.031e-05/0.2457, allocations: 7.938 kB / 443.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.2457, allocations: 4 kB / 443.5 MB, free: 8.414 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.039e-05/0.2458, allocations: 171.4 kB / 443.6 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.779e-05/0.2458, allocations: 15.89 kB / 443.6 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.319e-05/0.2458, allocations: 8.656 kB / 443.6 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2459, allocations: 4 kB / 443.6 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2459, allocations: 0 / 443.6 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.2459, allocations: 4 kB / 443.7 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.231e-05/0.246, allocations: 181.5 kB / 443.8 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.246, allocations: 0 / 443.8 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.246, allocations: 0 / 443.8 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.246, allocations: 0 / 443.8 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.246, allocations: 11.98 kB / 443.8 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.246, allocations: 0 / 443.8 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.246, allocations: 0 / 443.8 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.2463, allocations: 298.4 kB / 444.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.203e-05/0.2463, allocations: 84.95 kB / 444.2 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.2463, allocations: 4 kB / 444.2 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.905e-05/0.2464, allocations: 4 kB / 444.2 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.546e-05/0.2464, allocations: 3.984 kB / 444.2 MB, free: 7.531 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.2464, allocations: 4 kB / 444.2 MB, free: 7.527 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.263e-05/0.2464, allocations: 103.2 kB / 444.3 MB, free: 7.426 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2465, allocations: 0 / 444.3 MB, free: 7.426 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007489/0.2472, allocations: 327.9 kB / 444.7 MB, free: 7.105 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.0008846/0.2481, allocations: 373.9 kB / 445 MB, free: 6.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002675/0.2484, allocations: 295.2 kB / 445.3 MB, free: 6.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2484, allocations: 0 / 445.3 MB, free: 6.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.2485, allocations: 227.3 kB / 445.5 MB, free: 6.195 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.2488, allocations: 12.12 kB / 445.5 MB, free: 6.184 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003947/0.2492, allocations: 342.8 kB / 445.9 MB, free: 5.824 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.2493, allocations: 0.7083 MB / 446.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.144e-05/0.2493, allocations: 3.953 kB / 446.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.367e-05/0.2493, allocations: 7.438 kB / 446.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2493, allocations: 0 / 446.6 MB, free: 5.078 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].