Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001369/0.001369, allocations: 103.8 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.001482/0.001482, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.333/1.333, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1923/0.1923, allocations: 38.03 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 64.94 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1177, allocations: 58.05 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.004736/0.1225, allocations: 2.098 MB / 459.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003205/0.1257, allocations: 2.044 MB / 461.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.343e-05/0.1259, allocations: 3.938 kB / 461.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.126, allocations: 15.91 kB / 461.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.1262, allocations: 27.84 kB / 461.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003114/0.1293, allocations: 0.8344 MB / 462 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001949/0.1295, allocations: 79.69 kB / 462.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.742e-05/0.1296, allocations: 4.188 kB / 462.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.1297, allocations: 35.84 kB / 462.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.1298, allocations: 43.83 kB / 462.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.1299, allocations: 7.938 kB / 462.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002705/0.1326, allocations: 1.259 MB / 463.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.699e-05/0.1327, allocations: 35.91 kB / 463.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.604e-05/0.1328, allocations: 35.62 kB / 463.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002411/0.1352, allocations: 1.345 MB / 464.8 MB, free: 72 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1352, allocations: 3.938 kB / 464.8 MB, free: 68 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1352, allocations: 0 / 464.8 MB, free: 68 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1352, allocations: 0 / 464.8 MB, free: 68 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001151/0.1364, allocations: 0.5592 MB / 465.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.1365, allocations: 11.89 kB / 465.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.896e-05/0.1365, allocations: 42.73 kB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.905e-05/0.1366, allocations: 12.75 kB / 465.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.1369, allocations: 207.2 kB / 465.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.1369, allocations: 0 / 465.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.1369, allocations: 4 kB / 465.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.1372, allocations: 96.5 kB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1372, allocations: 0 / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.1373, allocations: 11.98 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.1373, allocations: 3.984 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.1374, allocations: 59.84 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002453/0.1377, allocations: 189.5 kB / 466 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.1379, allocations: 102.5 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.138, allocations: 88.86 kB / 466.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.1381, allocations: 4 kB / 466.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.1381, allocations: 34.56 kB / 466.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.1381, allocations: 0 / 466.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007237/0.1388, allocations: 315.5 kB / 466.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.045e-05/0.1389, allocations: 97.03 kB / 466.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.1392, allocations: 160.5 kB / 466.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1392, allocations: 25.7 kB / 466.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.092e-05/0.1393, allocations: 100.6 kB / 466.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.1394, allocations: 82.73 kB / 467 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.082e-05/0.1395, allocations: 33.73 kB / 467 MB, free: 13.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1397, allocations: 326.8 kB / 467.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.1398, allocations: 63.97 kB / 467.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.1399, allocations: 59.97 kB / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003675/0.1403, allocations: 251.6 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1403, allocations: 0 / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004099/0.1407, allocations: 242.9 kB / 468 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.347e-05/0.1408, allocations: 61.67 kB / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1409, allocations: 3.984 kB / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1409, allocations: 4.062 kB / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.512e-06/0.1409, allocations: 3.938 kB / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.1409, allocations: 0 / 468 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.906e-05/0.141, allocations: 11.84 kB / 468 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.141, allocations: 8 kB / 468.1 MB, free: 12.57 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.0002344/0.1413, allocations: 195.4 kB / 468.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.991e-05/0.1413, allocations: 19.81 kB / 468.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.249e-05/0.1414, allocations: 17.11 kB / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.1414, allocations: 0 / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1414, allocations: 4 kB / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1414, allocations: 0 / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.1416, allocations: 209.4 kB / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1417, allocations: 0 / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.1417, allocations: 0 / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1417, allocations: 0 / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.1417, allocations: 4 kB / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1417, allocations: 0 / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.1417, allocations: 3.984 kB / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009509/0.1427, allocations: 0.5251 MB / 469 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.869e-05/0.1428, allocations: 92.86 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.352e-05/0.1428, allocations: 7.984 kB / 469.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.686e-05/0.1429, allocations: 8 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.681e-05/0.1429, allocations: 4 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.143, allocations: 4 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001379/0.1431, allocations: 115.2 kB / 469.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1431, allocations: 0 / 469.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001391/0.1445, allocations: 336 kB / 469.6 MB, free: 10.95 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.002663/0.1472, allocations: 1.322 MB / 470.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.1483, allocations: 0.7138 MB / 471.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.1483, allocations: 8.094 kB / 471.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006764/0.149, allocations: 0.5696 MB / 472.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.1493, allocations: 10.92 kB / 472.2 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004188/0.1535, allocations: 2.649 MB / 474.9 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.1539, allocations: 0.7316 MB / 475.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.487e-05/0.1539, allocations: 0 / 475.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.608e-05/0.154, allocations: 39.42 kB / 475.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.154, allocations: 0 / 475.6 MB, free: 4.742 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].