Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-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_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_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.0007225/0.0007225, allocations: 85.27 kB / 16.31 MB, free: 6.449 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.0009382/0.0009383, allocations: 180.3 kB / 17.21 MB, free: 6.32 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.425/1.425, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1811/0.1811, allocations: 38.1 MB / 330.4 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003227, allocations: 8.625 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.123, allocations: 59.17 MB / 459.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.002806/0.1259, allocations: 1.76 MB / 461.1 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.1293, allocations: 1.912 MB / 463 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.3e-05/0.1295, allocations: 0 / 463 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.1297, allocations: 15.92 kB / 463 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.1298, allocations: 23.84 kB / 463.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002461/0.1323, allocations: 0.6508 MB / 463.7 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001674/0.1324, allocations: 91.66 kB / 463.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.24e-05/0.1325, allocations: 4.188 kB / 463.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1326, allocations: 39.83 kB / 463.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.1327, allocations: 43.83 kB / 463.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.1328, allocations: 0 / 463.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002188/0.135, allocations: 1.057 MB / 464.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.711e-05/0.135, allocations: 11.98 kB / 464.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.474e-05/0.1351, allocations: 37.64 kB / 465 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001554/0.1366, allocations: 0.9125 MB / 465.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1367, allocations: 0 / 465.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1367, allocations: 0 / 465.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1367, allocations: 0 / 465.9 MB, free: 0.7344 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007978/0.1375, allocations: 0.5007 MB / 466.4 MB, free: 184 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.1375, allocations: 12.03 kB / 466.4 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.195e-05/0.1376, allocations: 38.48 kB / 466.4 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.1376, allocations: 11.91 kB / 466.5 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.1379, allocations: 197.3 kB / 466.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.1379, allocations: 0 / 466.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.1379, allocations: 7.984 kB / 466.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/0.1381, allocations: 65.61 kB / 466.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1381, allocations: 0 / 466.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.1381, allocations: 8 kB / 466.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1381, allocations: 0 / 466.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.649e-05/0.1382, allocations: 35.91 kB / 466.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001773/0.1384, allocations: 177.5 kB / 466.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.457e-05/0.1385, allocations: 58.55 kB / 467 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.943e-05/0.1385, allocations: 48.88 kB / 467 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.1386, allocations: 0 / 467 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.1386, allocations: 30.56 kB / 467.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 8.41e-07/0.1386, allocations: 0 / 467.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003388/0.1389, allocations: 199.3 kB / 467.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/0.139, allocations: 89.14 kB / 467.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1391, allocations: 130 kB / 467.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.1392, allocations: 25.7 kB / 467.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.1392, allocations: 96.12 kB / 467.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.176e-05/0.1393, allocations: 39.39 kB / 467.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-06/0.1393, allocations: 0 / 467.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1394, allocations: 318.8 kB / 468 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.329e-05/0.1395, allocations: 31.97 kB / 468 MB, free: 14.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.116e-05/0.1395, allocations: 31.98 kB / 468 MB, free: 14.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.659e-05/0.1396, allocations: 85.7 kB / 468.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1396, allocations: 3.953 kB / 468.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000194/0.1398, allocations: 155.1 kB / 468.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.158e-05/0.1399, allocations: 49.67 kB / 468.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.1399, allocations: 0 / 468.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1399, allocations: 0 / 468.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1399, allocations: 4 kB / 468.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.14, allocations: 0 / 468.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.407e-05/0.14, allocations: 3.906 kB / 468.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.14, allocations: 4 kB / 468.3 MB, free: 14.05 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.0001458/0.1402, allocations: 171.5 kB / 468.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.793e-05/0.1402, allocations: 11.86 kB / 468.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.259e-05/0.1402, allocations: 12.7 kB / 468.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1402, allocations: 0 / 468.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1403, allocations: 0 / 468.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1403, allocations: 0 / 468.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.1404, allocations: 177.6 kB / 468.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1404, allocations: 0 / 468.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-06/0.1404, allocations: 3.953 kB / 468.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.1404, allocations: 8 kB / 468.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.1405, allocations: 0 / 468.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1405, allocations: 7.938 kB / 468.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1405, allocations: 0 / 468.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.1408, allocations: 286.9 kB / 469 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-05/0.1409, allocations: 92.94 kB / 469.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.1409, allocations: 3.953 kB / 469.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.651e-05/0.1409, allocations: 4 kB / 469.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.141, allocations: 8.031 kB / 469.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.141, allocations: 4 kB / 469.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.009e-05/0.1411, allocations: 101.5 kB / 469.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1411, allocations: 0 / 469.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00104/0.1421, allocations: 323.9 kB / 469.5 MB, free: 12.75 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.001502/0.1436, allocations: 1.066 MB / 470.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003573/0.144, allocations: 299.2 kB / 470.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.144, allocations: 0 / 470.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.1442, allocations: 227.3 kB / 471.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.1445, allocations: 7.953 kB / 471.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.1459, allocations: 0.9695 MB / 472.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.1462, allocations: 0.7083 MB / 472.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.4e-05/0.1462, allocations: 0 / 472.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.402e-05/0.1463, allocations: 27.42 kB / 472.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1463, allocations: 0 / 472.8 MB, free: 9.332 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].