Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001556/0.001561, allocations: 188.8 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.056/2.056, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001128/0.001128, allocations: 90.86 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2724/0.2724, allocations: 38.05 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007086/0.0007087, allocations: 12 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1163, allocations: 56.34 MB / 479 MB, free: 2.023 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003061/0.1194, allocations: 1.76 MB / 480.8 MB, free: 248 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004199/0.1236, allocations: 1.936 MB / 482.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.997e-05/0.1238, allocations: 0 / 482.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001952/0.124, allocations: 11.92 kB / 482.7 MB, free: 14.29 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.949e-05/0.1241, allocations: 23.89 kB / 482.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002556/0.1266, allocations: 0.5813 MB / 483.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.1268, allocations: 43.92 kB / 483.4 MB, free: 13.63 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.139e-05/0.1268, allocations: 192 / 483.4 MB, free: 13.63 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.1269, allocations: 39.84 kB / 483.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.183e-05/0.1271, allocations: 35.89 kB / 483.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.1271, allocations: 4 kB / 483.5 MB, free: 13.55 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.1297, allocations: 0.9866 MB / 484.5 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.638e-05/0.1298, allocations: 39.86 kB / 484.5 MB, free: 12.53 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.742e-05/0.1299, allocations: 41.58 kB / 484.5 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002083/0.132, allocations: 0.9475 MB / 485.5 MB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1321, allocations: 0 / 485.5 MB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1321, allocations: 4 kB / 485.5 MB, free: 11.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.1321, allocations: 0 / 485.5 MB, free: 11.53 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00096/0.133, allocations: 0.5977 MB / 486.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.1331, allocations: 8.031 kB / 486.1 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.474e-05/0.1332, allocations: 15.81 kB / 486.1 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.1335, allocations: 198.7 kB / 486.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.1335, allocations: 4 kB / 486.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.1335, allocations: 0 / 486.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.1338, allocations: 134.6 kB / 486.4 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1338, allocations: 4 kB / 486.4 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.1339, allocations: 0 / 486.4 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.1339, allocations: 3.953 kB / 486.4 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.1341, allocations: 104.2 kB / 486.5 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002469/0.1344, allocations: 206.1 kB / 486.7 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.1346, allocations: 162.8 kB / 486.9 MB, free: 9.949 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.1347, allocations: 0 / 486.9 MB, free: 9.949 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.1347, allocations: 38.56 kB / 486.9 MB, free: 9.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 1.523e-06/0.1347, allocations: 0 / 486.9 MB, free: 9.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.001073/0.1358, allocations: 0.5793 MB / 487.5 MB, free: 9.293 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.1359, allocations: 109.1 kB / 487.6 MB, free: 9.168 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.1362, allocations: 174.8 kB / 487.8 MB, free: 8.988 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.1362, allocations: 29.7 kB / 487.8 MB, free: 8.953 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.189e-05/0.1363, allocations: 163.2 kB / 488 MB, free: 8.793 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.1365, allocations: 137.9 kB / 488.1 MB, free: 8.656 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-06/0.1365, allocations: 0 / 488.1 MB, free: 8.656 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1367, allocations: 330.9 kB / 488.4 MB, free: 8.324 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.1369, allocations: 95.91 kB / 488.5 MB, free: 8.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.1371, allocations: 99.95 kB / 488.6 MB, free: 8.133 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.1374, allocations: 186.9 kB / 488.8 MB, free: 7.945 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1374, allocations: 0 / 488.8 MB, free: 7.945 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006366/0.1381, allocations: 327.1 kB / 489.1 MB, free: 7.613 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001556/0.1383, allocations: 85.62 kB / 489.2 MB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1383, allocations: 3.938 kB / 489.2 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1383, allocations: 0 / 489.2 MB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.753e-06/0.1383, allocations: 8.062 kB / 489.2 MB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.1383, allocations: 0 / 489.2 MB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.1385, allocations: 27.64 kB / 489.3 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.567e-05/0.1385, allocations: 8 kB / 489.3 MB, free: 7.477 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.0003251/0.1389, allocations: 231.4 kB / 489.5 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.599e-05/0.1389, allocations: 23.72 kB / 489.5 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.885e-05/0.139, allocations: 18.64 kB / 489.5 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.139, allocations: 0 / 489.5 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.139, allocations: 0 / 489.5 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.139, allocations: 4 kB / 489.5 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.1393, allocations: 237.3 kB / 489.8 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1393, allocations: 4 kB / 489.8 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.1393, allocations: 0 / 489.8 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1393, allocations: 0 / 489.8 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.1394, allocations: 8 kB / 489.8 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1394, allocations: 0 / 489.8 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.1394, allocations: 0 / 489.8 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.1411, allocations: 0.9237 MB / 490.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.122e-05/0.1412, allocations: 96.77 kB / 490.8 MB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.642e-05/0.1413, allocations: 8 kB / 490.8 MB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.1414, allocations: 4 kB / 490.8 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.1414, allocations: 11.94 kB / 490.8 MB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/0.1415, allocations: 8 kB / 490.8 MB, free: 5.805 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001513/0.1416, allocations: 127.2 kB / 491 MB, free: 5.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1417, allocations: 0 / 491 MB, free: 5.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001314/0.143, allocations: 355.9 kB / 491.3 MB, free: 5.332 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.001403/0.1444, allocations: 358.7 kB / 491.7 MB, free: 4.977 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002383/0.1468, allocations: 1.597 MB / 493.3 MB, free: 3.367 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1469, allocations: 0 / 493.3 MB, free: 3.367 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001873/0.1487, allocations: 1.374 MB / 494.6 MB, free: 1.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.1491, allocations: 15.95 kB / 494.6 MB, free: 1.965 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.1506, allocations: 0.7639 MB / 495.4 MB, free: 1.172 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.151, allocations: 0.7598 MB / 496.2 MB, free: 396 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.004e-05/0.1511, allocations: 7.438 kB / 496.2 MB, free: 388 kB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1511, allocations: 0 / 496.2 MB, free: 388 kB / 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).