Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 109.2 kB / 17.74 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.001112/0.001112, allocations: 184.3 kB / 18.68 MB, free: 4.383 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1717/0.1717, allocations: 38.03 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.83 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2855, allocations: 58.07 MB / 0.5048 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002703/0.2882, allocations: 2.144 MB / 0.5069 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.2906, allocations: 2.043 MB / 0.5089 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.26e-05/0.2906, allocations: 1.281 kB / 0.5089 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.2907, allocations: 13.81 kB / 0.5089 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.247e-05/0.2908, allocations: 42.67 kB / 0.5089 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001791/0.2926, allocations: 0.8156 MB / 0.5097 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.2928, allocations: 97.61 kB / 0.5098 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.01e-05/0.2928, allocations: 13.38 kB / 0.5098 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.079e-05/0.2929, allocations: 40.17 kB / 0.5099 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.079e-05/0.293, allocations: 56.38 kB / 0.5099 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.293, allocations: 2.281 kB / 0.5099 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001849/0.2949, allocations: 1.381 MB / 0.5113 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.264e-05/0.2949, allocations: 36.55 kB / 0.5113 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.717e-05/0.295, allocations: 40.58 kB / 0.5114 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.2966, allocations: 1.328 MB / 0.5127 GB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2966, allocations: 1.344 kB / 0.5127 GB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2966, allocations: 3.938 kB / 0.5127 GB, free: 3.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2966, allocations: 0 / 0.5127 GB, free: 3.871 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004971/0.2971, allocations: 0.5424 MB / 0.5132 GB, free: 3.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2971, allocations: 13.69 kB / 0.5132 GB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.782e-05/0.2972, allocations: 13.19 kB / 0.5132 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.2973, allocations: 200.9 kB / 0.5134 GB, free: 3.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.2973, allocations: 9.062 kB / 0.5134 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.2974, allocations: 9.094 kB / 0.5134 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.2975, allocations: 73.14 kB / 0.5135 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.2975, allocations: 1.078 kB / 0.5135 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.2975, allocations: 1.156 kB / 0.5135 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.2976, allocations: 0 / 0.5135 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.763e-05/0.2976, allocations: 44.95 kB / 0.5135 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001165/0.2977, allocations: 177 kB / 0.5137 GB, free: 2.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.986e-05/0.2978, allocations: 80.47 kB / 0.5138 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.408e-05/0.2979, allocations: 63.95 kB / 0.5138 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.292e-06/0.2979, allocations: 0 / 0.5138 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.451e-05/0.2979, allocations: 32.75 kB / 0.5139 GB, free: 2.754 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.298, allocations: 1.641 kB / 0.5139 GB, free: 2.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003185/0.2983, allocations: 227.2 kB / 0.5141 GB, free: 2.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.2983, allocations: 88.66 kB / 0.5142 GB, free: 2.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.993e-05/0.2984, allocations: 153.6 kB / 0.5143 GB, free: 2.453 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.038e-05/0.2984, allocations: 29.73 kB / 0.5144 GB, free: 2.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.423e-05/0.2985, allocations: 98.66 kB / 0.5144 GB, free: 2.324 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.863e-05/0.2985, allocations: 48.78 kB / 0.5145 GB, free: 2.285 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.2986, allocations: 25.31 kB / 0.5145 GB, free: 2.266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.2986, allocations: 322.8 kB / 0.5148 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.004e-05/0.2987, allocations: 37.94 kB / 0.5149 GB, free: 1.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.273e-05/0.2987, allocations: 40.61 kB / 0.5149 GB, free: 1.938 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.2989, allocations: 173.3 kB / 0.5151 GB, free: 1.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2989, allocations: 4.031 kB / 0.5151 GB, free: 1.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002127/0.2991, allocations: 180.5 kB / 0.5152 GB, free: 1.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.2992, allocations: 51.55 kB / 0.5153 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.2992, allocations: 0 / 0.5153 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.2992, allocations: 0.75 kB / 0.5153 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.2992, allocations: 0 / 0.5153 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.2992, allocations: 1.156 kB / 0.5153 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.818e-05/0.2993, allocations: 3.719 kB / 0.5153 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.2993, allocations: 8.484 kB / 0.5153 GB, free: 1.719 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.0001019/0.2994, allocations: 175.5 kB / 0.5155 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.148e-05/0.2994, allocations: 15.78 kB / 0.5155 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.525e-05/0.2995, allocations: 10.69 kB / 0.5155 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.2995, allocations: 0.8906 kB / 0.5155 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2995, allocations: 3.938 kB / 0.5155 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.302e-05/0.2995, allocations: 93.12 kB / 0.5156 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.2995, allocations: 3.375 kB / 0.5156 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.496e-05/0.2996, allocations: 1.531 kB / 0.5156 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.549e-05/0.2996, allocations: 11.53 kB / 0.5156 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003442/0.2999, allocations: 430.1 kB / 0.516 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003803/0.3003, allocations: 435.4 kB / 0.5164 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001777/0.3005, allocations: 172.5 kB / 0.5166 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.714e-05/0.3006, allocations: 115.3 kB / 0.5167 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of Backend: time 1.8e-07/0.3006, allocations: 0 / 0.5167 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.3019, allocations: 0.604 MB / 0.5173 GB, free: 468 kB / 382.1 MB Notification: Performance of SimCode: time 0.0005585/0.3025, allocations: 0.7897 MB / 0.5181 GB, free: 15.74 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.EqCircFromTransDat could not be translated