Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 108.8 kB / 17.06 MB, free: 6.023 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.001321/0.001322, allocations: 191 kB / 18 MB, free: 5.109 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.463/1.463, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1838/0.1838, allocations: 38.05 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 63.91 kB / 458.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4165/0.4182, allocations: 58.05 MB / 0.5041 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003218/0.4215, allocations: 2.153 MB / 0.5062 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.4228, allocations: 1.066 MB / 0.5073 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.157e-05/0.4229, allocations: 5 kB / 0.5073 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.4231, allocations: 15.02 kB / 0.5073 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.4232, allocations: 57.69 kB / 0.5073 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008087/0.424, allocations: 287.7 kB / 0.5076 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.4242, allocations: 113.5 kB / 0.5077 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.4243, allocations: 7.359 kB / 0.5077 GB, free: 5.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.617e-05/0.4244, allocations: 53.08 kB / 0.5078 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.4245, allocations: 67.97 kB / 0.5078 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.4245, allocations: 1.25 kB / 0.5078 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006236/0.4251, allocations: 414.3 kB / 0.5082 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.593e-05/0.4252, allocations: 37.95 kB / 0.5083 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.056e-05/0.4253, allocations: 37.12 kB / 0.5083 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007012/0.426, allocations: 0.516 MB / 0.5088 GB, free: 5.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.426, allocations: 0 / 0.5088 GB, free: 5.156 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.426, allocations: 0 / 0.5088 GB, free: 5.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.426, allocations: 2.344 kB / 0.5088 GB, free: 5.156 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004042/0.4264, allocations: 464.6 kB / 0.5093 GB, free: 4.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.4265, allocations: 14.83 kB / 0.5093 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.4265, allocations: 12.62 kB / 0.5093 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.4266, allocations: 191.5 kB / 0.5095 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.4267, allocations: 2.469 kB / 0.5095 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.4267, allocations: 6.094 kB / 0.5095 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.4268, allocations: 96.95 kB / 0.5096 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.4269, allocations: 0 / 0.5096 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.4269, allocations: 1.062 kB / 0.5096 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.4269, allocations: 1.953 kB / 0.5096 GB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.091e-05/0.427, allocations: 61.39 kB / 0.5096 GB, free: 4.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001218/0.4271, allocations: 180.5 kB / 0.5098 GB, free: 4.215 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.4272, allocations: 133.8 kB / 0.5099 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.4273, allocations: 122.2 kB / 0.51 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.765e-06/0.4273, allocations: 1.344 kB / 0.51 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.691e-05/0.4274, allocations: 36.12 kB / 0.5101 GB, free: 4.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 8.51e-07/0.4274, allocations: 0 / 0.5101 GB, free: 4.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004519/0.4278, allocations: 294.9 kB / 0.5104 GB, free: 3.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.4279, allocations: 91.08 kB / 0.5104 GB, free: 3.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.237e-05/0.428, allocations: 141.2 kB / 0.5106 GB, free: 3.703 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.428, allocations: 26.83 kB / 0.5106 GB, free: 3.672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.931e-05/0.428, allocations: 97.91 kB / 0.5107 GB, free: 3.578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.4281, allocations: 60.17 kB / 0.5108 GB, free: 3.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.4281, allocations: 27.22 kB / 0.5108 GB, free: 3.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.496e-05/0.4282, allocations: 326 kB / 0.5111 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.045e-05/0.4283, allocations: 53.86 kB / 0.5111 GB, free: 3.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-05/0.4284, allocations: 64.16 kB / 0.5112 GB, free: 3.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.4286, allocations: 229.9 kB / 0.5114 GB, free: 3.062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4286, allocations: 0 / 0.5114 GB, free: 3.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002562/0.4289, allocations: 229.5 kB / 0.5116 GB, free: 2.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.442e-05/0.4289, allocations: 56.69 kB / 0.5117 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.4289, allocations: 1.188 kB / 0.5117 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.429, allocations: 0 / 0.5117 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.763e-06/0.429, allocations: 0.75 kB / 0.5117 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.429, allocations: 5.016 kB / 0.5117 GB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.567e-05/0.429, allocations: 12.25 kB / 0.5117 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.4291, allocations: 6.438 kB / 0.5117 GB, free: 2.91 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.0001285/0.4292, allocations: 185.1 kB / 0.5119 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.423e-05/0.4292, allocations: 14.34 kB / 0.5119 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.775e-05/0.4293, allocations: 12.2 kB / 0.5119 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.4293, allocations: 2.031 kB / 0.5119 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4293, allocations: 0 / 0.5119 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.4293, allocations: 0 / 0.5119 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.4294, allocations: 195 kB / 0.5121 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.4294, allocations: 0 / 0.5121 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.372e-06/0.4294, allocations: 0.8438 kB / 0.5121 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.4294, allocations: 5.062 kB / 0.5121 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.4294, allocations: 9.594 kB / 0.5121 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.4294, allocations: 0 / 0.5121 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4295, allocations: 1.188 kB / 0.5121 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000493/0.43, allocations: 391 kB / 0.5125 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.43, allocations: 94.44 kB / 0.5126 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.43, allocations: 4.094 kB / 0.5126 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.735e-05/0.4301, allocations: 2.625 kB / 0.5126 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.226e-05/0.4301, allocations: 11.81 kB / 0.5126 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.4301, allocations: 6.625 kB / 0.5126 GB, free: 2.242 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.197e-05/0.4302, allocations: 102.3 kB / 0.5127 GB, free: 2.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4302, allocations: 7.875 kB / 0.5127 GB, free: 2.156 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005303/0.4307, allocations: 134.7 kB / 0.5128 GB, free: 2.141 MB / 382.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.0004277/0.4312, allocations: 181.8 kB / 0.513 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005872/0.4318, allocations: 0.572 MB / 0.5136 GB, free: 1.711 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4318, allocations: 0 / 0.5136 GB, free: 1.711 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003548/0.4321, allocations: 468.5 kB / 0.514 GB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.4324, allocations: 21.17 kB / 0.514 GB, free: 1.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006244/0.433, allocations: 392.2 kB / 0.5144 GB, free: 1.219 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001728/0.4332, allocations: 0.7217 MB / 0.5151 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.82e-05/0.4332, allocations: 2.656 kB / 0.5151 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.248e-05/0.4332, allocations: 8.656 kB / 0.5151 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4332, allocations: 0 / 0.5151 GB, free: 0.5078 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].