Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 91.95 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 187.2 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3285/0.3285, allocations: 38.05 MB / 309.7 MB, free: 8.895 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005233/0.0005234, allocations: 18.19 kB / 376.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1199, allocations: 56.34 MB / 432.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002273/0.1222, allocations: 1.754 MB / 434.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002757/0.125, allocations: 1.939 MB / 436.6 MB, free: 2.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.361e-05/0.1251, allocations: 4 kB / 436.6 MB, free: 2.902 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.1252, allocations: 15.92 kB / 436.6 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.28e-05/0.1253, allocations: 15.97 kB / 436.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001535/0.1268, allocations: 0.5929 MB / 437.2 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.287e-05/0.1269, allocations: 43.92 kB / 437.3 MB, free: 2.234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.555e-05/0.127, allocations: 8.172 kB / 437.3 MB, free: 2.227 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.414e-05/0.127, allocations: 27.84 kB / 437.3 MB, free: 2.199 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.304e-05/0.1271, allocations: 31.91 kB / 437.4 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.1271, allocations: 4 kB / 437.4 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001611/0.1287, allocations: 0.9866 MB / 438.3 MB, free: 1.176 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.531e-05/0.1288, allocations: 27.89 kB / 438.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.131e-05/0.1289, allocations: 41.64 kB / 438.4 MB, free: 1.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.1301, allocations: 0.9241 MB / 439.3 MB, free: 180 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1301, allocations: 0 / 439.3 MB, free: 180 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1301, allocations: 3.938 kB / 439.3 MB, free: 176 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.1301, allocations: 0 / 439.3 MB, free: 176 kB / 366.1 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.0007085/0.1308, allocations: 0.5434 MB / 439.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.1308, allocations: 15.97 kB / 439.9 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.1309, allocations: 38.56 kB / 439.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.1309, allocations: 11.81 kB / 440 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.1311, allocations: 190.8 kB / 440.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.163e-06/0.1311, allocations: 3.938 kB / 440.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.1311, allocations: 0 / 440.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001536/0.1313, allocations: 105.5 kB / 440.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.759e-06/0.1313, allocations: 0 / 440.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.1313, allocations: 4 kB / 440.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.1313, allocations: 0 / 440.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.1315, allocations: 59.97 kB / 440.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002062/0.1317, allocations: 193.5 kB / 440.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.1318, allocations: 102.5 kB / 440.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.1319, allocations: 0 / 440.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.1319, allocations: 34.5 kB / 440.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 7.62e-07/0.1319, allocations: 4 kB / 440.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005261/0.1324, allocations: 412.3 kB / 441 MB, free: 14.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.1325, allocations: 97.09 kB / 441.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.1326, allocations: 146.2 kB / 441.3 MB, free: 14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.1326, allocations: 25.7 kB / 441.3 MB, free: 13.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.344e-05/0.1327, allocations: 100.6 kB / 441.4 MB, free: 13.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.748e-05/0.1328, allocations: 74.91 kB / 441.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-06/0.1328, allocations: 0 / 441.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.133, allocations: 326.8 kB / 441.8 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.008e-05/0.133, allocations: 64 kB / 441.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.354e-05/0.1331, allocations: 67.91 kB / 441.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.1333, allocations: 123.1 kB / 442 MB, free: 13.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1333, allocations: 4 kB / 442 MB, free: 13.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002908/0.1336, allocations: 231 kB / 442.3 MB, free: 12.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.047e-05/0.1336, allocations: 61.66 kB / 442.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1336, allocations: 0 / 442.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.1337, allocations: 4 kB / 442.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.154e-06/0.1337, allocations: 3.953 kB / 442.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.1337, allocations: 4.047 kB / 442.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.386e-05/0.1337, allocations: 19.78 kB / 442.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.1338, allocations: 16 kB / 442.4 MB, free: 12.86 MB / 382.1 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.0001528/0.1339, allocations: 187.5 kB / 442.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.2e-05/0.134, allocations: 19.81 kB / 442.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.737e-05/0.134, allocations: 9.188 kB / 442.6 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.134, allocations: 0 / 442.6 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.134, allocations: 7.938 kB / 442.6 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.134, allocations: 0 / 442.6 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001396/0.1342, allocations: 205.5 kB / 442.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1342, allocations: 4 kB / 442.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-06/0.1342, allocations: 4 kB / 442.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1342, allocations: 3.938 kB / 442.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1342, allocations: 7.938 kB / 442.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1342, allocations: 0 / 442.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1342, allocations: 0 / 442.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006415/0.1349, allocations: 0.5139 MB / 443.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.278e-05/0.1349, allocations: 92.86 kB / 443.4 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/0.135, allocations: 8.031 kB / 443.4 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.819e-05/0.135, allocations: 4 kB / 443.4 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.257e-05/0.135, allocations: 15.97 kB / 443.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.1351, allocations: 8 kB / 443.5 MB, free: 11.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.31e-05/0.1352, allocations: 111.2 kB / 443.6 MB, free: 11.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1352, allocations: 0 / 443.6 MB, free: 11.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009159/0.1361, allocations: 335.9 kB / 443.9 MB, free: 11.23 MB / 382.1 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.001721/0.1378, allocations: 1.317 MB / 445.2 MB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006523/0.1385, allocations: 0.7023 MB / 445.9 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1385, allocations: 0 / 445.9 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005915/0.1391, allocations: 0.5697 MB / 446.5 MB, free: 8.582 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001639/0.1393, allocations: 16.06 kB / 446.5 MB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.1411, allocations: 1.462 MB / 448 MB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/0.1414, allocations: 0.728 MB / 448.7 MB, free: 6.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.067e-05/0.1414, allocations: 4 kB / 448.7 MB, free: 6.301 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.126e-05/0.1415, allocations: 31.42 kB / 448.7 MB, free: 6.27 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1415, allocations: 4 kB / 448.7 MB, free: 6.266 MB / 382.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. [CodegenCFunctions.tpl:7266:14-7266: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).