Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.001123/0.001123, allocations: 104.3 kB / 16.62 MB, free: 6.812 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.001299/0.001299, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.297/1.297, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.168/0.168, allocations: 38.02 MB / 329.4 MB, free: 8.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 64.73 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1115, allocations: 58.07 MB / 456.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003742/0.1153, allocations: 2.128 MB / 458.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003001/0.1183, allocations: 2.059 MB / 460.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.749e-05/0.1184, allocations: 0 / 460.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.1186, allocations: 19.92 kB / 460.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.099e-05/0.1187, allocations: 15.91 kB / 460.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002191/0.1209, allocations: 0.757 MB / 461.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.121, allocations: 79.69 kB / 461.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.214e-05/0.1211, allocations: 8.188 kB / 461.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.099e-05/0.1212, allocations: 35.84 kB / 461.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.202e-05/0.1213, allocations: 39.83 kB / 461.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.1213, allocations: 0 / 461.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.1231, allocations: 1.259 MB / 462.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.664e-05/0.1232, allocations: 27.92 kB / 462.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.872e-05/0.1233, allocations: 27.8 kB / 462.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001838/0.1251, allocations: 1.243 MB / 464.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1251, allocations: 0 / 464.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1251, allocations: 0 / 464.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1251, allocations: 0 / 464.1 MB, free: 0.5938 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0009963/0.1261, allocations: 0.5241 MB / 464.7 MB, free: 16 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.1262, allocations: 11.89 kB / 464.7 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.167e-05/0.1263, allocations: 38.75 kB / 464.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.915e-05/0.1263, allocations: 8.844 kB / 464.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.1266, allocations: 195.3 kB / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.654e-06/0.1266, allocations: 7.875 kB / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.1266, allocations: 0 / 464.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.1268, allocations: 65.67 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.1268, allocations: 0 / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.1268, allocations: 0 / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.1269, allocations: 0 / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.376e-05/0.1269, allocations: 31.98 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000206/0.1271, allocations: 177.6 kB / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.1273, allocations: 58.61 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.835e-05/0.1273, allocations: 52.92 kB / 465.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.1274, allocations: 0 / 465.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.1274, allocations: 34.55 kB / 465.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.52e-07/0.1274, allocations: 0 / 465.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003434/0.1278, allocations: 195.2 kB / 465.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.1278, allocations: 89.09 kB / 465.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.128, allocations: 132.2 kB / 465.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.128, allocations: 25.7 kB / 465.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.334e-05/0.128, allocations: 92.14 kB / 465.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.475e-05/0.1281, allocations: 39.36 kB / 465.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.9e-05/0.1282, allocations: 29.64 kB / 465.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1283, allocations: 322.8 kB / 466.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.114e-05/0.1284, allocations: 44 kB / 466.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.31e-05/0.1284, allocations: 27.98 kB / 466.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.1286, allocations: 160.2 kB / 466.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1286, allocations: 0 / 466.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001862/0.1288, allocations: 155.2 kB / 466.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.112e-05/0.1288, allocations: 45.69 kB / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1288, allocations: 0 / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1289, allocations: 0 / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.1289, allocations: 0 / 466.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.1289, allocations: 3.984 kB / 466.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.342e-05/0.1289, allocations: 19.92 kB / 466.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.129, allocations: 7.938 kB / 466.7 MB, free: 13.77 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.1291, allocations: 163.5 kB / 466.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.1291, allocations: 11.91 kB / 466.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.886e-05/0.1292, allocations: 8.719 kB / 466.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1292, allocations: 0 / 466.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.1292, allocations: 4 kB / 466.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1292, allocations: 0 / 466.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.1293, allocations: 185.5 kB / 467.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1293, allocations: 4 kB / 467.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.104e-06/0.1294, allocations: 0 / 467.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.1294, allocations: 7.875 kB / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1294, allocations: 4 kB / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1294, allocations: 0 / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1294, allocations: 0 / 467.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003336/0.1297, allocations: 286.6 kB / 467.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.135e-05/0.1298, allocations: 88.95 kB / 467.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.1298, allocations: 4.031 kB / 467.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.182e-05/0.1298, allocations: 7.984 kB / 467.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-05/0.1299, allocations: 3.938 kB / 467.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1299, allocations: 4 kB / 467.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.93e-05/0.13, allocations: 107.2 kB / 467.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.13, allocations: 0 / 467.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008912/0.1309, allocations: 316 kB / 467.9 MB, free: 12.47 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001935/0.1328, allocations: 1.078 MB / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.1332, allocations: 303.3 kB / 469.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.1332, allocations: 3.938 kB / 469.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.1333, allocations: 223.3 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.1337, allocations: 20.14 kB / 469.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.1366, allocations: 1.941 MB / 471.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.137, allocations: 0.7078 MB / 472.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.36e-05/0.137, allocations: 8.031 kB / 472.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.405e-05/0.1371, allocations: 19.44 kB / 472.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1371, allocations: 0 / 472.2 MB, free: 8.012 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].