Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001576/0.001575, allocations: 183.5 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.005/2.005, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.001136/0.001135, allocations: 98.84 kB / 270.2 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2749/0.2749, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006526/0.0006527, allocations: 12 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1114, allocations: 56.33 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003012/0.1145, allocations: 1.76 MB / 480.8 MB, free: 268 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004171/0.1187, allocations: 1.936 MB / 482.7 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.903e-05/0.1188, allocations: 0 / 482.7 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.119, allocations: 15.91 kB / 482.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.534e-05/0.1191, allocations: 23.89 kB / 482.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002345/0.1214, allocations: 0.5852 MB / 483.4 MB, free: 13.69 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 9.759e-05/0.1215, allocations: 43.92 kB / 483.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.654e-05/0.1216, allocations: 192 / 483.4 MB, free: 13.64 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.376e-05/0.1217, allocations: 31.84 kB / 483.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.448e-05/0.1218, allocations: 19.92 kB / 483.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.1218, allocations: 0 / 483.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002199/0.124, allocations: 0.9904 MB / 484.4 MB, free: 12.6 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.789e-05/0.1241, allocations: 7.938 kB / 484.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.298e-05/0.1241, allocations: 33.7 kB / 484.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001594/0.1257, allocations: 0.9047 MB / 485.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.1257, allocations: 0 / 485.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1258, allocations: 0 / 485.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.1258, allocations: 0 / 485.4 MB, free: 11.65 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007268/0.1265, allocations: 0.4929 MB / 485.9 MB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.1266, allocations: 8.031 kB / 485.9 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.1266, allocations: 15.83 kB / 485.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.1269, allocations: 190.8 kB / 486.1 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.1269, allocations: 0 / 486.1 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.1269, allocations: 0 / 486.1 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/0.1271, allocations: 53.69 kB / 486.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1271, allocations: 3.984 kB / 486.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.1271, allocations: 0 / 486.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.1271, allocations: 3.953 kB / 486.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.89e-05/0.1272, allocations: 16 kB / 486.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001843/0.1274, allocations: 165.7 kB / 486.3 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.1275, allocations: 54.5 kB / 486.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.1276, allocations: 0 / 486.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.1276, allocations: 34.5 kB / 486.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.1276, allocations: 0 / 486.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004531/0.1281, allocations: 236.5 kB / 486.6 MB, free: 10.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.1282, allocations: 85.11 kB / 486.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.1283, allocations: 133.2 kB / 486.9 MB, free: 9.953 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1283, allocations: 29.73 kB / 486.9 MB, free: 9.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.368e-05/0.1284, allocations: 154.6 kB / 487 MB, free: 9.766 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.866e-05/0.1285, allocations: 27.55 kB / 487.1 MB, free: 9.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-06/0.1285, allocations: 4 kB / 487.1 MB, free: 9.734 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1287, allocations: 314.8 kB / 487.4 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.949e-05/0.1288, allocations: 19.98 kB / 487.4 MB, free: 9.398 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.242e-05/0.1288, allocations: 23.98 kB / 487.4 MB, free: 9.375 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.716e-05/0.1289, allocations: 57.69 kB / 487.5 MB, free: 9.312 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.129, allocations: 32 / 487.5 MB, free: 9.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002447/0.1292, allocations: 127.4 kB / 487.6 MB, free: 9.176 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.341e-05/0.1293, allocations: 41.69 kB / 487.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1293, allocations: 0 / 487.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.1293, allocations: 0 / 487.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-06/0.1293, allocations: 0 / 487.6 MB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1293, allocations: 4 kB / 487.6 MB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.957e-05/0.1294, allocations: 7.953 kB / 487.6 MB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/0.1295, allocations: 4 kB / 487.7 MB, free: 9.113 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.0001592/0.1296, allocations: 163.4 kB / 487.8 MB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.269e-05/0.1297, allocations: 11.94 kB / 487.8 MB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.681e-05/0.1297, allocations: 8.375 kB / 487.8 MB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1297, allocations: 3.984 kB / 487.8 MB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1297, allocations: 0 / 487.8 MB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1297, allocations: 0 / 487.8 MB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.1299, allocations: 181.5 kB / 488 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1299, allocations: 0 / 488 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-07/0.1299, allocations: 0 / 488 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1299, allocations: 0 / 488 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.13, allocations: 4 kB / 488 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.13, allocations: 4 kB / 488 MB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.13, allocations: 0 / 488 MB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004053/0.1304, allocations: 222.6 kB / 488.2 MB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.604e-05/0.1305, allocations: 85.02 kB / 488.3 MB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.1305, allocations: 0 / 488.3 MB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.574e-05/0.1305, allocations: 0 / 488.3 MB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.69e-05/0.1306, allocations: 4 kB / 488.3 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.1306, allocations: 7.984 kB / 488.3 MB, free: 8.328 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.062e-05/0.1307, allocations: 103.2 kB / 488.4 MB, free: 8.227 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1307, allocations: 7.938 kB / 488.4 MB, free: 8.219 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001159/0.1319, allocations: 307.9 kB / 488.7 MB, free: 7.918 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.001291/0.1332, allocations: 362.4 kB / 489.1 MB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003698/0.1336, allocations: 195.3 kB / 489.3 MB, free: 7.352 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1336, allocations: 4.062 kB / 489.3 MB, free: 7.348 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002116/0.1338, allocations: 147.4 kB / 489.4 MB, free: 7.191 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.1341, allocations: 7.953 kB / 489.4 MB, free: 7.184 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005636/0.1346, allocations: 304.1 kB / 489.7 MB, free: 6.855 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.135, allocations: 0.7004 MB / 490.4 MB, free: 6.129 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.447e-05/0.135, allocations: 7.438 kB / 490.4 MB, free: 6.121 MB / 330.7 MB Notification: Performance of SimCode: time 6.21e-07/0.135, allocations: 0 / 490.4 MB, free: 6.121 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).