Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000914/0.000914, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.0008744/0.0008745, allocations: 181.3 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2783/0.2783, allocations: 38.08 MB / 330.3 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002926, allocations: 8 kB / 400.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2541, allocations: 59.16 MB / 459.2 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.001779/0.2559, allocations: 1.761 MB / 461 MB, free: 28.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.258, allocations: 1.899 MB / 462.9 MB, free: 27.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.98e-05/0.2581, allocations: 0 / 462.9 MB, free: 27.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.2582, allocations: 15.59 kB / 462.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.95e-05/0.2582, allocations: 18.27 kB / 462.9 MB, free: 27.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.2596, allocations: 0.5932 MB / 463.5 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.519e-05/0.2597, allocations: 40.19 kB / 463.5 MB, free: 27.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.662e-05/0.2598, allocations: 7.25 kB / 463.5 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.322e-05/0.2598, allocations: 24.75 kB / 463.6 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.296e-05/0.2599, allocations: 36.41 kB / 463.6 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.064e-05/0.2599, allocations: 2.25 kB / 463.6 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.2613, allocations: 0.9833 MB / 464.6 MB, free: 27.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.565e-05/0.2614, allocations: 24.64 kB / 464.6 MB, free: 27.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.279e-05/0.2614, allocations: 42.8 kB / 464.7 MB, free: 27.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.2626, allocations: 0.9331 MB / 465.6 MB, free: 26.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.2626, allocations: 0 / 465.6 MB, free: 26.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2626, allocations: 0 / 465.6 MB, free: 26.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.2626, allocations: 0 / 465.6 MB, free: 26.97 MB / 350.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.0004923/0.2631, allocations: 0.5514 MB / 466.1 MB, free: 26.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.2631, allocations: 9.156 kB / 466.1 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.175e-05/0.2632, allocations: 41.48 kB / 466.2 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.338e-05/0.2632, allocations: 12.56 kB / 466.2 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.2633, allocations: 197.9 kB / 466.4 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.881e-06/0.2634, allocations: 4 kB / 466.4 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.2634, allocations: 5.5 kB / 466.4 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.2635, allocations: 104.1 kB / 466.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.29e-06/0.2635, allocations: 0 / 466.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.2635, allocations: 0.5156 kB / 466.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2636, allocations: 0 / 466.5 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.604e-05/0.2636, allocations: 61.45 kB / 466.6 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001143/0.2638, allocations: 192.7 kB / 466.8 MB, free: 25.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.926e-05/0.2639, allocations: 105.6 kB / 466.9 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.11e-06/0.2639, allocations: 4 kB / 466.9 MB, free: 25.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.399e-05/0.2639, allocations: 36.5 kB / 466.9 MB, free: 25.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 9.51e-07/0.2639, allocations: 0 / 466.9 MB, free: 25.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004416/0.2643, allocations: 407.1 kB / 467.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.2644, allocations: 95.55 kB / 467.4 MB, free: 25.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.226e-05/0.2645, allocations: 150.3 kB / 467.5 MB, free: 25.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.285e-06/0.2645, allocations: 25.7 kB / 467.6 MB, free: 25.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.001e-05/0.2645, allocations: 107.8 kB / 467.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.086e-05/0.2646, allocations: 79.38 kB / 467.7 MB, free: 25.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-06/0.2646, allocations: 1.531 kB / 467.7 MB, free: 25.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.753e-05/0.2647, allocations: 332.5 kB / 468.1 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.054e-05/0.2647, allocations: 61.67 kB / 468.1 MB, free: 24.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.711e-05/0.2648, allocations: 61.02 kB / 468.2 MB, free: 24.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.2649, allocations: 125.7 kB / 468.3 MB, free: 24.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2649, allocations: 0 / 468.3 MB, free: 24.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002333/0.2652, allocations: 241.5 kB / 468.5 MB, free: 24.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.778e-05/0.2652, allocations: 70 kB / 468.6 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2653, allocations: 4.969 kB / 468.6 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.2653, allocations: 0 / 468.6 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.234e-06/0.2653, allocations: 1.328 kB / 468.6 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.2653, allocations: 0 / 468.6 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.467e-05/0.2653, allocations: 13.47 kB / 468.6 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.2654, allocations: 6.609 kB / 468.6 MB, free: 24.65 MB / 350.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.0001231/0.2655, allocations: 191.2 kB / 468.8 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.248e-05/0.2655, allocations: 19.09 kB / 468.8 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.395e-05/0.2656, allocations: 17.73 kB / 468.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2656, allocations: 0 / 468.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.2656, allocations: 5.125 kB / 468.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.2656, allocations: 0 / 468.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.2657, allocations: 205 kB / 469.1 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2657, allocations: 0.6562 kB / 469.1 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.2657, allocations: 0 / 469.1 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2657, allocations: 5.078 kB / 469.1 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.2657, allocations: 5.281 kB / 469.1 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2657, allocations: 1.188 kB / 469.1 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2657, allocations: 0 / 469.1 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005221/0.2663, allocations: 0.5111 MB / 469.6 MB, free: 24.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.559e-05/0.2663, allocations: 89.86 kB / 469.7 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.2663, allocations: 8.016 kB / 469.7 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.905e-05/0.2664, allocations: 4.344 kB / 469.7 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.867e-05/0.2664, allocations: 7.016 kB / 469.7 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.2664, allocations: 7 kB / 469.7 MB, free: 23.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.884e-05/0.2665, allocations: 119.7 kB / 469.8 MB, free: 23.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2665, allocations: 9.062 kB / 469.8 MB, free: 23.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009002/0.2674, allocations: 333.9 kB / 470.2 MB, free: 23.84 MB / 350.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.001327/0.2687, allocations: 1.301 MB / 471.5 MB, free: 23.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005803/0.2693, allocations: 0.7112 MB / 472.2 MB, free: 22.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2693, allocations: 0 / 472.2 MB, free: 22.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003613/0.2697, allocations: 0.5793 MB / 472.7 MB, free: 22.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.2699, allocations: 8.078 kB / 472.8 MB, free: 22.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.2715, allocations: 1.456 MB / 474.2 MB, free: 21.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.2716, allocations: 0.7349 MB / 474.9 MB, free: 21.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.111e-05/0.2716, allocations: 0.5156 kB / 474.9 MB, free: 21.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.385e-05/0.2717, allocations: 32.45 kB / 475 MB, free: 21.03 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2717, allocations: 0 / 475 MB, free: 21.03 MB / 350.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).