Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 107 kB / 17.74 MB, free: 5.359 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.001864/0.001864, allocations: 186.4 kB / 18.67 MB, free: 4.438 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.34/1.34, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1866/0.1866, allocations: 37.99 MB / 309.9 MB, free: 5.965 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.002229/0.002229, allocations: 75.89 kB / 432.6 MB, free: 15.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1186, allocations: 55.24 MB / 487.8 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.004618/0.1233, allocations: 2.095 MB / 489.9 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004459/0.1278, allocations: 2.085 MB / 492 MB, free: 4.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.483e-05/0.1279, allocations: 0 / 492 MB, free: 4.246 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.1281, allocations: 15.86 kB / 492 MB, free: 4.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.1282, allocations: 35.83 kB / 492 MB, free: 4.195 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.00298/0.1312, allocations: 0.8264 MB / 492.9 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.1314, allocations: 79.64 kB / 492.9 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.118e-05/0.1315, allocations: 8.172 kB / 492.9 MB, free: 3.281 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.1316, allocations: 27.91 kB / 493 MB, free: 3.254 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.1317, allocations: 51.77 kB / 493 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.1317, allocations: 4 kB / 493 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.1347, allocations: 1.407 MB / 494.4 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.1348, allocations: 27.91 kB / 494.5 MB, free: 1.762 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.087e-05/0.1349, allocations: 39.62 kB / 494.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002188/0.1371, allocations: 1.352 MB / 495.9 MB, free: 376 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1371, allocations: 0 / 495.9 MB, free: 376 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1371, allocations: 4 kB / 495.9 MB, free: 372 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1371, allocations: 3.938 kB / 495.9 MB, free: 368 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008922/0.138, allocations: 0.5552 MB / 496.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.827e-05/0.1381, allocations: 15.88 kB / 496.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.1382, allocations: 12.75 kB / 496.4 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000279/0.1385, allocations: 199.6 kB / 496.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.1385, allocations: 0 / 496.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.1386, allocations: 7.984 kB / 496.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.1388, allocations: 101.5 kB / 496.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1388, allocations: 0 / 496.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.1389, allocations: 0 / 496.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1389, allocations: 0 / 496.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.139, allocations: 63.97 kB / 496.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002488/0.1393, allocations: 197.4 kB / 497 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.1395, allocations: 102.5 kB / 497.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.1396, allocations: 88.86 kB / 497.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.1396, allocations: 4 kB / 497.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.1397, allocations: 30.56 kB / 497.2 MB, free: 14.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.392e-06/0.1397, allocations: 0 / 497.2 MB, free: 14.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006896/0.1404, allocations: 327.2 kB / 497.5 MB, free: 14.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.1405, allocations: 93.09 kB / 497.6 MB, free: 14.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.1407, allocations: 150.2 kB / 497.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.1407, allocations: 29.7 kB / 497.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/0.1408, allocations: 104.6 kB / 497.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1409, allocations: 78.83 kB / 498 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.731e-05/0.141, allocations: 25.72 kB / 498 MB, free: 13.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.1412, allocations: 334.8 kB / 498.3 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.1413, allocations: 59.97 kB / 498.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.1414, allocations: 63.97 kB / 498.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.1418, allocations: 245.8 kB / 498.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1418, allocations: 0 / 498.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004268/0.1423, allocations: 242.9 kB / 498.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.99e-05/0.1424, allocations: 65.66 kB / 499 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1424, allocations: 4.062 kB / 499 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1424, allocations: 3.938 kB / 499 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1424, allocations: 0 / 499 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1424, allocations: 0 / 499 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.587e-05/0.1425, allocations: 11.84 kB / 499 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.1426, allocations: 11.98 kB / 499 MB, free: 12.92 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.0002176/0.1428, allocations: 195.4 kB / 499.2 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.1429, allocations: 11.91 kB / 499.2 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.1429, allocations: 13.19 kB / 499.2 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1429, allocations: 4 kB / 499.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1429, allocations: 3.938 kB / 499.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.514e-05/0.143, allocations: 96.84 kB / 499.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.563e-05/0.143, allocations: 4 kB / 499.4 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.595e-05/0.1431, allocations: 11.94 kB / 499.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.1432, allocations: 4 kB / 499.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009966/0.1442, allocations: 0.7203 MB / 0.4884 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009738/0.1452, allocations: 0.6602 MB / 0.489 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005163/0.1457, allocations: 403.8 kB / 0.4894 GB, free: 10.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001189/0.1458, allocations: 123.1 kB / 0.4895 GB, free: 10.6 MB / 382.1 MB Notification: Performance of Backend: time 4.31e-07/0.1459, allocations: 0 / 0.4895 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.1478, allocations: 0.9115 MB / 0.4904 GB, free: 9.672 MB / 382.1 MB Notification: Performance of SimCode: time 0.001134/0.1489, allocations: 0.908 MB / 0.4913 GB, free: 8.703 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_matrixTrDat2 could not be translated