Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 112.8 kB / 16.63 MB, free: 6.812 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.00102/0.00102, allocations: 186 kB / 17.55 MB, free: 5.934 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.409/1.409, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1802/0.1802, allocations: 38.02 MB / 329.4 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 62.94 kB / 398.3 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1048, allocations: 58.06 MB / 456.3 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.004067/0.1089, allocations: 2.146 MB / 458.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003197/0.1122, allocations: 2.051 MB / 460.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.634e-05/0.1123, allocations: 0 / 460.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.1124, allocations: 11.92 kB / 460.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.1126, allocations: 27.83 kB / 460.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002353/0.1149, allocations: 0.7493 MB / 461.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.1151, allocations: 79.64 kB / 461.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.314e-05/0.1151, allocations: 192 / 461.4 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.96e-05/0.1152, allocations: 35.91 kB / 461.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.414e-05/0.1153, allocations: 47.75 kB / 461.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.1153, allocations: 8 kB / 461.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001844/0.1172, allocations: 1.263 MB / 462.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.539e-05/0.1173, allocations: 15.92 kB / 462.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.306e-05/0.1173, allocations: 27.81 kB / 462.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.1194, allocations: 1.247 MB / 464 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1194, allocations: 0 / 464 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1194, allocations: 0 / 464 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.1195, allocations: 4 kB / 464 MB, free: 0.6953 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.000973/0.1204, allocations: 0.5201 MB / 464.6 MB, free: 124 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.1205, allocations: 15.83 kB / 464.6 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.546e-05/0.1205, allocations: 8.844 kB / 464.6 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.1208, allocations: 183.6 kB / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.564e-06/0.1208, allocations: 0 / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.1208, allocations: 0 / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.121, allocations: 69.67 kB / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.121, allocations: 0 / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.121, allocations: 4 kB / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.121, allocations: 0 / 464.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.059e-05/0.1211, allocations: 35.92 kB / 464.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000195/0.1213, allocations: 177.4 kB / 465 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.917e-05/0.1214, allocations: 54.56 kB / 465.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.772e-05/0.1214, allocations: 49.09 kB / 465.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.1215, allocations: 11.91 kB / 465.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.1215, allocations: 38.56 kB / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.1215, allocations: 0 / 465.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003322/0.1218, allocations: 187.5 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.1219, allocations: 93.09 kB / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.122, allocations: 132.5 kB / 465.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.122, allocations: 25.7 kB / 465.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.112e-05/0.1221, allocations: 92.14 kB / 465.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.191e-05/0.1221, allocations: 35.45 kB / 465.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.419e-05/0.1222, allocations: 25.73 kB / 465.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1223, allocations: 322.8 kB / 466.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.168e-05/0.1224, allocations: 35.97 kB / 466.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.619e-05/0.1224, allocations: 31.92 kB / 466.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.1226, allocations: 168.1 kB / 466.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1226, allocations: 0 / 466.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002155/0.1228, allocations: 155.1 kB / 466.5 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.495e-05/0.1229, allocations: 49.69 kB / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1229, allocations: 0 / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.1229, allocations: 4.062 kB / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.565e-06/0.1229, allocations: 3.984 kB / 466.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.1229, allocations: 0 / 466.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.688e-05/0.123, allocations: 7.938 kB / 466.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.123, allocations: 4 kB / 466.5 MB, free: 13.93 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.0001345/0.1232, allocations: 167.5 kB / 466.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.1232, allocations: 11.91 kB / 466.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.469e-05/0.1232, allocations: 4.719 kB / 466.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1232, allocations: 0 / 466.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1232, allocations: 11.98 kB / 466.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1232, allocations: 3.938 kB / 466.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.1234, allocations: 185.5 kB / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1234, allocations: 0 / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.1234, allocations: 0 / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1234, allocations: 0 / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1234, allocations: 7.938 kB / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1234, allocations: 0 / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1235, allocations: 0 / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.1238, allocations: 294.5 kB / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-05/0.1239, allocations: 85.02 kB / 467.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.1239, allocations: 3.984 kB / 467.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.963e-05/0.1239, allocations: 4 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.119e-05/0.1239, allocations: 4 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.124, allocations: 4 kB / 467.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.332e-05/0.124, allocations: 99.27 kB / 467.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.124, allocations: 0 / 467.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001014/0.1251, allocations: 327.8 kB / 467.7 MB, free: 12.63 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.001335/0.1264, allocations: 378.1 kB / 468.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003482/0.1268, allocations: 295.3 kB / 468.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.1268, allocations: 0 / 468.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.127, allocations: 227.3 kB / 468.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.1273, allocations: 12.11 kB / 468.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005272/0.1278, allocations: 320.7 kB / 468.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.1281, allocations: 0.7117 MB / 469.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.213e-05/0.1281, allocations: 0 / 469.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.653e-05/0.1281, allocations: 11.44 kB / 469.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1281, allocations: 0 / 469.7 MB, free: 10.62 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].