Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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 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_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_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.00141/0.00141, allocations: 112.8 kB / 17.07 MB, free: 5.945 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.001825/0.001825, allocations: 194.8 kB / 18 MB, free: 5.039 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.457/1.457, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1746/0.1746, allocations: 38.05 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.001331, allocations: 59.89 kB / 458.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.411, allocations: 58.05 MB / 0.5041 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003173/0.4142, allocations: 2.098 MB / 0.5062 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002924/0.4172, allocations: 2.041 MB / 0.5082 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.326e-05/0.4172, allocations: 1.312 kB / 0.5082 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.4174, allocations: 13.81 kB / 0.5082 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.4175, allocations: 33.08 kB / 0.5082 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0023/0.4198, allocations: 0.8292 MB / 0.509 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001427/0.42, allocations: 77.95 kB / 0.5091 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.287e-05/0.4201, allocations: 16.66 kB / 0.5091 GB, free: 4.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.218e-05/0.4201, allocations: 32.61 kB / 0.5091 GB, free: 4.828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.182e-05/0.4202, allocations: 49.2 kB / 0.5092 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.4203, allocations: 2.312 kB / 0.5092 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002169/0.4224, allocations: 1.4 MB / 0.5106 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.321e-05/0.4225, allocations: 26.34 kB / 0.5106 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.905e-05/0.4226, allocations: 40.31 kB / 0.5106 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00208/0.4246, allocations: 1.363 MB / 0.5119 GB, free: 4.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.4247, allocations: 0 / 0.5119 GB, free: 4.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.4247, allocations: 0 / 0.5119 GB, free: 4.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.4247, allocations: 1.156 kB / 0.512 GB, free: 4.09 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006448/0.4253, allocations: 0.5555 MB / 0.5125 GB, free: 3.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.4254, allocations: 9.656 kB / 0.5125 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.803e-05/0.4254, allocations: 14.55 kB / 0.5125 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001698/0.4256, allocations: 204.8 kB / 0.5127 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.274e-06/0.4256, allocations: 0 / 0.5127 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.4256, allocations: 8.516 kB / 0.5127 GB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001795/0.4258, allocations: 96.03 kB / 0.5128 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.4258, allocations: 0 / 0.5128 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.4259, allocations: 1.125 kB / 0.5128 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.4259, allocations: 0 / 0.5128 GB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.178e-05/0.426, allocations: 61.62 kB / 0.5129 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001408/0.4261, allocations: 188.2 kB / 0.5131 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.4262, allocations: 105.5 kB / 0.5132 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.723e-05/0.4263, allocations: 95 kB / 0.5132 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.699e-06/0.4264, allocations: 1.125 kB / 0.5132 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.414e-05/0.4264, allocations: 31.22 kB / 0.5133 GB, free: 2.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 9.12e-07/0.4264, allocations: 1.125 kB / 0.5133 GB, free: 2.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006213/0.427, allocations: 319.2 kB / 0.5136 GB, free: 2.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.4271, allocations: 102.6 kB / 0.5137 GB, free: 2.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.4272, allocations: 154.2 kB / 0.5138 GB, free: 2.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.4272, allocations: 27.2 kB / 0.5138 GB, free: 2.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/0.4273, allocations: 102.9 kB / 0.5139 GB, free: 2.492 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.362e-05/0.4273, allocations: 79.44 kB / 0.514 GB, free: 2.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-05/0.4274, allocations: 27.91 kB / 0.514 GB, free: 2.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.371e-05/0.4275, allocations: 329.3 kB / 0.5144 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.344e-05/0.4276, allocations: 61.22 kB / 0.5144 GB, free: 2.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.571e-05/0.4276, allocations: 60.3 kB / 0.5145 GB, free: 2.066 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.4279, allocations: 256.2 kB / 0.5147 GB, free: 1.965 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4279, allocations: 0 / 0.5147 GB, free: 1.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002935/0.4282, allocations: 238.7 kB / 0.515 GB, free: 1.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.283e-05/0.4283, allocations: 63.52 kB / 0.515 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.4283, allocations: 9.562 kB / 0.515 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.4283, allocations: 0.6562 kB / 0.515 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.4283, allocations: 0 / 0.515 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.4283, allocations: 0 / 0.515 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.811e-05/0.4284, allocations: 14.47 kB / 0.515 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.4284, allocations: 6.125 kB / 0.515 GB, free: 1.812 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.0001776/0.4286, allocations: 199.7 kB / 0.5152 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.4287, allocations: 21.25 kB / 0.5153 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.252e-05/0.4287, allocations: 10.95 kB / 0.5153 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.4287, allocations: 0.5312 kB / 0.5153 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.4287, allocations: 0.5 kB / 0.5153 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.4287, allocations: 0 / 0.5153 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.4289, allocations: 208.2 kB / 0.5155 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.4289, allocations: 1.312 kB / 0.5155 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.4289, allocations: 0.5 kB / 0.5155 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.4289, allocations: 0.5312 kB / 0.5155 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.4289, allocations: 10.06 kB / 0.5155 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.4289, allocations: 4 kB / 0.5155 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4289, allocations: 0.5625 kB / 0.5155 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008262/0.4298, allocations: 0.5241 MB / 0.516 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.668e-05/0.4298, allocations: 93.95 kB / 0.5161 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.4299, allocations: 4.281 kB / 0.5161 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.484e-05/0.4299, allocations: 3.781 kB / 0.5161 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.4299, allocations: 7.422 kB / 0.5161 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.43, allocations: 7.562 kB / 0.5161 GB, free: 1.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.284e-05/0.43, allocations: 120.9 kB / 0.5162 GB, free: 1.035 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.43, allocations: 0 / 0.5162 GB, free: 1.035 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001258/0.4313, allocations: 337.7 kB / 0.5165 GB, free: 0.9922 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.0009142/0.4322, allocations: 367.4 kB / 0.5169 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000689/0.4329, allocations: 0.7102 MB / 0.5176 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4329, allocations: 5.406 kB / 0.5176 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004466/0.4334, allocations: 0.572 MB / 0.5181 GB, free: 200 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.4336, allocations: 14.09 kB / 0.5182 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007448/0.4344, allocations: 475.6 kB / 0.5186 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.4347, allocations: 0.7254 MB / 0.5193 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.496e-05/0.4348, allocations: 13.67 kB / 0.5193 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.358e-05/0.4348, allocations: 8.5 kB / 0.5193 GB, free: 15.26 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4348, allocations: 1.156 kB / 0.5193 GB, free: 15.26 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].