Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009444/0.0009447, allocations: 80.2 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1617/0.1617, allocations: 38 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.863e-05/1.865e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3662/0.4746, allocations: 91.76 MB / 0.5456 GB, free: 3.18 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4748, allocations: 75.95 kB / 0.5456 GB, free: 3.105 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04206/0.5169, allocations: 11.9 MB / 0.5573 GB, free: 7.207 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.5169, allocations: 4 kB / 0.5573 GB, free: 7.203 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.517, allocations: 0 / 0.5573 GB, free: 7.203 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0008509/0.5178, allocations: 0.5275 MB / 0.5578 GB, free: 6.625 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.5179, allocations: 15.95 kB / 0.5578 GB, free: 6.609 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.5179, allocations: 11.81 kB / 0.5578 GB, free: 6.598 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.5181, allocations: 200.5 kB / 0.558 GB, free: 6.363 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.5181, allocations: 0 / 0.558 GB, free: 6.363 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.5182, allocations: 0 / 0.558 GB, free: 6.363 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.514e-05/0.5183, allocations: 27.98 kB / 0.558 GB, free: 6.336 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.5184, allocations: 65.67 kB / 0.5581 GB, free: 6.266 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.5184, allocations: 4 kB / 0.5581 GB, free: 6.262 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.5184, allocations: 0 / 0.5581 GB, free: 6.262 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.5184, allocations: 0 / 0.5581 GB, free: 6.262 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.5186, allocations: 142.2 kB / 0.5582 GB, free: 6.086 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.502e-05/0.5186, allocations: 55.25 kB / 0.5583 GB, free: 6.023 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.22e-05/0.5187, allocations: 44.88 kB / 0.5583 GB, free: 5.977 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.5187, allocations: 3.938 kB / 0.5583 GB, free: 5.973 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.5187, allocations: 38.55 kB / 0.5584 GB, free: 5.926 MB / 395.1 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.5188, allocations: 224 / 0.5584 GB, free: 5.926 MB / 395.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002974/0.5191, allocations: 117.5 kB / 0.5585 GB, free: 5.805 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.5191, allocations: 89.09 kB / 0.5586 GB, free: 5.699 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.5192, allocations: 117.6 kB / 0.5587 GB, free: 5.574 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.5192, allocations: 25.7 kB / 0.5587 GB, free: 5.543 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.5193, allocations: 88.14 kB / 0.5588 GB, free: 5.453 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.628e-05/0.5193, allocations: 43.36 kB / 0.5588 GB, free: 5.41 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-06/0.5194, allocations: 32 / 0.5588 GB, free: 5.41 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.5195, allocations: 326.8 kB / 0.5591 GB, free: 5.082 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.422e-05/0.5195, allocations: 27.98 kB / 0.5592 GB, free: 5.055 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.797e-05/0.5196, allocations: 27.98 kB / 0.5592 GB, free: 5.027 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.5197, allocations: 43.97 kB / 0.5592 GB, free: 4.984 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.5197, allocations: 3.953 kB / 0.5592 GB, free: 4.98 MB / 395.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002061/0.5199, allocations: 117.4 kB / 0.5593 GB, free: 4.859 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/0.52, allocations: 45.69 kB / 0.5594 GB, free: 4.809 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.52, allocations: 0 / 0.5594 GB, free: 4.809 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.52, allocations: 4 kB / 0.5594 GB, free: 4.805 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.388e-06/0.52, allocations: 12.05 kB / 0.5594 GB, free: 4.793 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.52, allocations: 0 / 0.5594 GB, free: 4.793 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.665e-05/0.5201, allocations: 3.938 kB / 0.5594 GB, free: 4.789 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.5201, allocations: 4 kB / 0.5594 GB, free: 4.785 MB / 395.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.5202, allocations: 150.7 kB / 0.5596 GB, free: 4.625 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.959e-05/0.5202, allocations: 11.86 kB / 0.5596 GB, free: 4.613 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.831e-05/0.5203, allocations: 12.61 kB / 0.5596 GB, free: 4.602 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.5203, allocations: 0 / 0.5596 GB, free: 4.602 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.5203, allocations: 0 / 0.5596 GB, free: 4.602 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.5203, allocations: 4 kB / 0.5596 GB, free: 4.598 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.5204, allocations: 158 kB / 0.5597 GB, free: 4.406 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.5204, allocations: 0 / 0.5597 GB, free: 4.406 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.5204, allocations: 0 / 0.5597 GB, free: 4.406 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.5204, allocations: 3.953 kB / 0.5597 GB, free: 4.402 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.5205, allocations: 8 kB / 0.5597 GB, free: 4.395 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.5205, allocations: 0 / 0.5597 GB, free: 4.395 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5205, allocations: 0 / 0.5597 GB, free: 4.395 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.5208, allocations: 219 kB / 0.56 GB, free: 4.164 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.5208, allocations: 92.94 kB / 0.56 GB, free: 4.055 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.5209, allocations: 7.953 kB / 0.56 GB, free: 4.047 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.777e-05/0.5209, allocations: 0 / 0.56 GB, free: 4.047 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.135e-05/0.5209, allocations: 4 kB / 0.5601 GB, free: 4.043 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.5209, allocations: 4 kB / 0.5601 GB, free: 4.039 MB / 395.1 MB Notification: Performance of sorting global known variables: time 6.588e-05/0.521, allocations: 103.3 kB / 0.5602 GB, free: 3.938 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.521, allocations: 0 / 0.5602 GB, free: 3.938 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.000973/0.522, allocations: 355.6 kB / 0.5605 GB, free: 3.59 MB / 395.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001225/0.5232, allocations: 422.3 kB / 0.5609 GB, free: 3.168 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0003119/0.5236, allocations: 283.3 kB / 0.5612 GB, free: 2.879 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.5236, allocations: 0 / 0.5612 GB, free: 2.879 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.5238, allocations: 223.3 kB / 0.5614 GB, free: 2.648 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001427/0.5239, allocations: 4 kB / 0.5614 GB, free: 2.645 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003573/0.5243, allocations: 208.3 kB / 0.5616 GB, free: 2.418 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.5246, allocations: 0.708 MB / 0.5623 GB, free: 1.684 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 1.322e-05/0.5246, allocations: 4 kB / 0.5623 GB, free: 1.68 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.075e-05/0.5246, allocations: 7.438 kB / 0.5623 GB, free: 1.676 MB / 395.1 MB Notification: Performance of SimCode: time 2.81e-07/0.5246, allocations: 0 / 0.5623 GB, free: 1.676 MB / 395.1 MB [CodegenCFunctions.tpl:4892:15-4892:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].