Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.00113, allocations: 93.27 kB / 16.3 MB, free: 6.133 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.001204/0.001204, allocations: 179 kB / 17.2 MB, free: 6.016 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.589/1.589, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1725/0.1725, allocations: 38.05 MB / 309.7 MB, free: 6.121 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.0004766/0.0004769, allocations: 12 kB / 376.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2419, allocations: 56.33 MB / 432.8 MB, free: 18.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.001831/0.2437, allocations: 1.757 MB / 434.6 MB, free: 17.08 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.2459, allocations: 1.94 MB / 436.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.701e-05/0.246, allocations: 0 / 436.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.2462, allocations: 15.92 kB / 436.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.608e-05/0.2463, allocations: 15.97 kB / 436.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.2478, allocations: 0.5891 MB / 437.1 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.708e-05/0.2479, allocations: 43.86 kB / 437.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.113e-05/0.2479, allocations: 8.188 kB / 437.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.536e-05/0.248, allocations: 27.91 kB / 437.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.694e-05/0.2481, allocations: 39.84 kB / 437.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.2481, allocations: 4 kB / 437.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001287/0.2494, allocations: 0.9866 MB / 438.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.548e-05/0.2495, allocations: 39.91 kB / 438.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.551e-05/0.2496, allocations: 41.58 kB / 438.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008839/0.2505, allocations: 0.9454 MB / 439.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2505, allocations: 0 / 439.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.2505, allocations: 0 / 439.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.2505, allocations: 0 / 439.3 MB, free: 12.36 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005943/0.2511, allocations: 0.5861 MB / 439.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.2511, allocations: 12.03 kB / 439.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.821e-05/0.2512, allocations: 15.72 kB / 439.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001899/0.2514, allocations: 214.6 kB / 440.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-06/0.2514, allocations: 0 / 440.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.2514, allocations: 8 kB / 440.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.2516, allocations: 138.6 kB / 440.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.2516, allocations: 0 / 440.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.2516, allocations: 0 / 440.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.2517, allocations: 3.953 kB / 440.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.411e-05/0.2518, allocations: 96.28 kB / 440.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001908/0.2519, allocations: 214 kB / 440.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.2521, allocations: 154.9 kB / 440.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-06/0.2521, allocations: 0 / 440.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.2521, allocations: 34.5 kB / 440.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 8.21e-07/0.2521, allocations: 0 / 440.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.000594/0.2527, allocations: 0.5794 MB / 441.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.2528, allocations: 109.1 kB / 441.4 MB, free: 10 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.2529, allocations: 178.8 kB / 441.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.2529, allocations: 25.7 kB / 441.6 MB, free: 9.789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.944e-05/0.253, allocations: 108.8 kB / 441.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.408e-05/0.2531, allocations: 122.1 kB / 441.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-06/0.2531, allocations: 4 kB / 441.8 MB, free: 9.555 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.198e-05/0.2532, allocations: 334.8 kB / 442.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.914e-05/0.2532, allocations: 99.89 kB / 442.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.012e-05/0.2533, allocations: 95.95 kB / 442.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.2535, allocations: 194.9 kB / 442.5 MB, free: 8.832 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2535, allocations: 0 / 442.5 MB, free: 8.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002721/0.2538, allocations: 342.9 kB / 442.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.487e-05/0.2538, allocations: 81.64 kB / 443 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2538, allocations: 0 / 443 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.2539, allocations: 4 kB / 443 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.2539, allocations: 0 / 443 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.2539, allocations: 3.984 kB / 443 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.128e-05/0.254, allocations: 31.62 kB / 443 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.254, allocations: 8 kB / 443 MB, free: 8.352 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.0001686/0.2542, allocations: 235.5 kB / 443.2 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.2542, allocations: 23.72 kB / 443.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.718e-05/0.2542, allocations: 14.59 kB / 443.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.2542, allocations: 0 / 443.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2542, allocations: 0 / 443.3 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2543, allocations: 4 kB / 443.3 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.2544, allocations: 237.4 kB / 443.5 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.2544, allocations: 0 / 443.5 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.2544, allocations: 3.984 kB / 443.5 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2544, allocations: 4 kB / 443.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.2544, allocations: 8 kB / 443.5 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2544, allocations: 0 / 443.5 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2545, allocations: 7.922 kB / 443.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000747/0.2552, allocations: 0.9121 MB / 444.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.2553, allocations: 100.7 kB / 444.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.2553, allocations: 8 kB / 444.5 MB, free: 6.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.764e-05/0.2553, allocations: 4 kB / 444.5 MB, free: 6.695 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.2554, allocations: 12.03 kB / 444.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.2554, allocations: 11.98 kB / 444.6 MB, free: 6.672 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.392e-05/0.2555, allocations: 123.2 kB / 444.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2555, allocations: 0 / 444.7 MB, free: 6.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008659/0.2564, allocations: 355.9 kB / 445 MB, free: 6.203 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.0007603/0.2572, allocations: 372.9 kB / 445.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.2582, allocations: 1.6 MB / 447 MB, free: 4.223 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2582, allocations: 0 / 447 MB, free: 4.223 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007007/0.259, allocations: 1.374 MB / 448.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.2592, allocations: 15.95 kB / 448.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000724/0.2599, allocations: 0.731 MB / 449.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.2601, allocations: 0.7598 MB / 449.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.216e-05/0.2601, allocations: 3.984 kB / 449.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.14e-05/0.2601, allocations: 7.438 kB / 449.9 MB, free: 1.27 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2601, allocations: 0 / 449.9 MB, free: 1.27 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).