Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001061/0.001061, allocations: 93.34 kB / 16.3 MB, free: 5.629 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.001162/0.001162, allocations: 186.3 kB / 17.2 MB, free: 5.562 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.547/1.547, allocations: 205.4 MB / 223.4 MB, free: 5.238 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3021/0.3021, allocations: 38.05 MB / 309.7 MB, free: 9.074 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.0005108/0.0005108, allocations: 12 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1155, allocations: 56.34 MB / 432.9 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002657/0.1182, allocations: 1.75 MB / 434.7 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003969/0.1222, allocations: 1.947 MB / 436.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.901e-05/0.1223, allocations: 0 / 436.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.1225, allocations: 11.92 kB / 436.6 MB, free: 2.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.427e-05/0.1225, allocations: 23.91 kB / 436.7 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001696/0.1242, allocations: 0.5852 MB / 437.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.632e-05/0.1243, allocations: 43.92 kB / 437.3 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.828e-05/0.1244, allocations: 4.172 kB / 437.3 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.916e-05/0.1244, allocations: 31.84 kB / 437.3 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.807e-05/0.1245, allocations: 39.89 kB / 437.4 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.1245, allocations: 4 kB / 437.4 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001483/0.126, allocations: 0.9827 MB / 438.3 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.803e-05/0.1261, allocations: 47.84 kB / 438.4 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.127e-05/0.1261, allocations: 41.58 kB / 438.4 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009973/0.1272, allocations: 0.9475 MB / 439.4 MB, free: 92 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1272, allocations: 0 / 439.4 MB, free: 92 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1272, allocations: 3.938 kB / 439.4 MB, free: 88 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1272, allocations: 0 / 439.4 MB, free: 88 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006414/0.1278, allocations: 0.5823 MB / 440 MB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.1279, allocations: 12.02 kB / 440 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.55e-05/0.1279, allocations: 50.55 kB / 440 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.02e-05/0.128, allocations: 19.66 kB / 440 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.1282, allocations: 202.8 kB / 440.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.103e-06/0.1282, allocations: 0 / 440.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.1282, allocations: 0 / 440.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/0.1284, allocations: 138.6 kB / 440.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.1285, allocations: 0 / 440.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.1285, allocations: 0 / 440.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1285, allocations: 3.984 kB / 440.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.1286, allocations: 100.2 kB / 440.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001778/0.1288, allocations: 214 kB / 440.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.129, allocations: 158.9 kB / 440.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-06/0.129, allocations: 0 / 440.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.129, allocations: 30.56 kB / 440.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 8.72e-07/0.129, allocations: 0 / 440.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006512/0.1297, allocations: 0.5832 MB / 441.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.72e-05/0.1298, allocations: 113.1 kB / 441.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.1299, allocations: 170.4 kB / 441.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.1299, allocations: 25.7 kB / 441.8 MB, free: 13.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.746e-05/0.13, allocations: 100.8 kB / 441.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.1301, allocations: 130.1 kB / 442 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-06/0.1301, allocations: 0 / 442 MB, free: 13.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1302, allocations: 334.8 kB / 442.3 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.1303, allocations: 99.89 kB / 442.4 MB, free: 12.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.1305, allocations: 99.95 kB / 442.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.1306, allocations: 187 kB / 442.7 MB, free: 12.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1306, allocations: 0 / 442.7 MB, free: 12.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003735/0.131, allocations: 346.8 kB / 443 MB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.782e-05/0.1311, allocations: 85.62 kB / 443.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1311, allocations: 0 / 443.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1311, allocations: 7.938 kB / 443.1 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.1312, allocations: 4 kB / 443.1 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1312, allocations: 0 / 443.1 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.287e-05/0.1312, allocations: 19.75 kB / 443.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.1313, allocations: 8 kB / 443.2 MB, free: 12.04 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.000225/0.1315, allocations: 239.4 kB / 443.4 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.1316, allocations: 27.72 kB / 443.4 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.813e-05/0.1316, allocations: 10.66 kB / 443.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1316, allocations: 3.938 kB / 443.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.1316, allocations: 3.953 kB / 443.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1316, allocations: 3.984 kB / 443.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.1318, allocations: 233.4 kB / 443.7 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1318, allocations: 8 kB / 443.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-06/0.1318, allocations: 3.984 kB / 443.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1318, allocations: 4 kB / 443.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.1319, allocations: 8 kB / 443.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1319, allocations: 0 / 443.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1319, allocations: 3.984 kB / 443.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009478/0.1328, allocations: 0.912 MB / 444.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.13e-05/0.1329, allocations: 96.77 kB / 444.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.624e-05/0.1329, allocations: 15.98 kB / 444.7 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.034e-05/0.133, allocations: 4 kB / 444.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.272e-05/0.133, allocations: 8.031 kB / 444.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.1331, allocations: 8 kB / 444.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.1332, allocations: 131.2 kB / 444.9 MB, free: 10.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1332, allocations: 0 / 444.9 MB, free: 10.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000905/0.1341, allocations: 351.9 kB / 445.2 MB, free: 9.875 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.002051/0.1361, allocations: 1.703 MB / 446.9 MB, free: 8.133 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001404/0.1376, allocations: 1.6 MB / 448.5 MB, free: 6.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1376, allocations: 0 / 448.5 MB, free: 6.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.1386, allocations: 1.37 MB / 449.9 MB, free: 5.137 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.1388, allocations: 12 kB / 449.9 MB, free: 5.125 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.1415, allocations: 2.05 MB / 451.9 MB, free: 3.027 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.1418, allocations: 0.7598 MB / 452.7 MB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.668e-05/0.1419, allocations: 0 / 452.7 MB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.488e-05/0.1419, allocations: 43.42 kB / 452.7 MB, free: 2.199 MB / 382.1 MB Notification: Performance of SimCode: time 2.004e-06/0.1419, allocations: 4 kB / 452.7 MB, free: 2.195 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).