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.001016/0.001016, allocations: 106.1 kB / 16.92 MB, free: 6.145 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.001033/0.001034, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.315/1.315, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1761/0.1761, allocations: 38.03 MB / 329.7 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 61.8 kB / 398.9 MB, free: 33.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1133, allocations: 58.07 MB / 457 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.005642/0.1189, allocations: 2.094 MB / 459.1 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005089/0.1241, allocations: 2.039 MB / 461.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.049e-05/0.1241, allocations: 0 / 461.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.1243, allocations: 15.86 kB / 461.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.1245, allocations: 31.83 kB / 461.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003972/0.1285, allocations: 0.83 MB / 462 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002277/0.1287, allocations: 83.62 kB / 462.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.29e-05/0.1288, allocations: 8.188 kB / 462.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.129, allocations: 31.91 kB / 462.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.1291, allocations: 39.78 kB / 462.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.1291, allocations: 3.984 kB / 462.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003361/0.1325, allocations: 1.255 MB / 463.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.539e-05/0.1326, allocations: 19.92 kB / 463.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.529e-05/0.1327, allocations: 27.8 kB / 463.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00283/0.1355, allocations: 1.321 MB / 464.8 MB, free: 92 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1356, allocations: 0 / 464.8 MB, free: 92 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1356, allocations: 0 / 464.8 MB, free: 92 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.1356, allocations: 0 / 464.8 MB, free: 92 kB / 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.00104/0.1366, allocations: 0.5241 MB / 465.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.1367, allocations: 11.89 kB / 465.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.826e-05/0.1368, allocations: 42.69 kB / 465.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.691e-05/0.1368, allocations: 4.844 kB / 465.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.1371, allocations: 191.3 kB / 465.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.1371, allocations: 11.94 kB / 465.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.1372, allocations: 0 / 465.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.1374, allocations: 65.67 kB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.792e-06/0.1374, allocations: 0 / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1374, allocations: 0 / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1374, allocations: 3.984 kB / 465.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.1375, allocations: 35.92 kB / 465.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002229/0.1378, allocations: 169.6 kB / 465.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.138, allocations: 62.56 kB / 465.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.1381, allocations: 45.09 kB / 465.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.1381, allocations: 3.938 kB / 465.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/0.1382, allocations: 38.55 kB / 466 MB, free: 14.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.874e-06/0.1382, allocations: 0 / 466 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005197/0.1387, allocations: 199.1 kB / 466.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.93e-05/0.1388, allocations: 85.11 kB / 466.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.139, allocations: 140.7 kB / 466.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.139, allocations: 25.7 kB / 466.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.168e-05/0.1391, allocations: 96.12 kB / 466.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.853e-05/0.1392, allocations: 39.36 kB / 466.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.569e-05/0.1393, allocations: 17.72 kB / 466.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1395, allocations: 326.8 kB / 466.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.1396, allocations: 27.98 kB / 466.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.417e-05/0.1397, allocations: 31.98 kB / 466.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.14, allocations: 168.2 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.14, allocations: 4 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003425/0.1404, allocations: 151.2 kB / 467.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.671e-05/0.1405, allocations: 53.67 kB / 467.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1405, allocations: 0 / 467.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1405, allocations: 0 / 467.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.733e-06/0.1405, allocations: 0 / 467.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1405, allocations: 0 / 467.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.862e-05/0.1406, allocations: 7.938 kB / 467.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.245e-05/0.1407, allocations: 7.938 kB / 467.3 MB, free: 13.27 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.0002194/0.1409, allocations: 171.5 kB / 467.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.1409, allocations: 7.906 kB / 467.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.674e-05/0.141, allocations: 8.719 kB / 467.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.141, allocations: 0 / 467.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.141, allocations: 0 / 467.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.141, allocations: 0 / 467.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.1412, allocations: 185.5 kB / 467.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1413, allocations: 3.984 kB / 467.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.1413, allocations: 0 / 467.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.1413, allocations: 3.938 kB / 467.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.1413, allocations: 11.94 kB / 467.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1413, allocations: 0 / 467.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1414, allocations: 0 / 467.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005923/0.142, allocations: 290.5 kB / 468 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/0.142, allocations: 84.95 kB / 468.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.1421, allocations: 8 kB / 468.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.066e-05/0.1421, allocations: 0 / 468.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.57e-05/0.1422, allocations: 8 kB / 468.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.1422, allocations: 12.02 kB / 468.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001077/0.1424, allocations: 101.9 kB / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1424, allocations: 4 kB / 468.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001372/0.1438, allocations: 316 kB / 468.5 MB, free: 11.96 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.00252/0.1463, allocations: 1.083 MB / 469.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005463/0.1469, allocations: 291.3 kB / 469.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.1469, allocations: 0 / 469.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.1472, allocations: 231.3 kB / 470.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.1476, allocations: 8 kB / 470.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003241/0.1509, allocations: 1.927 MB / 472 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.1513, allocations: 0.7078 MB / 472.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.816e-05/0.1513, allocations: 3.984 kB / 472.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.113e-05/0.1514, allocations: 19.44 kB / 472.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1514, allocations: 4 kB / 472.8 MB, free: 7.527 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].