Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_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.001136/0.001136, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.00103/0.00103, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.287/1.287, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1721/0.1721, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 63.91 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3022, allocations: 58.06 MB / 0.5048 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003195/0.3054, allocations: 2.092 MB / 0.5068 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.3081, allocations: 2.05 MB / 0.5088 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.455e-05/0.3082, allocations: 1.188 kB / 0.5088 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.3083, allocations: 10.33 kB / 0.5088 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.833e-05/0.3084, allocations: 29.59 kB / 0.5089 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002438/0.3108, allocations: 0.831 MB / 0.5097 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.311, allocations: 78.52 kB / 0.5098 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.21e-05/0.311, allocations: 7.875 kB / 0.5098 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.194e-05/0.3111, allocations: 39.14 kB / 0.5098 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.087e-05/0.3112, allocations: 45.33 kB / 0.5098 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.3112, allocations: 2.312 kB / 0.5099 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002341/0.3136, allocations: 1.401 MB / 0.5112 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.3137, allocations: 44.84 kB / 0.5113 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.885e-05/0.3137, allocations: 55.05 kB / 0.5113 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002358/0.3161, allocations: 1.384 MB / 0.5127 GB, free: 3.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3161, allocations: 0.8906 kB / 0.5127 GB, free: 3.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3161, allocations: 0 / 0.5127 GB, free: 3.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.3161, allocations: 0 / 0.5127 GB, free: 3.805 MB / 382.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.0009391/0.3171, allocations: 0.6039 MB / 0.5133 GB, free: 3.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3171, allocations: 12.95 kB / 0.5133 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.644e-05/0.3172, allocations: 18.27 kB / 0.5133 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.3174, allocations: 217.7 kB / 0.5135 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.3174, allocations: 11.94 kB / 0.5135 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.3174, allocations: 7.562 kB / 0.5135 GB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.3176, allocations: 139.8 kB / 0.5136 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.3176, allocations: 0 / 0.5136 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.3176, allocations: 1.125 kB / 0.5136 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.3177, allocations: 0 / 0.5136 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.3178, allocations: 96.33 kB / 0.5137 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001462/0.3179, allocations: 215.5 kB / 0.5139 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.3181, allocations: 157.6 kB / 0.5141 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.3182, allocations: 153 kB / 0.5142 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.658e-06/0.3182, allocations: 0 / 0.5142 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.646e-05/0.3183, allocations: 32 kB / 0.5143 GB, free: 2.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.202e-06/0.3183, allocations: 0 / 0.5143 GB, free: 2.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006607/0.3189, allocations: 499.5 kB / 0.5147 GB, free: 2.367 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.319, allocations: 104 kB / 0.5148 GB, free: 2.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.3191, allocations: 172.7 kB / 0.515 GB, free: 2.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.009e-05/0.3191, allocations: 29.73 kB / 0.515 GB, free: 2.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.674e-05/0.3192, allocations: 106.2 kB / 0.5151 GB, free: 2.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.338e-05/0.3193, allocations: 129.7 kB / 0.5153 GB, free: 1.918 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/0.3193, allocations: 33.62 kB / 0.5153 GB, free: 1.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.643e-05/0.3194, allocations: 342.8 kB / 0.5156 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.3195, allocations: 97.91 kB / 0.5157 GB, free: 1.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.3197, allocations: 99.98 kB / 0.5158 GB, free: 1.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.3201, allocations: 379.5 kB / 0.5162 GB, free: 1.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3201, allocations: 4.625 kB / 0.5162 GB, free: 1.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004511/0.3205, allocations: 344 kB / 0.5165 GB, free: 1.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.26e-05/0.3206, allocations: 84.56 kB / 0.5166 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3206, allocations: 0.6562 kB / 0.5166 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3206, allocations: 0 / 0.5166 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.3207, allocations: 1.125 kB / 0.5166 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3207, allocations: 0.7969 kB / 0.5166 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.11e-05/0.3208, allocations: 20.59 kB / 0.5166 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.3208, allocations: 7.656 kB / 0.5166 GB, free: 1.207 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.0001821/0.321, allocations: 242.7 kB / 0.5168 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-05/0.321, allocations: 25.28 kB / 0.5169 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.942e-05/0.321, allocations: 12.83 kB / 0.5169 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3211, allocations: 1.125 kB / 0.5169 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3211, allocations: 1.219 kB / 0.5169 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.3211, allocations: 101.4 kB / 0.517 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/0.3211, allocations: 8.047 kB / 0.517 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.55e-05/0.3212, allocations: 9.562 kB / 0.517 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.554e-05/0.3212, allocations: 7.562 kB / 0.517 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001185/0.3224, allocations: 1.324 MB / 0.5183 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009855/0.3234, allocations: 1.058 MB / 0.5193 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007089/0.3241, allocations: 0.9823 MB / 0.5203 GB, free: 15.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.926e-05/0.3242, allocations: 131 kB / 0.5204 GB, free: 15.36 MB / 398.1 MB Notification: Performance of Backend: time 5.01e-07/0.3243, allocations: 0 / 0.5204 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00281/0.3271, allocations: 1.722 MB / 0.5221 GB, free: 14.45 MB / 398.1 MB Notification: Performance of SimCode: time 0.001101/0.3282, allocations: 1.199 MB / 0.5233 GB, free: 13.67 MB / 398.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