Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001099/0.001099, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.001942/0.001943, allocations: 179.8 kB / 17.21 MB, free: 6.324 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.4/1.4, allocations: 223.3 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1857/0.1857, allocations: 38.09 MB / 330.4 MB, free: 8.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004401/0.0004402, allocations: 8.656 kB / 400.2 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1384, allocations: 59.17 MB / 459.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002843/0.1413, allocations: 1.764 MB / 461.1 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003157/0.1445, allocations: 1.905 MB / 463 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.132e-05/0.1446, allocations: 0 / 463 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001898/0.1448, allocations: 15.91 kB / 463 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.963e-05/0.1449, allocations: 23.84 kB / 463 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.1466, allocations: 0.6468 MB / 463.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.1467, allocations: 103.6 kB / 463.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.698e-05/0.1468, allocations: 4.188 kB / 463.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.34e-05/0.1469, allocations: 31.86 kB / 463.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.714e-05/0.147, allocations: 39.83 kB / 463.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.147, allocations: 4 kB / 463.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001538/0.1485, allocations: 1.053 MB / 464.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.589e-05/0.1486, allocations: 23.91 kB / 465 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.291e-05/0.1486, allocations: 25.7 kB / 465 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009804/0.1496, allocations: 0.9008 MB / 465.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1496, allocations: 0 / 465.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1496, allocations: 0 / 465.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1497, allocations: 0 / 465.9 MB, free: 0.7188 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005589/0.1502, allocations: 0.489 MB / 466.4 MB, free: 180 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.1503, allocations: 12.03 kB / 466.4 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.934e-05/0.1503, allocations: 34.5 kB / 466.4 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.191e-05/0.1504, allocations: 7.906 kB / 466.4 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.1506, allocations: 194.9 kB / 466.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.1506, allocations: 4 kB / 466.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-06/0.1506, allocations: 0 / 466.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.1507, allocations: 57.67 kB / 466.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.1507, allocations: 3.938 kB / 466.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.1508, allocations: 0 / 466.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1508, allocations: 0 / 466.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.348e-05/0.1508, allocations: 19.98 kB / 466.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001586/0.151, allocations: 169.6 kB / 466.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.001e-05/0.1511, allocations: 54.5 kB / 466.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.604e-05/0.1511, allocations: 32.88 kB / 466.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-06/0.1512, allocations: 0 / 466.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.1512, allocations: 34.56 kB / 467 MB, free: 15.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 7.62e-07/0.1512, allocations: 0 / 467 MB, free: 15.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002725/0.1515, allocations: 143.3 kB / 467.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.1516, allocations: 93.05 kB / 467.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.1517, allocations: 121.8 kB / 467.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.1517, allocations: 29.73 kB / 467.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.1517, allocations: 92.12 kB / 467.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.973e-05/0.1518, allocations: 27.56 kB / 467.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-06/0.1518, allocations: 0 / 467.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1519, allocations: 318.8 kB / 467.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.559e-05/0.152, allocations: 19.98 kB / 467.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.025e-05/0.152, allocations: 24.14 kB / 467.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.911e-05/0.1521, allocations: 65.67 kB / 467.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1521, allocations: 3.953 kB / 467.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001639/0.1523, allocations: 131.6 kB / 468 MB, free: 14.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.449e-05/0.1523, allocations: 45.69 kB / 468.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1524, allocations: 0 / 468.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.1524, allocations: 0 / 468.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1524, allocations: 0 / 468.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1524, allocations: 3.984 kB / 468.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.12e-05/0.1525, allocations: 11.88 kB / 468.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.1525, allocations: 7.938 kB / 468.1 MB, free: 14.24 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.1527, allocations: 155.5 kB / 468.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.809e-05/0.1527, allocations: 15.89 kB / 468.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.647e-05/0.1527, allocations: 8.375 kB / 468.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.1527, allocations: 0 / 468.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1527, allocations: 0 / 468.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1527, allocations: 0 / 468.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.1529, allocations: 169.6 kB / 468.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.1529, allocations: 0 / 468.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.465e-06/0.1529, allocations: 3.953 kB / 468.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.1529, allocations: 0 / 468.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.1529, allocations: 8 kB / 468.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1529, allocations: 0 / 468.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1529, allocations: 7.938 kB / 468.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003317/0.1533, allocations: 214.7 kB / 468.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.495e-05/0.1533, allocations: 85.02 kB / 468.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.1534, allocations: 3.953 kB / 468.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.035e-05/0.1534, allocations: 0 / 468.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.186e-05/0.1534, allocations: 7.938 kB / 468.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.1534, allocations: 4 kB / 468.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.14e-05/0.1535, allocations: 98.55 kB / 468.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1535, allocations: 4 kB / 468.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008405/0.1543, allocations: 315.9 kB / 469.2 MB, free: 13.05 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 (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.001523/0.1559, allocations: 1.004 MB / 470.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003913/0.1563, allocations: 195.3 kB / 470.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1563, allocations: 0 / 470.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002279/0.1565, allocations: 155.3 kB / 470.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.1569, allocations: 11.95 kB / 470.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.1587, allocations: 0.8035 MB / 471.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/0.1594, allocations: 0.6926 MB / 472 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.98e-05/0.1594, allocations: 3.984 kB / 472 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.939e-05/0.1594, allocations: 19.44 kB / 472 MB, free: 10.05 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1595, allocations: 4 kB / 472.1 MB, free: 10.04 MB / 350.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].