Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001487/0.001488, allocations: 181 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008064/0.0008064, allocations: 84.16 kB / 270.8 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1821/0.1821, allocations: 38.06 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003524, allocations: 8 kB / 424 MB, free: 37.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2846, allocations: 56.31 MB / 480.3 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1215/0.4061, allocations: 92.62 MB / 0.5595 GB, free: 9.816 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.4064, allocations: 87.94 kB / 0.5596 GB, free: 9.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03937/0.4458, allocations: 11.95 MB / 0.5712 GB, free: 13.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4458, allocations: 0 / 0.5712 GB, free: 13.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.4458, allocations: 4 kB / 0.5712 GB, free: 13.77 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007538/0.4466, allocations: 0.5238 MB / 0.5718 GB, free: 13.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.4466, allocations: 12.02 kB / 0.5718 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.558e-05/0.4467, allocations: 7.906 kB / 0.5718 GB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.4468, allocations: 186.8 kB / 0.572 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.4468, allocations: 4 kB / 0.572 GB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.4469, allocations: 4 kB / 0.572 GB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.447, allocations: 61.66 kB / 0.572 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.447, allocations: 0 / 0.572 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.447, allocations: 0 / 0.572 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.447, allocations: 0 / 0.572 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.331e-05/0.4471, allocations: 16 kB / 0.572 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001272/0.4472, allocations: 173.5 kB / 0.5722 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.575e-05/0.4473, allocations: 47.19 kB / 0.5723 GB, free: 12.58 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.801e-06/0.4473, allocations: 4 kB / 0.5723 GB, free: 12.58 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.4473, allocations: 34.59 kB / 0.5723 GB, free: 12.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.4473, allocations: 0 / 0.5723 GB, free: 12.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002671/0.4476, allocations: 232.5 kB / 0.5725 GB, free: 12.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.4476, allocations: 85.11 kB / 0.5726 GB, free: 12.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.316e-05/0.4477, allocations: 109 kB / 0.5727 GB, free: 12.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.4477, allocations: 29.7 kB / 0.5727 GB, free: 12.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.166e-05/0.4478, allocations: 92.08 kB / 0.5728 GB, free: 11.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.4478, allocations: 35.58 kB / 0.5728 GB, free: 11.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.4478, allocations: 0 / 0.5728 GB, free: 11.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.3e-05/0.4479, allocations: 318.8 kB / 0.5731 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.344e-05/0.448, allocations: 23.98 kB / 0.5732 GB, free: 11.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.758e-05/0.448, allocations: 19.98 kB / 0.5732 GB, free: 11.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.723e-05/0.4481, allocations: 65.62 kB / 0.5733 GB, free: 11.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4481, allocations: 0 / 0.5733 GB, free: 11.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001298/0.4482, allocations: 115.4 kB / 0.5734 GB, free: 11.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.4483, allocations: 45.69 kB / 0.5734 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.4483, allocations: 4.062 kB / 0.5734 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.4483, allocations: 0 / 0.5734 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.4483, allocations: 4 kB / 0.5734 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.4483, allocations: 0 / 0.5734 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.969e-05/0.4483, allocations: 3.906 kB / 0.5734 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.4484, allocations: 4 kB / 0.5734 GB, free: 11.27 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.836e-05/0.4485, allocations: 159.5 kB / 0.5736 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.4485, allocations: 11.84 kB / 0.5736 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.629e-05/0.4485, allocations: 8.375 kB / 0.5736 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.4485, allocations: 4 kB / 0.5736 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.4485, allocations: 4 kB / 0.5736 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-06/0.4485, allocations: 0 / 0.5736 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.794e-05/0.4486, allocations: 173.5 kB / 0.5738 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.4486, allocations: 0 / 0.5738 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.613e-06/0.4487, allocations: 4 kB / 0.5738 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.4487, allocations: 0 / 0.5738 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.122e-05/0.4487, allocations: 4 kB / 0.5738 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.4487, allocations: 3.938 kB / 0.5738 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.4487, allocations: 0 / 0.5738 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002241/0.4489, allocations: 226.6 kB / 0.574 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.449, allocations: 84.97 kB / 0.5741 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.449, allocations: 4 kB / 0.5741 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.198e-05/0.449, allocations: 0 / 0.5741 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.959e-05/0.4491, allocations: 4 kB / 0.5741 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.4491, allocations: 4 kB / 0.5741 GB, free: 10.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.792e-05/0.4491, allocations: 91.27 kB / 0.5742 GB, free: 10.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4491, allocations: 3.938 kB / 0.5742 GB, free: 10.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008972/0.45, allocations: 363.6 kB / 0.5745 GB, free: 10.03 MB / 410.7 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 (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.0007904/0.4508, allocations: 406.5 kB / 0.5749 GB, free: 9.629 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002217/0.4511, allocations: 199.3 kB / 0.5751 GB, free: 9.422 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4511, allocations: 0 / 0.5751 GB, free: 9.422 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.4512, allocations: 147.4 kB / 0.5752 GB, free: 9.266 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.4513, allocations: 12.06 kB / 0.5753 GB, free: 9.254 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003437/0.4517, allocations: 271 kB / 0.5755 GB, free: 8.961 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002089/0.4519, allocations: 0.7004 MB / 0.5762 GB, free: 8.234 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.427e-05/0.4519, allocations: 0 / 0.5762 GB, free: 8.234 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.879e-06/0.4519, allocations: 11.44 kB / 0.5762 GB, free: 8.227 MB / 410.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4519, allocations: 0 / 0.5762 GB, free: 8.227 MB / 410.7 MB [CodegenCFunctions.tpl:5437:13-5437:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].