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.001382/0.001381, allocations: 108.4 kB / 16.92 MB, free: 5.781 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.001197/0.001197, 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.291/1.291, allocations: 222.9 MB / 241.6 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.1663/0.1663, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 66.34 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.133, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003822/0.1369, allocations: 2.09 MB / 459.1 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003147/0.14, allocations: 2.049 MB / 461.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.137e-05/0.1401, allocations: 4 kB / 461.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.1403, allocations: 7.922 kB / 461.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.289e-05/0.1404, allocations: 31.84 kB / 461.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002105/0.1426, allocations: 0.8344 MB / 462 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001476/0.1427, allocations: 83.62 kB / 462.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.659e-05/0.1428, allocations: 8.188 kB / 462.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.886e-05/0.1429, allocations: 27.91 kB / 462.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.143, allocations: 43.77 kB / 462.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.701e-05/0.143, allocations: 7.984 kB / 462.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.1448, allocations: 1.251 MB / 463.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.273e-05/0.1449, allocations: 15.88 kB / 463.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.463e-05/0.145, allocations: 19.86 kB / 463.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001433/0.1464, allocations: 1.317 MB / 464.8 MB, free: 152 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1464, allocations: 4 kB / 464.8 MB, free: 148 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1464, allocations: 0 / 464.8 MB, free: 148 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.1464, allocations: 0 / 464.8 MB, free: 148 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006504/0.1471, allocations: 0.4956 MB / 465.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.1471, allocations: 11.89 kB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.7e-05/0.1472, allocations: 38.69 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.529e-05/0.1472, allocations: 12.78 kB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.1474, allocations: 187.4 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.1474, allocations: 4 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.1475, allocations: 8 kB / 465.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.1476, allocations: 53.67 kB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1476, allocations: 4 kB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.1476, allocations: 0 / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.1476, allocations: 0 / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.45e-05/0.1477, allocations: 19.98 kB / 465.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.1479, allocations: 177.4 kB / 465.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.799e-05/0.1479, allocations: 38.58 kB / 465.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.678e-05/0.148, allocations: 40.88 kB / 465.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.866e-06/0.148, allocations: 0 / 465.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.148, allocations: 34.55 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.148, allocations: 0 / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.000264/0.1483, allocations: 155.3 kB / 466 MB, free: 14.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.1484, allocations: 81.11 kB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.872e-05/0.1485, allocations: 128.7 kB / 466.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.1485, allocations: 29.73 kB / 466.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.718e-05/0.1485, allocations: 84.14 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.1486, allocations: 31.7 kB / 466.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.1486, allocations: 17.72 kB / 466.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1487, allocations: 326.8 kB / 466.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.799e-05/0.1488, allocations: 23.98 kB / 466.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.269e-05/0.1488, allocations: 19.97 kB / 466.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.149, allocations: 124.2 kB / 466.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.149, allocations: 4.031 kB / 466.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001485/0.1491, allocations: 131.2 kB / 467 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.752e-05/0.1492, allocations: 45.69 kB / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.1492, allocations: 0 / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.1492, allocations: 0 / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.1492, allocations: 4 kB / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1492, allocations: 0 / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.787e-05/0.1493, allocations: 7.875 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.1493, allocations: 4 kB / 467.1 MB, free: 13.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.0001162/0.1494, allocations: 159.5 kB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.1494, allocations: 11.91 kB / 467.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.468e-05/0.1495, allocations: 8.375 kB / 467.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1495, allocations: 0 / 467.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1495, allocations: 0 / 467.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.1495, allocations: 4 kB / 467.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001216/0.1496, allocations: 173.5 kB / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1496, allocations: 0 / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1496, allocations: 0 / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.1496, allocations: 0 / 467.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.1496, allocations: 4 kB / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1497, allocations: 4 kB / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1497, allocations: 0 / 467.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.1499, allocations: 226.8 kB / 467.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.15, allocations: 89.02 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.15, allocations: 4 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.35e-05/0.15, allocations: 4 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.99e-05/0.15, allocations: 0 / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.1501, allocations: 4 kB / 467.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.855e-05/0.1501, allocations: 99.3 kB / 467.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1501, allocations: 0 / 467.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006946/0.1508, allocations: 323.8 kB / 468.2 MB, free: 12.36 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.001256/0.1521, allocations: 1.011 MB / 469.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002502/0.1524, allocations: 199.3 kB / 469.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1524, allocations: 0 / 469.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.1525, allocations: 151.4 kB / 469.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.1528, allocations: 4 kB / 469.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.1544, allocations: 1.691 MB / 471.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.1547, allocations: 0.6924 MB / 471.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.257e-05/0.1547, allocations: 0 / 471.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.505e-05/0.1547, allocations: 19.64 kB / 471.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1547, allocations: 3.938 kB / 471.9 MB, free: 8.434 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].