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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001037/0.001037, allocations: 95.41 kB / 16.3 MB, free: 5.996 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.001137/0.001137, allocations: 184 kB / 17.2 MB, free: 5.91 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.543/1.543, allocations: 205.4 MB / 223.4 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3248/0.3248, allocations: 38.05 MB / 309.7 MB, free: 9.004 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.0005215/0.0005216, allocations: 14.19 kB / 376.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1247, allocations: 56.34 MB / 432.9 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002498/0.1273, allocations: 1.746 MB / 434.7 MB, free: 4.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003096/0.1304, allocations: 1.943 MB / 436.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.295e-05/0.1305, allocations: 0 / 436.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002384/0.1307, allocations: 11.92 kB / 436.6 MB, free: 3.004 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.93e-05/0.1308, allocations: 19.95 kB / 436.7 MB, free: 2.984 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001636/0.1325, allocations: 0.5891 MB / 437.2 MB, free: 2.395 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.858e-05/0.1325, allocations: 43.86 kB / 437.3 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.297e-05/0.1326, allocations: 12.17 kB / 437.3 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.429e-05/0.1327, allocations: 31.84 kB / 437.3 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.685e-05/0.1327, allocations: 19.91 kB / 437.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.1328, allocations: 4 kB / 437.3 MB, free: 2.285 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.1342, allocations: 0.9827 MB / 438.3 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.093e-05/0.1342, allocations: 11.98 kB / 438.3 MB, free: 1.289 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.301e-05/0.1343, allocations: 33.64 kB / 438.4 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.1355, allocations: 0.9008 MB / 439.3 MB, free: 356 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1355, allocations: 3.938 kB / 439.3 MB, free: 352 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1355, allocations: 0 / 439.3 MB, free: 352 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.1355, allocations: 0 / 439.3 MB, free: 352 kB / 366.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.0007395/0.1363, allocations: 0.4929 MB / 439.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1363, allocations: 12.03 kB / 439.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.555e-05/0.1364, allocations: 34.5 kB / 439.8 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/0.1364, allocations: 7.906 kB / 439.8 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.1366, allocations: 186.8 kB / 440 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-06/0.1366, allocations: 4 kB / 440 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.679e-06/0.1366, allocations: 0 / 440 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.1368, allocations: 61.62 kB / 440.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.139e-06/0.1368, allocations: 0 / 440.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.1368, allocations: 0 / 440.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.1368, allocations: 0 / 440.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.14e-05/0.1368, allocations: 19.98 kB / 440.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001559/0.137, allocations: 165.7 kB / 440.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.331e-05/0.1371, allocations: 58.48 kB / 440.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-06/0.1371, allocations: 0 / 440.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.1371, allocations: 30.56 kB / 440.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 7.62e-07/0.1371, allocations: 0 / 440.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003141/0.1374, allocations: 240.5 kB / 440.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.1375, allocations: 85.11 kB / 440.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.955e-05/0.1376, allocations: 121.8 kB / 440.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.1376, allocations: 25.7 kB / 440.8 MB, free: 14.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.658e-05/0.1377, allocations: 100 kB / 440.9 MB, free: 14.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.1377, allocations: 23.7 kB / 440.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-06/0.1377, allocations: 0 / 440.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.1379, allocations: 314.8 kB / 441.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.382e-05/0.1379, allocations: 19.98 kB / 441.3 MB, free: 14.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.186e-05/0.138, allocations: 23.98 kB / 441.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.122e-05/0.138, allocations: 61.69 kB / 441.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.138, allocations: 3.984 kB / 441.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001502/0.1382, allocations: 123.3 kB / 441.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/0.1382, allocations: 45.75 kB / 441.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1382, allocations: 0 / 441.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1383, allocations: 3.953 kB / 441.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1383, allocations: 0 / 441.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.1383, allocations: 0 / 441.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.152e-05/0.1383, allocations: 11.84 kB / 441.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.1384, allocations: 7.984 kB / 441.5 MB, free: 13.82 MB / 382.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.0001198/0.1385, allocations: 151.5 kB / 441.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.1385, allocations: 11.84 kB / 441.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.568e-05/0.1385, allocations: 12.38 kB / 441.7 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1385, allocations: 7.922 kB / 441.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1385, allocations: 3.953 kB / 441.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1386, allocations: 0 / 441.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.1387, allocations: 169.7 kB / 441.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1387, allocations: 7.938 kB / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-07/0.1387, allocations: 0 / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.1387, allocations: 0 / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.1387, allocations: 4 kB / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1387, allocations: 3.984 kB / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1388, allocations: 0 / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.139, allocations: 226.9 kB / 442.1 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.84e-05/0.1391, allocations: 81.02 kB / 442.2 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.1391, allocations: 7.984 kB / 442.2 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.176e-05/0.1391, allocations: 0 / 442.2 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.851e-05/0.1391, allocations: 4 kB / 442.2 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.1391, allocations: 4 kB / 442.2 MB, free: 13.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.5e-05/0.1392, allocations: 99.22 kB / 442.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1392, allocations: 7.969 kB / 442.3 MB, free: 12.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008446/0.1401, allocations: 315.9 kB / 442.6 MB, free: 12.61 MB / 382.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.00122/0.1413, allocations: 1.001 MB / 443.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000244/0.1416, allocations: 191.3 kB / 443.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1416, allocations: 0 / 443.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.1417, allocations: 159.3 kB / 444 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/0.1419, allocations: 3.906 kB / 444 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.143, allocations: 0.8026 MB / 444.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.1434, allocations: 0.6926 MB / 445.5 MB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.462e-05/0.1434, allocations: 4 kB / 445.5 MB, free: 9.637 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.182e-05/0.1434, allocations: 19.42 kB / 445.5 MB, free: 9.617 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1434, allocations: 4 kB / 445.5 MB, free: 9.613 MB / 382.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).