Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001357/0.001357, allocations: 176.2 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.544/1.544, allocations: 205.3 MB / 214.1 MB, free: 14.07 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.0007979/0.0007978, allocations: 93.06 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1609/0.1609, allocations: 37.98 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.366e-05/2.369e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1227, allocations: 56.32 MB / 466.9 MB, free: 6.559 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3525/0.4752, allocations: 91.77 MB / 0.5456 GB, free: 3.156 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.4755, allocations: 79.95 kB / 0.5456 GB, free: 3.078 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04283/0.5183, allocations: 12.22 MB / 0.5576 GB, free: 6.855 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.726e-06/0.5184, allocations: 0 / 0.5576 GB, free: 6.855 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.5184, allocations: 3.938 kB / 0.5576 GB, free: 6.852 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0009819/0.5194, allocations: 0.6052 MB / 0.5582 GB, free: 6.195 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.5194, allocations: 16.03 kB / 0.5582 GB, free: 6.18 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.5195, allocations: 15.72 kB / 0.5582 GB, free: 6.164 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.5197, allocations: 206.7 kB / 0.5584 GB, free: 5.922 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.5197, allocations: 0 / 0.5584 GB, free: 5.922 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.5198, allocations: 4 kB / 0.5584 GB, free: 5.918 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001431/0.5199, allocations: 92.28 kB / 0.5585 GB, free: 5.824 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.5201, allocations: 134.6 kB / 0.5586 GB, free: 5.688 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.5201, allocations: 0 / 0.5586 GB, free: 5.688 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.5202, allocations: 0 / 0.5586 GB, free: 5.688 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.5202, allocations: 0 / 0.5586 GB, free: 5.688 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.5203, allocations: 178.2 kB / 0.5588 GB, free: 5.477 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.5205, allocations: 155.5 kB / 0.5589 GB, free: 5.316 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.5206, allocations: 133.2 kB / 0.5591 GB, free: 5.184 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.725e-06/0.5206, allocations: 4.75 kB / 0.5591 GB, free: 5.18 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.5207, allocations: 34.55 kB / 0.5591 GB, free: 5.137 MB / 395.1 MB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.5207, allocations: 0 / 0.5591 GB, free: 5.137 MB / 395.1 MB Notification: Performance of matching and sorting (n=40): time 0.0004326/0.5211, allocations: 279.4 kB / 0.5594 GB, free: 4.859 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.5212, allocations: 109.1 kB / 0.5595 GB, free: 4.734 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.5213, allocations: 147 kB / 0.5596 GB, free: 4.586 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.5213, allocations: 25.7 kB / 0.5596 GB, free: 4.555 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/0.5214, allocations: 108.9 kB / 0.5597 GB, free: 4.445 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.373e-05/0.5215, allocations: 126 kB / 0.5599 GB, free: 4.32 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.5215, allocations: 0 / 0.5599 GB, free: 4.32 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5216, allocations: 338.8 kB / 0.5602 GB, free: 3.98 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.269e-05/0.5217, allocations: 87.97 kB / 0.5603 GB, free: 3.895 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.098e-05/0.5218, allocations: 99.95 kB / 0.5604 GB, free: 3.797 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.522, allocations: 123.9 kB / 0.5605 GB, free: 3.676 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.522, allocations: 3.953 kB / 0.5605 GB, free: 3.672 MB / 395.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003263/0.5223, allocations: 273.5 kB / 0.5608 GB, free: 3.398 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.086e-05/0.5224, allocations: 81.64 kB / 0.5608 GB, free: 3.312 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.5224, allocations: 0 / 0.5608 GB, free: 3.312 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.5225, allocations: 0 / 0.5608 GB, free: 3.312 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.178e-06/0.5225, allocations: 7.984 kB / 0.5608 GB, free: 3.305 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.5225, allocations: 0 / 0.5608 GB, free: 3.305 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.458e-05/0.5225, allocations: 23.69 kB / 0.5609 GB, free: 3.281 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.5226, allocations: 11.94 kB / 0.5609 GB, free: 3.27 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.0001448/0.5227, allocations: 194.7 kB / 0.5611 GB, free: 3.066 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.5228, allocations: 27.75 kB / 0.5611 GB, free: 3.039 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.263e-05/0.5228, allocations: 23.39 kB / 0.5611 GB, free: 3.02 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.5228, allocations: 0 / 0.5611 GB, free: 3.02 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.5228, allocations: 0 / 0.5611 GB, free: 3.02 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.5228, allocations: 0 / 0.5611 GB, free: 3.02 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.523, allocations: 197.9 kB / 0.5613 GB, free: 2.789 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.523, allocations: 0 / 0.5613 GB, free: 2.789 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.523, allocations: 0 / 0.5613 GB, free: 2.789 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.523, allocations: 7.953 kB / 0.5613 GB, free: 2.781 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.523, allocations: 8 kB / 0.5613 GB, free: 2.773 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.523, allocations: 0 / 0.5613 GB, free: 2.773 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.523, allocations: 0 / 0.5613 GB, free: 2.773 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006454/0.5237, allocations: 0.5396 MB / 0.5618 GB, free: 2.215 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.943e-05/0.5237, allocations: 100.8 kB / 0.5619 GB, free: 2.098 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.477e-05/0.5238, allocations: 11.95 kB / 0.5619 GB, free: 2.086 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.792e-05/0.5238, allocations: 7.938 kB / 0.562 GB, free: 2.078 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.702e-05/0.5239, allocations: 12.03 kB / 0.562 GB, free: 2.066 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.5239, allocations: 12 kB / 0.562 GB, free: 2.055 MB / 395.1 MB Notification: Performance of sorting global known variables: time 6.807e-05/0.524, allocations: 123.2 kB / 0.5621 GB, free: 1.934 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.524, allocations: 0 / 0.5621 GB, free: 1.934 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001046/0.525, allocations: 395.6 kB / 0.5625 GB, free: 1.547 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.0008852/0.5259, allocations: 421.5 kB / 0.5629 GB, free: 1.129 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.5272, allocations: 1.569 MB / 0.5644 GB, free: 15.54 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.5272, allocations: 0 / 0.5644 GB, free: 15.54 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009779/0.5282, allocations: 1.362 MB / 0.5657 GB, free: 14.17 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001637/0.5284, allocations: 12.89 kB / 0.5657 GB, free: 14.16 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/0.529, allocations: 0.5284 MB / 0.5663 GB, free: 13.61 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.5293, allocations: 0.7595 MB / 0.567 GB, free: 12.82 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 1.222e-05/0.5293, allocations: 8.125 kB / 0.567 GB, free: 12.81 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.5293, allocations: 7.438 kB / 0.567 GB, free: 12.8 MB / 411.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5294, allocations: 0 / 0.567 GB, free: 12.8 MB / 411.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].