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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001569/0.001573, allocations: 189.3 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.037/2.037, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001146/0.001146, allocations: 102.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2703/0.2703, allocations: 38.05 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000656/0.0006561, allocations: 8 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1126, allocations: 56.34 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002919/0.1156, allocations: 1.772 MB / 480.9 MB, free: 148 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004124/0.1197, allocations: 1.924 MB / 482.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.182e-05/0.1199, allocations: 0 / 482.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.12, allocations: 19.92 kB / 482.8 MB, free: 14.19 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.46e-05/0.1201, allocations: 19.91 kB / 482.9 MB, free: 14.17 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002655/0.1228, allocations: 0.5968 MB / 483.5 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.1229, allocations: 39.92 kB / 483.5 MB, free: 13.53 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.106e-05/0.123, allocations: 4.188 kB / 483.5 MB, free: 13.53 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.79e-05/0.1231, allocations: 27.84 kB / 483.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.532e-05/0.1232, allocations: 43.89 kB / 483.6 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.1232, allocations: 3.938 kB / 483.6 MB, free: 13.45 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002435/0.1257, allocations: 0.9827 MB / 484.6 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.945e-05/0.1258, allocations: 39.84 kB / 484.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.111e-05/0.1259, allocations: 45.58 kB / 484.6 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001911/0.1278, allocations: 0.9436 MB / 485.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1278, allocations: 0 / 485.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1278, allocations: 0 / 485.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1279, allocations: 4 kB / 485.6 MB, free: 11.43 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.0009641/0.1288, allocations: 0.59 MB / 486.2 MB, free: 10.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.1289, allocations: 16.03 kB / 486.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.023e-05/0.129, allocations: 42.55 kB / 486.2 MB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.129, allocations: 19.72 kB / 486.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.1293, allocations: 198.8 kB / 486.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1293, allocations: 4 kB / 486.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.1293, allocations: 0 / 486.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.1296, allocations: 138.6 kB / 486.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1297, allocations: 0 / 486.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.1297, allocations: 3.953 kB / 486.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1297, allocations: 3.938 kB / 486.6 MB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.1299, allocations: 96.3 kB / 486.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002364/0.1302, allocations: 210.1 kB / 486.9 MB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000257/0.1304, allocations: 154.9 kB / 487.1 MB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.1304, allocations: 0 / 487.1 MB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.1305, allocations: 30.56 kB / 487.1 MB, free: 9.766 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 1.783e-06/0.1305, allocations: 4.031 kB / 487.1 MB, free: 9.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.001041/0.1315, allocations: 0.5832 MB / 487.7 MB, free: 9.148 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.255e-05/0.1317, allocations: 113.1 kB / 487.8 MB, free: 9.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002015/0.1319, allocations: 170.9 kB / 487.9 MB, free: 8.844 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.1319, allocations: 33.7 kB / 488 MB, free: 8.805 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.067e-05/0.132, allocations: 163.2 kB / 488.1 MB, free: 8.645 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.1322, allocations: 130 kB / 488.3 MB, free: 8.516 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-06/0.1322, allocations: 0 / 488.3 MB, free: 8.516 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1323, allocations: 322.8 kB / 488.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.1326, allocations: 103.9 kB / 488.7 MB, free: 8.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.1327, allocations: 99.95 kB / 488.8 MB, free: 7.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.1331, allocations: 186.9 kB / 489 MB, free: 7.805 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1331, allocations: 0 / 489 MB, free: 7.805 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006054/0.1337, allocations: 338.9 kB / 489.3 MB, free: 7.461 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.1338, allocations: 81.64 kB / 489.4 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1339, allocations: 0 / 489.4 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1339, allocations: 4 kB / 489.4 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.787e-06/0.1339, allocations: 0 / 489.4 MB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1339, allocations: 3.938 kB / 489.4 MB, free: 7.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.134, allocations: 31.67 kB / 489.4 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/0.1341, allocations: 12.06 kB / 489.4 MB, free: 7.324 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.0003026/0.1344, allocations: 231.4 kB / 489.7 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.415e-05/0.1345, allocations: 23.72 kB / 489.7 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.45e-05/0.1345, allocations: 10.66 kB / 489.7 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1345, allocations: 0 / 489.7 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1345, allocations: 0 / 489.7 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1346, allocations: 4 kB / 489.7 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.1348, allocations: 241.3 kB / 489.9 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1348, allocations: 0 / 489.9 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-06/0.1348, allocations: 4 kB / 489.9 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1348, allocations: 0 / 489.9 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/0.1349, allocations: 8 kB / 489.9 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1349, allocations: 3.984 kB / 489.9 MB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.748e-06/0.1349, allocations: 4 kB / 489.9 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.1365, allocations: 0.9159 MB / 490.9 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.7e-05/0.1366, allocations: 96.77 kB / 491 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.105e-05/0.1367, allocations: 8 kB / 491 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.78e-05/0.1368, allocations: 8.031 kB / 491 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.936e-05/0.1369, allocations: 8 kB / 491 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.561e-05/0.1369, allocations: 11.98 kB / 491 MB, free: 5.652 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001361/0.1371, allocations: 119.2 kB / 491.1 MB, free: 5.535 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1371, allocations: 0 / 491.1 MB, free: 5.535 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001243/0.1383, allocations: 355.9 kB / 491.5 MB, free: 5.188 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.003515/0.1418, allocations: 1.722 MB / 493.2 MB, free: 3.434 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002301/0.1442, allocations: 1.593 MB / 494.8 MB, free: 1.828 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1442, allocations: 0 / 494.8 MB, free: 1.828 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.146, allocations: 1.374 MB / 496.1 MB, free: 452 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.1463, allocations: 11.94 kB / 496.2 MB, free: 440 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004318/0.1506, allocations: 2.096 MB / 498.2 MB, free: 14.28 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.1511, allocations: 0.7598 MB / 499 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.305e-05/0.1512, allocations: 47.41 kB / 499.1 MB, free: 13.45 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/0.1512, allocations: 4 kB / 499.1 MB, free: 13.44 MB / 346.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).