Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_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.001255/0.001255, allocations: 113.2 kB / 16.92 MB, free: 5.855 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.001297/0.001297, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.388/1.388, 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-master/package.mo): time 0.1719/0.1719, allocations: 38.04 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 69.48 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1174, allocations: 58.06 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.004612/0.1221, allocations: 2.097 MB / 459.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003691/0.1258, allocations: 2.049 MB / 461.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.031e-05/0.1259, allocations: 0 / 461.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.1261, allocations: 11.86 kB / 461.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.1263, allocations: 35.83 kB / 461.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.1291, allocations: 0.8305 MB / 462 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.1293, allocations: 83.67 kB / 462.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.688e-05/0.1294, allocations: 4.188 kB / 462.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.303e-05/0.1295, allocations: 31.84 kB / 462.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.293e-05/0.1296, allocations: 43.83 kB / 462.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.1296, allocations: 11.98 kB / 462.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002156/0.1318, allocations: 1.259 MB / 463.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.611e-05/0.1319, allocations: 39.84 kB / 463.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.994e-05/0.1319, allocations: 51.5 kB / 463.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002356/0.1343, allocations: 1.384 MB / 464.9 MB, free: 28 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1343, allocations: 0 / 464.9 MB, free: 28 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1343, allocations: 0 / 464.9 MB, free: 28 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.1343, allocations: 4 kB / 464.9 MB, free: 24 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001338/0.1357, allocations: 0.5979 MB / 465.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.189e-05/0.1358, allocations: 15.89 kB / 465.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.872e-05/0.1358, allocations: 42.73 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.98e-05/0.1359, allocations: 20.66 kB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.1362, allocations: 215.8 kB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.1362, allocations: 4 kB / 465.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.1362, allocations: 4 kB / 465.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002591/0.1365, allocations: 138.5 kB / 465.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.1365, allocations: 7.938 kB / 465.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.1366, allocations: 4 kB / 465.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.1366, allocations: 0 / 465.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001511/0.1367, allocations: 104.2 kB / 466 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002852/0.137, allocations: 205.6 kB / 466.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.1372, allocations: 158.5 kB / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.1374, allocations: 144.8 kB / 466.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.458e-06/0.1374, allocations: 4 kB / 466.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.1375, allocations: 38.56 kB / 466.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.513e-06/0.1375, allocations: 0 / 466.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.000736/0.1382, allocations: 491.5 kB / 467.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.656e-05/0.1383, allocations: 113.1 kB / 467.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.1385, allocations: 166.4 kB / 467.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.1385, allocations: 29.7 kB / 467.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.1386, allocations: 104.7 kB / 467.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.1387, allocations: 130.1 kB / 467.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.968e-05/0.1388, allocations: 41.69 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.139, allocations: 338.8 kB / 468 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.1391, allocations: 91.97 kB / 468.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.1392, allocations: 96.94 kB / 468.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/0.1396, allocations: 380.3 kB / 468.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1396, allocations: 0 / 468.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004356/0.1401, allocations: 342.9 kB / 468.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.519e-05/0.1402, allocations: 85.64 kB / 468.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1402, allocations: 8.047 kB / 469 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.1402, allocations: 3.984 kB / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1402, allocations: 0 / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.1402, allocations: 3.984 kB / 469 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.784e-05/0.1403, allocations: 23.69 kB / 469 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.368e-05/0.1404, allocations: 8 kB / 469 MB, free: 11.66 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.000242/0.1406, allocations: 239.3 kB / 469.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.1407, allocations: 23.81 kB / 469.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.227e-05/0.1407, allocations: 14.66 kB / 469.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.1407, allocations: 4 kB / 469.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1407, allocations: 0 / 469.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.1407, allocations: 0 / 469.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.141, allocations: 241.2 kB / 469.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.141, allocations: 0 / 469.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-07/0.141, allocations: 0 / 469.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.141, allocations: 3.984 kB / 469.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.141, allocations: 8 kB / 469.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.141, allocations: 0 / 469.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.141, allocations: 0 / 469.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.1421, allocations: 0.9237 MB / 470.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.1422, allocations: 100.7 kB / 470.5 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.936e-05/0.1422, allocations: 12 kB / 470.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.457e-05/0.1423, allocations: 4 kB / 470.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.1424, allocations: 11.98 kB / 470.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.1424, allocations: 8 kB / 470.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.1425, allocations: 128.2 kB / 470.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1425, allocations: 0 / 470.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001251/0.1438, allocations: 359.9 kB / 471 MB, free: 9.492 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.00233/0.1461, allocations: 1.721 MB / 472.8 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.1475, allocations: 1.6 MB / 474.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1476, allocations: 0 / 474.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.1487, allocations: 1.374 MB / 475.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.149, allocations: 15.91 kB / 475.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/0.1532, allocations: 3.631 MB / 479.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.1536, allocations: 0.7594 MB / 480.1 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.96e-05/0.1536, allocations: 4.031 kB / 480.2 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.603e-05/0.1536, allocations: 55.34 kB / 480.2 MB, free: 164 kB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1537, allocations: 0 / 480.2 MB, free: 164 kB / 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].