Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 110.5 kB / 17.75 MB, free: 5.309 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.001152/0.001152, allocations: 179 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1778/0.1778, allocations: 37.98 MB / 309.9 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 64.42 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1103, allocations: 55.25 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003865/0.1142, allocations: 2.107 MB / 489.9 MB, free: 6.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003382/0.1176, allocations: 2.093 MB / 492 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.941e-05/0.1177, allocations: 0 / 492 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.1179, allocations: 11.92 kB / 492 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.1181, allocations: 19.84 kB / 492 MB, free: 4.07 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeClassSections: time 0.002552/0.1206, allocations: 0.8341 MB / 492.9 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.1208, allocations: 75.69 kB / 492.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.268e-05/0.1209, allocations: 4.188 kB / 492.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.121, allocations: 39.83 kB / 493 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.1211, allocations: 43.83 kB / 493 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.1211, allocations: 4 kB / 493 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002244/0.1234, allocations: 1.407 MB / 494.4 MB, free: 1.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.937e-05/0.1235, allocations: 51.83 kB / 494.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.525e-05/0.1235, allocations: 55.48 kB / 494.5 MB, free: 1.555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001883/0.1254, allocations: 1.38 MB / 495.9 MB, free: 176 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1254, allocations: 4 kB / 495.9 MB, free: 172 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1254, allocations: 0 / 495.9 MB, free: 172 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.1255, allocations: 0 / 495.9 MB, free: 172 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0009119/0.1264, allocations: 0.6018 MB / 496.5 MB, free: 15.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.1264, allocations: 11.89 kB / 496.5 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.376e-05/0.1265, allocations: 24.66 kB / 496.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.1267, allocations: 211.5 kB / 496.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.1268, allocations: 3.938 kB / 496.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.1268, allocations: 0 / 496.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002128/0.127, allocations: 134.6 kB / 496.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.127, allocations: 0 / 496.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.127, allocations: 4 kB / 496.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.127, allocations: 0 / 496.9 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.1272, allocations: 96.28 kB / 497 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000192/0.1274, allocations: 213.9 kB / 497.2 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.1275, allocations: 158.8 kB / 497.4 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.1277, allocations: 153.2 kB / 497.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.1277, allocations: 0 / 497.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.1277, allocations: 38.5 kB / 497.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.052e-06/0.1277, allocations: 0 / 497.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007344/0.1285, allocations: 0.4919 MB / 498 MB, free: 13.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.1285, allocations: 105.1 kB / 498.1 MB, free: 13.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.1287, allocations: 174.4 kB / 498.3 MB, free: 13.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.1287, allocations: 29.7 kB / 498.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.718e-05/0.1288, allocations: 100.8 kB / 498.4 MB, free: 13.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.1289, allocations: 130.1 kB / 498.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.667e-05/0.129, allocations: 33.7 kB / 498.6 MB, free: 13.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1291, allocations: 346.7 kB / 498.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.1292, allocations: 87.97 kB / 499 MB, free: 12.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.1294, allocations: 99.95 kB / 499.1 MB, free: 12.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.1297, allocations: 381.4 kB / 499.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1297, allocations: 0 / 499.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003994/0.1301, allocations: 342.9 kB / 499.8 MB, free: 12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-05/0.1302, allocations: 89.62 kB / 499.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1302, allocations: 0 / 499.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.1303, allocations: 0 / 499.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1303, allocations: 0 / 499.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.1303, allocations: 3.984 kB / 499.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.64e-05/0.1304, allocations: 23.75 kB / 499.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.105e-05/0.1304, allocations: 11.94 kB / 500 MB, free: 11.86 MB / 382.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.0002155/0.1306, allocations: 239.4 kB / 0.4885 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.1307, allocations: 23.81 kB / 0.4885 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.181e-05/0.1307, allocations: 10.66 kB / 0.4885 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.1307, allocations: 3.984 kB / 0.4885 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1307, allocations: 0 / 0.4885 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.246e-05/0.1308, allocations: 100.7 kB / 0.4886 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.1308, allocations: 8 kB / 0.4886 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.701e-05/0.1309, allocations: 7.938 kB / 0.4886 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.1309, allocations: 12 kB / 0.4886 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001246/0.1322, allocations: 1.329 MB / 0.4899 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00103/0.1332, allocations: 1.05 MB / 0.491 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000727/0.134, allocations: 0.9803 MB / 0.4919 GB, free: 8.023 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.032e-05/0.1341, allocations: 131.2 kB / 0.492 GB, free: 7.895 MB / 382.1 MB Notification: Performance of Backend: time 1.633e-06/0.1341, allocations: 0 / 0.492 GB, free: 7.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.1367, allocations: 1.716 MB / 0.4937 GB, free: 6.156 MB / 382.1 MB Notification: Performance of SimCode: time 0.001176/0.1379, allocations: 1.19 MB / 0.4949 GB, free: 4.902 MB / 382.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. Error: Internal error SimCode DAEmode: The model PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3 could not be translated