Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001005/0.001005, allocations: 98.27 kB / 16.3 MB, free: 5.57 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.001071/0.001071, allocations: 180.5 kB / 17.19 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 223.2 MB / 241.1 MB, free: 372 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1628/0.1628, allocations: 38.08 MB / 330.3 MB, free: 8.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.0002872, allocations: 8 kB / 400.1 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1035, allocations: 59.17 MB / 459.2 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002225/0.1058, allocations: 1.76 MB / 461 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.1083, allocations: 1.897 MB / 462.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.172e-05/0.1084, allocations: 0 / 462.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001759/0.1086, allocations: 23.95 kB / 462.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.33e-05/0.1087, allocations: 15.91 kB / 462.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.1101, allocations: 0.5891 MB / 463.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.769e-05/0.1102, allocations: 39.88 kB / 463.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.1103, allocations: 8.172 kB / 463.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.51e-05/0.1103, allocations: 23.92 kB / 463.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.785e-05/0.1104, allocations: 27.84 kB / 463.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.1104, allocations: 4 kB / 463.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.1117, allocations: 0.9788 MB / 464.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.411e-05/0.1118, allocations: 11.94 kB / 464.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.056e-05/0.1118, allocations: 29.7 kB / 464.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009479/0.1128, allocations: 0.9124 MB / 465.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1128, allocations: 0 / 465.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1128, allocations: 0 / 465.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1128, allocations: 0 / 465.5 MB, free: 0.9727 MB / 334.1 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.0005549/0.1134, allocations: 496.7 kB / 466 MB, free: 444 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1134, allocations: 20.02 kB / 466 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.003e-05/0.1135, allocations: 34.56 kB / 466.1 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.608e-05/0.1135, allocations: 11.84 kB / 466.1 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.1136, allocations: 179 kB / 466.3 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.254e-06/0.1136, allocations: 0 / 466.3 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.1137, allocations: 0 / 466.3 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.1138, allocations: 57.67 kB / 466.3 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.1138, allocations: 0 / 466.3 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.1138, allocations: 0 / 466.3 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.1138, allocations: 0 / 466.3 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.929e-05/0.1139, allocations: 31.92 kB / 466.4 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.114, allocations: 165.6 kB / 466.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.629e-05/0.1141, allocations: 46.56 kB / 466.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.521e-06/0.1141, allocations: 0 / 466.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1141, allocations: 38.55 kB / 466.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.01e-07/0.1142, allocations: 0 / 466.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002819/0.1144, allocations: 232.6 kB / 466.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.1145, allocations: 93.12 kB / 466.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.03e-05/0.1146, allocations: 117.8 kB / 467 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.1146, allocations: 25.7 kB / 467.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/0.1147, allocations: 96.12 kB / 467.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.373e-05/0.1147, allocations: 23.56 kB / 467.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-06/0.1147, allocations: 0 / 467.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.1148, allocations: 322.8 kB / 467.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.405e-05/0.1149, allocations: 23.98 kB / 467.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.773e-05/0.1149, allocations: 27.97 kB / 467.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.059e-05/0.115, allocations: 61.69 kB / 467.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.115, allocations: 0 / 467.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001393/0.1151, allocations: 135.2 kB / 467.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.722e-05/0.1152, allocations: 44.03 kB / 467.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.1152, allocations: 0 / 467.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.1152, allocations: 0 / 467.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1152, allocations: 0 / 467.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.1152, allocations: 0 / 467.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.792e-05/0.1153, allocations: 7.938 kB / 467.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.1153, allocations: 12.06 kB / 467.8 MB, free: 14.44 MB / 350.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.0001057/0.1154, allocations: 151.5 kB / 467.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.483e-05/0.1154, allocations: 11.86 kB / 468 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.293e-05/0.1155, allocations: 8.375 kB / 468 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.1155, allocations: 4 kB / 468 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1155, allocations: 0 / 468 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.1155, allocations: 0 / 468 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.1156, allocations: 177.8 kB / 468.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1156, allocations: 0 / 468.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1156, allocations: 7.938 kB / 468.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/0.1156, allocations: 3.953 kB / 468.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1156, allocations: 4 kB / 468.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.1156, allocations: 0 / 468.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1157, allocations: 0 / 468.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002286/0.1159, allocations: 218.6 kB / 468.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.425e-05/0.1159, allocations: 81.02 kB / 468.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.116, allocations: 7.953 kB / 468.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.365e-05/0.116, allocations: 4.031 kB / 468.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.116, allocations: 8 kB / 468.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.116, allocations: 7.984 kB / 468.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.828e-05/0.1161, allocations: 94.39 kB / 468.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1161, allocations: 0 / 468.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006948/0.1168, allocations: 319.8 kB / 468.9 MB, free: 13.25 MB / 350.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.001208/0.118, allocations: 0.9987 MB / 469.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002299/0.1182, allocations: 199.3 kB / 470.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1183, allocations: 0 / 470.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.1184, allocations: 155.3 kB / 470.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.1185, allocations: 3.953 kB / 470.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.1196, allocations: 0.7969 MB / 471 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.1199, allocations: 0.7043 MB / 471.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.076e-05/0.1199, allocations: 0 / 471.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.342e-05/0.1199, allocations: 19.42 kB / 471.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.12, allocations: 0 / 471.8 MB, free: 10.25 MB / 350.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).