Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009468/0.0009508, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001016/0.001016, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.52/1.52, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1741/0.1741, allocations: 38.03 MB / 309.7 MB, free: 6.145 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.0004994/0.0004994, allocations: 27.27 kB / 376.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.245, allocations: 56.32 MB / 432.8 MB, free: 18.88 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.001874/0.2469, allocations: 1.792 MB / 434.6 MB, free: 17.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.249, allocations: 1.947 MB / 436.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.106e-05/0.249, allocations: 0 / 436.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.2492, allocations: 15.92 kB / 436.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.696e-05/0.2492, allocations: 23.89 kB / 436.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.2505, allocations: 0.5735 MB / 437.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.617e-05/0.2505, allocations: 47.91 kB / 437.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.308e-05/0.2506, allocations: 4 kB / 437.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.206e-05/0.2507, allocations: 31.84 kB / 437.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.663e-05/0.2507, allocations: 35.84 kB / 437.3 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.019e-05/0.2507, allocations: 4 kB / 437.3 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001035/0.2518, allocations: 0.971 MB / 438.2 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.995e-05/0.2518, allocations: 19.98 kB / 438.3 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.123e-05/0.2519, allocations: 41.64 kB / 438.3 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007241/0.2526, allocations: 0.918 MB / 439.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.2526, allocations: 0 / 439.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2526, allocations: 3.938 kB / 439.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.2526, allocations: 0 / 439.2 MB, free: 12.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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004601/0.2531, allocations: 0.5315 MB / 439.8 MB, free: 11.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.2531, allocations: 12.03 kB / 439.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.2532, allocations: 7.906 kB / 439.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.2533, allocations: 190.9 kB / 440 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.2533, allocations: 0 / 440 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.2533, allocations: 4 kB / 440 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.2535, allocations: 73.66 kB / 440 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.2535, allocations: 0 / 440 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.2535, allocations: 4 kB / 440 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/0.2535, allocations: 3.953 kB / 440.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.907e-05/0.2536, allocations: 35.92 kB / 440.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001199/0.2537, allocations: 189.5 kB / 440.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.755e-05/0.2538, allocations: 74.55 kB / 440.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.2538, allocations: 0 / 440.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.2538, allocations: 34.59 kB / 440.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 7.61e-07/0.2538, allocations: 0 / 440.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003119/0.2542, allocations: 306.8 kB / 440.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.2542, allocations: 93.14 kB / 440.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.781e-05/0.2543, allocations: 165.9 kB / 440.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.2543, allocations: 25.7 kB / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.2544, allocations: 96.38 kB / 441 MB, free: 10.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.75e-05/0.2544, allocations: 47.28 kB / 441.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-06/0.2544, allocations: 0 / 441.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.011e-05/0.2545, allocations: 322.8 kB / 441.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.34e-05/0.2545, allocations: 43.97 kB / 441.5 MB, free: 9.945 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.812e-05/0.2546, allocations: 35.97 kB / 441.5 MB, free: 9.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.505e-05/0.2546, allocations: 89.7 kB / 441.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2546, allocations: 0 / 441.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001505/0.2548, allocations: 175.1 kB / 441.7 MB, free: 9.633 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.2548, allocations: 53.62 kB / 441.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.2548, allocations: 0 / 441.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/0.2549, allocations: 0 / 441.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.2549, allocations: 0 / 441.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.2549, allocations: 0 / 441.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.277e-05/0.2549, allocations: 11.86 kB / 441.8 MB, free: 9.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.255, allocations: 7.984 kB / 441.8 MB, free: 9.555 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 8.725e-05/0.2551, allocations: 171.5 kB / 442 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.489e-05/0.2551, allocations: 7.906 kB / 442 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.347e-05/0.2551, allocations: 12.83 kB / 442 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2551, allocations: 3.984 kB / 442 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2551, allocations: 7.938 kB / 442 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.2551, allocations: 0 / 442 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.2552, allocations: 197.4 kB / 442.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2552, allocations: 0 / 442.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.2552, allocations: 0 / 442.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.2552, allocations: 4 kB / 442.2 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.2553, allocations: 4 kB / 442.2 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2553, allocations: 0 / 442.2 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2553, allocations: 0 / 442.2 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002574/0.2555, allocations: 305.5 kB / 442.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.2556, allocations: 92.92 kB / 442.6 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.2556, allocations: 4 kB / 442.6 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.381e-05/0.2557, allocations: 0 / 442.6 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/0.2557, allocations: 8.031 kB / 442.6 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.2557, allocations: 4 kB / 442.6 MB, free: 8.648 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.759e-05/0.2557, allocations: 115.2 kB / 442.7 MB, free: 8.535 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2557, allocations: 0 / 442.7 MB, free: 8.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006126/0.2564, allocations: 323.9 kB / 443.1 MB, free: 8.219 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.0006889/0.2571, allocations: 362.3 kB / 443.4 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002692/0.2573, allocations: 339.2 kB / 443.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2574, allocations: 0 / 443.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.2575, allocations: 259.3 kB / 444 MB, free: 7.246 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.2577, allocations: 19.55 kB / 444 MB, free: 7.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004012/0.2581, allocations: 377.1 kB / 444.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.2582, allocations: 0.716 MB / 445.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.481e-05/0.2583, allocations: 11.94 kB / 445.1 MB, free: 6.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-06/0.2583, allocations: 7.438 kB / 445.1 MB, free: 6.078 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2583, allocations: 0 / 445.1 MB, free: 6.078 MB / 318.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. [CodegenCFunctions.tpl:7266:14-7266:14:writable] Error: Template error: Code generation does not support multiple iterators: array(abs((v[:,fill(1, n)] - v[:,2:n + 1])[$i1, $i2]) for $i2 in 1:max(n + 1 - 2 + 1, 0), $i1 in 1:n).