Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001579/0.001579, allocations: 188.4 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.019/2.019, 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.001115/0.001115, allocations: 86.86 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.254/0.254, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004964/0.0004966, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1123, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003001/0.1153, allocations: 1.756 MB / 480.8 MB, free: 268 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004225/0.1196, allocations: 1.936 MB / 482.7 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.631e-05/0.1197, allocations: 0 / 482.7 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.1199, allocations: 11.92 kB / 482.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 5.808e-05/0.12, allocations: 11.97 kB / 482.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002659/0.1227, allocations: 0.5929 MB / 483.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.1228, allocations: 43.92 kB / 483.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.289e-05/0.1229, allocations: 4.188 kB / 483.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.123, allocations: 23.92 kB / 483.4 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.592e-05/0.1231, allocations: 31.83 kB / 483.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.1231, allocations: 4 kB / 483.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002433/0.1255, allocations: 0.9827 MB / 484.4 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.878e-05/0.1256, allocations: 15.92 kB / 484.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.417e-05/0.1257, allocations: 29.7 kB / 484.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.1275, allocations: 0.9164 MB / 485.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1275, allocations: 0 / 485.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1275, allocations: 0 / 485.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1275, allocations: 0 / 485.4 MB, free: 11.64 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008293/0.1284, allocations: 0.5123 MB / 485.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.22e-05/0.1284, allocations: 11.97 kB / 485.9 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.104e-05/0.1285, allocations: 7.906 kB / 485.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.1288, allocations: 186.8 kB / 486.1 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.1288, allocations: 4 kB / 486.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.1288, allocations: 0 / 486.1 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.129, allocations: 69.67 kB / 486.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.129, allocations: 0 / 486.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.1291, allocations: 3.984 kB / 486.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/0.1291, allocations: 3.953 kB / 486.2 MB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.1292, allocations: 43.91 kB / 486.2 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002048/0.1294, allocations: 169.6 kB / 486.4 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.1296, allocations: 54.56 kB / 486.4 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.1296, allocations: 4 kB / 486.5 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.1296, allocations: 38.59 kB / 486.5 MB, free: 10.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.1296, allocations: 0 / 486.5 MB, free: 10.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005273/0.1302, allocations: 280.3 kB / 486.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.629e-05/0.1303, allocations: 89.09 kB / 486.9 MB, free: 9.961 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.1304, allocations: 137.4 kB / 487 MB, free: 9.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.1305, allocations: 25.7 kB / 487 MB, free: 9.789 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.04e-05/0.1306, allocations: 158.6 kB / 487.2 MB, free: 9.633 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.217e-05/0.1306, allocations: 43.42 kB / 487.2 MB, free: 9.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-06/0.1307, allocations: 0 / 487.2 MB, free: 9.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1308, allocations: 314.8 kB / 487.5 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.958e-05/0.1309, allocations: 31.98 kB / 487.5 MB, free: 9.242 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.543e-05/0.131, allocations: 35.97 kB / 487.6 MB, free: 9.207 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.1311, allocations: 73.69 kB / 487.7 MB, free: 9.129 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1312, allocations: 3.984 kB / 487.7 MB, free: 9.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002821/0.1315, allocations: 143.8 kB / 487.8 MB, free: 8.973 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.641e-05/0.1315, allocations: 45.69 kB / 487.8 MB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1316, allocations: 11.94 kB / 487.9 MB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.1316, allocations: 0 / 487.9 MB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.402e-06/0.1316, allocations: 7.984 kB / 487.9 MB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.1316, allocations: 0 / 487.9 MB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.11e-05/0.1317, allocations: 7.859 kB / 487.9 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.1317, allocations: 4 kB / 487.9 MB, free: 8.891 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.0001881/0.1319, allocations: 167.5 kB / 488 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.571e-05/0.132, allocations: 7.906 kB / 488 MB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.91e-05/0.132, allocations: 8.719 kB / 488.1 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.132, allocations: 4 kB / 488.1 MB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.132, allocations: 3.984 kB / 488.1 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.132, allocations: 0 / 488.1 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.1322, allocations: 181.5 kB / 488.2 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1323, allocations: 0 / 488.2 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.011e-06/0.1323, allocations: 0 / 488.2 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.1323, allocations: 4 kB / 488.2 MB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.1323, allocations: 0 / 488.2 MB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1323, allocations: 4 kB / 488.2 MB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1323, allocations: 0 / 488.2 MB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005795/0.1329, allocations: 294.5 kB / 488.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-05/0.133, allocations: 88.95 kB / 488.6 MB, free: 8.039 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.133, allocations: 3.984 kB / 488.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.932e-05/0.1331, allocations: 7.938 kB / 488.6 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-05/0.1331, allocations: 3.938 kB / 488.6 MB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.1332, allocations: 8 kB / 488.6 MB, free: 8.016 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.668e-05/0.1333, allocations: 99.27 kB / 488.7 MB, free: 7.918 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1333, allocations: 0 / 488.7 MB, free: 7.918 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00123/0.1345, allocations: 327.9 kB / 489.1 MB, free: 7.598 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.001357/0.1359, allocations: 354.4 kB / 489.4 MB, free: 7.242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005961/0.1365, allocations: 295.2 kB / 489.7 MB, free: 6.941 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1365, allocations: 0 / 489.7 MB, free: 6.941 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003284/0.1369, allocations: 223.3 kB / 489.9 MB, free: 6.711 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.1371, allocations: 16.06 kB / 489.9 MB, free: 6.695 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007309/0.1379, allocations: 364.5 kB / 490.3 MB, free: 6.309 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.1383, allocations: 0.7121 MB / 491 MB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.781e-05/0.1383, allocations: 7.438 kB / 491 MB, free: 5.562 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.1383, allocations: 0 / 491 MB, free: 5.562 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).