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.001224/0.001225, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.00113/0.00113, allocations: 195.9 kB / 18 MB, free: 5.098 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.434/1.434, 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.1804/0.1804, allocations: 38.05 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 67.88 kB / 458.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4259/0.4283, allocations: 58.04 MB / 0.5041 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.004414/0.4328, allocations: 2.157 MB / 0.5062 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.4347, allocations: 1.057 MB / 0.5073 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.4348, allocations: 5.156 kB / 0.5073 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.435, allocations: 18.95 kB / 0.5073 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.4352, allocations: 54.7 kB / 0.5073 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001344/0.4366, allocations: 281.7 kB / 0.5076 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002773/0.4369, allocations: 114.8 kB / 0.5077 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.762e-05/0.4369, allocations: 7.594 kB / 0.5077 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.4371, allocations: 52.09 kB / 0.5078 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.4373, allocations: 67.02 kB / 0.5078 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.4373, allocations: 7.438 kB / 0.5078 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009357/0.4382, allocations: 422.2 kB / 0.5082 GB, free: 5.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.003e-05/0.4383, allocations: 34.3 kB / 0.5083 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.401e-05/0.4384, allocations: 37.05 kB / 0.5083 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.4394, allocations: 0.5065 MB / 0.5088 GB, free: 5.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4394, allocations: 1.312 kB / 0.5088 GB, free: 5.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4394, allocations: 0 / 0.5088 GB, free: 5.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.4394, allocations: 0 / 0.5088 GB, free: 5.113 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.000569/0.44, allocations: 469.3 kB / 0.5092 GB, free: 4.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.4401, allocations: 14.17 kB / 0.5093 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.794e-05/0.4401, allocations: 17.78 kB / 0.5093 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.4403, allocations: 186.8 kB / 0.5095 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.684e-06/0.4403, allocations: 1.5 kB / 0.5095 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.4403, allocations: 9.031 kB / 0.5095 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.4405, allocations: 102.8 kB / 0.5096 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.964e-06/0.4405, allocations: 0 / 0.5096 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.4406, allocations: 1.969 kB / 0.5096 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4406, allocations: 5.125 kB / 0.5096 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.4407, allocations: 57.41 kB / 0.5096 GB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001795/0.4409, allocations: 188 kB / 0.5098 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.441, allocations: 126.1 kB / 0.5099 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.4412, allocations: 123.9 kB / 0.51 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.856e-06/0.4412, allocations: 0 / 0.51 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.4412, allocations: 35.62 kB / 0.5101 GB, free: 3.973 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.363e-06/0.4412, allocations: 0 / 0.5101 GB, free: 3.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005685/0.4418, allocations: 295.7 kB / 0.5104 GB, free: 3.859 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.4418, allocations: 95.05 kB / 0.5105 GB, free: 3.762 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.4419, allocations: 133.5 kB / 0.5106 GB, free: 3.656 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.442, allocations: 27.05 kB / 0.5106 GB, free: 3.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.356e-05/0.442, allocations: 96.23 kB / 0.5107 GB, free: 3.531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.637e-05/0.4421, allocations: 56.83 kB / 0.5107 GB, free: 3.488 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-05/0.4421, allocations: 26.89 kB / 0.5108 GB, free: 3.469 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.668e-05/0.4422, allocations: 327 kB / 0.5111 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.142e-05/0.4423, allocations: 61.56 kB / 0.5111 GB, free: 3.133 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.726e-05/0.4424, allocations: 60.89 kB / 0.5112 GB, free: 3.121 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.4426, allocations: 229.1 kB / 0.5114 GB, free: 3.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4426, allocations: 0 / 0.5114 GB, free: 3.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002575/0.4429, allocations: 225 kB / 0.5116 GB, free: 2.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.629e-05/0.443, allocations: 56.86 kB / 0.5117 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.443, allocations: 0.6094 kB / 0.5117 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.443, allocations: 1.156 kB / 0.5117 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.443, allocations: 0 / 0.5117 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.443, allocations: 0.5625 kB / 0.5117 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.42e-05/0.4431, allocations: 16.69 kB / 0.5117 GB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/0.4431, allocations: 7.328 kB / 0.5117 GB, free: 2.867 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.0001277/0.4432, allocations: 184.1 kB / 0.5119 GB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.4433, allocations: 13.41 kB / 0.5119 GB, free: 2.707 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.81e-05/0.4433, allocations: 12.3 kB / 0.5119 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.4433, allocations: 1.062 kB / 0.5119 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4433, allocations: 0 / 0.5119 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4433, allocations: 1.922 kB / 0.5119 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.4435, allocations: 194 kB / 0.5121 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4435, allocations: 4 kB / 0.5121 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.383e-06/0.4435, allocations: 0.5156 kB / 0.5121 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4435, allocations: 0 / 0.5121 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.4435, allocations: 9.547 kB / 0.5121 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.4435, allocations: 9.312 kB / 0.5121 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4435, allocations: 4.5 kB / 0.5121 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004463/0.444, allocations: 381.1 kB / 0.5125 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.444, allocations: 93.72 kB / 0.5126 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.444, allocations: 8.453 kB / 0.5126 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.492e-05/0.4441, allocations: 3.906 kB / 0.5126 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.4441, allocations: 6.984 kB / 0.5126 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.4441, allocations: 9.469 kB / 0.5126 GB, free: 2.195 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.751e-05/0.4442, allocations: 107.2 kB / 0.5127 GB, free: 2.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4442, allocations: 3.938 kB / 0.5127 GB, free: 2.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006374/0.4448, allocations: 129.8 kB / 0.5128 GB, free: 2.098 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.0005485/0.4454, allocations: 187.5 kB / 0.513 GB, free: 1.988 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005765/0.446, allocations: 0.5691 MB / 0.5136 GB, free: 1.668 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.446, allocations: 0 / 0.5136 GB, free: 1.668 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003259/0.4463, allocations: 472.8 kB / 0.514 GB, free: 1.371 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.4466, allocations: 21.75 kB / 0.514 GB, free: 1.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006415/0.4472, allocations: 394.4 kB / 0.5144 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/0.4474, allocations: 0.7193 MB / 0.5151 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.508e-05/0.4475, allocations: 2.047 kB / 0.5151 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.249e-05/0.4475, allocations: 8.781 kB / 0.5151 GB, free: 472 kB / 382.1 MB Notification: Performance of SimCode: time 4.6e-07/0.4475, allocations: 0 / 0.5151 GB, free: 472 kB / 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].