Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001555/0.001561, allocations: 185.2 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.081/2.081, allocations: 205.4 MB / 221.9 MB, free: 13.79 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001161, allocations: 90.86 kB / 270.2 MB, free: 13.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2712/0.2712, allocations: 38.07 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004696/0.0004697, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1164, allocations: 56.33 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003147/0.1196, allocations: 1.756 MB / 480.8 MB, free: 272 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004302/0.1239, allocations: 1.936 MB / 482.7 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.217e-05/0.1241, allocations: 4 kB / 482.7 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.1243, allocations: 15.91 kB / 482.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.513e-05/0.1243, allocations: 11.98 kB / 482.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002563/0.1269, allocations: 0.5968 MB / 483.4 MB, free: 13.69 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.1271, allocations: 39.92 kB / 483.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.537e-05/0.1271, allocations: 4.188 kB / 483.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.933e-05/0.1272, allocations: 31.84 kB / 483.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.953e-05/0.1273, allocations: 35.91 kB / 483.5 MB, free: 13.58 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.1274, allocations: 4 kB / 483.5 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002396/0.1298, allocations: 0.9827 MB / 484.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.989e-05/0.1299, allocations: 27.92 kB / 484.5 MB, free: 12.56 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.732e-05/0.1299, allocations: 41.58 kB / 484.5 MB, free: 12.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.1318, allocations: 0.9242 MB / 485.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1318, allocations: 0 / 485.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1318, allocations: 4 kB / 485.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.1318, allocations: 0 / 485.4 MB, free: 11.59 MB / 330.7 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.0008763/0.1327, allocations: 0.5434 MB / 486 MB, free: 10.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.1328, allocations: 15.97 kB / 486 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.1329, allocations: 11.81 kB / 486 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.1331, allocations: 194.8 kB / 486.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.1331, allocations: 0 / 486.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.1332, allocations: 0 / 486.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.1334, allocations: 105.5 kB / 486.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1334, allocations: 4 kB / 486.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.1335, allocations: 0 / 486.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1335, allocations: 3.953 kB / 486.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.1336, allocations: 59.97 kB / 486.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002447/0.1339, allocations: 193.3 kB / 486.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.1341, allocations: 106.5 kB / 486.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.1341, allocations: 0 / 486.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.1342, allocations: 42.5 kB / 486.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1342, allocations: 0 / 486.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.000786/0.135, allocations: 396.2 kB / 487.1 MB, free: 9.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.278e-05/0.1351, allocations: 101.1 kB / 487.2 MB, free: 9.617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/0.1353, allocations: 155.1 kB / 487.3 MB, free: 9.457 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.1353, allocations: 25.7 kB / 487.4 MB, free: 9.426 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.1355, allocations: 167 kB / 487.5 MB, free: 9.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.1356, allocations: 74.81 kB / 487.6 MB, free: 9.188 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-06/0.1356, allocations: 0 / 487.6 MB, free: 9.188 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.1358, allocations: 322.9 kB / 487.9 MB, free: 8.863 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.1359, allocations: 59.97 kB / 488 MB, free: 8.805 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.1361, allocations: 68.72 kB / 488 MB, free: 8.738 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002111/0.1363, allocations: 121.7 kB / 488.2 MB, free: 8.613 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1363, allocations: 0 / 488.2 MB, free: 8.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004267/0.1368, allocations: 231.1 kB / 488.4 MB, free: 8.375 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.437e-05/0.1369, allocations: 61.66 kB / 488.5 MB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1369, allocations: 4 kB / 488.5 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1369, allocations: 0 / 488.5 MB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.1369, allocations: 4.062 kB / 488.5 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.1369, allocations: 0 / 488.5 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.866e-05/0.137, allocations: 15.8 kB / 488.5 MB, free: 8.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.1371, allocations: 15.92 kB / 488.5 MB, free: 8.27 MB / 330.7 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.0002248/0.1373, allocations: 187.5 kB / 488.7 MB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/0.1374, allocations: 19.91 kB / 488.7 MB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.982e-05/0.1374, allocations: 9.188 kB / 488.7 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1374, allocations: 0 / 488.7 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1375, allocations: 0 / 488.7 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1375, allocations: 4 kB / 488.7 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.1377, allocations: 209.4 kB / 488.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1377, allocations: 4 kB / 488.9 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.1377, allocations: 0 / 488.9 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.1377, allocations: 0 / 488.9 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.1378, allocations: 7.938 kB / 488.9 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1378, allocations: 0 / 488.9 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1378, allocations: 0 / 488.9 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009333/0.1387, allocations: 0.5179 MB / 489.4 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.1388, allocations: 96.89 kB / 489.5 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.939e-05/0.1389, allocations: 4 kB / 489.5 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.251e-05/0.1389, allocations: 7.984 kB / 489.5 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.139, allocations: 0 / 489.5 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.139, allocations: 15.92 kB / 489.6 MB, free: 7.094 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001184/0.1391, allocations: 115.1 kB / 489.7 MB, free: 6.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1392, allocations: 0 / 489.7 MB, free: 6.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001253/0.1404, allocations: 331.9 kB / 490 MB, free: 6.656 MB / 330.7 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.001296/0.1417, allocations: 370.7 kB / 490.4 MB, free: 6.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.1429, allocations: 0.706 MB / 491.1 MB, free: 5.566 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1429, allocations: 0 / 491.1 MB, free: 5.566 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008119/0.1438, allocations: 0.5735 MB / 491.6 MB, free: 4.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.144, allocations: 15.89 kB / 491.7 MB, free: 4.965 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.1451, allocations: 0.5368 MB / 492.2 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.1455, allocations: 0.728 MB / 492.9 MB, free: 3.645 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.004e-05/0.1455, allocations: 7.438 kB / 492.9 MB, free: 3.637 MB / 330.7 MB Notification: Performance of SimCode: time 8.11e-07/0.1455, allocations: 3.938 kB / 492.9 MB, free: 3.633 MB / 330.7 MB [CodegenCppCommonOld.tpl:1224:14-1224: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).