Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001461/0.001461, allocations: 109.9 kB / 17.06 MB, free: 6.012 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.001573/0.001573, allocations: 191 kB / 18 MB, free: 5.094 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1778/0.1778, allocations: 38.02 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 59.89 kB / 458.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3652, allocations: 58.06 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003241/0.3684, allocations: 2.102 MB / 0.5062 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.3714, allocations: 2.045 MB / 0.5082 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.799e-05/0.3715, allocations: 4 kB / 0.5082 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.3716, allocations: 11.5 kB / 0.5082 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.113e-05/0.3717, allocations: 31.78 kB / 0.5082 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002715/0.3745, allocations: 0.8361 MB / 0.509 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.3746, allocations: 82.03 kB / 0.5091 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.815e-05/0.3747, allocations: 4.984 kB / 0.5091 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.633e-05/0.3748, allocations: 37.17 kB / 0.5091 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.014e-05/0.3749, allocations: 42.83 kB / 0.5092 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.3749, allocations: 2.281 kB / 0.5092 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002279/0.3772, allocations: 1.404 MB / 0.5105 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.085e-05/0.3773, allocations: 26.94 kB / 0.5106 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.348e-05/0.3773, allocations: 39.86 kB / 0.5106 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002051/0.3794, allocations: 1.353 MB / 0.5119 GB, free: 3.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3794, allocations: 0 / 0.5119 GB, free: 3.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3794, allocations: 0 / 0.5119 GB, free: 3.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3794, allocations: 0 / 0.5119 GB, free: 3.844 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.0006891/0.3801, allocations: 0.5651 MB / 0.5125 GB, free: 3.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3802, allocations: 13.52 kB / 0.5125 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.455e-05/0.3802, allocations: 13.09 kB / 0.5125 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.3804, allocations: 209.6 kB / 0.5127 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.843e-06/0.3804, allocations: 0 / 0.5127 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.3804, allocations: 1.094 kB / 0.5127 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.3806, allocations: 98.58 kB / 0.5128 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.3806, allocations: 1.375 kB / 0.5128 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.3806, allocations: 0 / 0.5128 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3806, allocations: 7.938 kB / 0.5128 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.28e-05/0.3807, allocations: 63.2 kB / 0.5129 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.3809, allocations: 188.3 kB / 0.5131 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.381, allocations: 101.1 kB / 0.5132 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.457e-05/0.3811, allocations: 91.22 kB / 0.5132 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.3811, allocations: 1.125 kB / 0.5132 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/0.3811, allocations: 36.38 kB / 0.5133 GB, free: 2.684 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.3811, allocations: 0 / 0.5133 GB, free: 2.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005141/0.3817, allocations: 324.3 kB / 0.5136 GB, free: 2.566 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/0.3817, allocations: 95.09 kB / 0.5137 GB, free: 2.473 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.3819, allocations: 154.6 kB / 0.5138 GB, free: 2.359 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.3819, allocations: 25.7 kB / 0.5138 GB, free: 2.328 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.804e-05/0.3819, allocations: 103.4 kB / 0.5139 GB, free: 2.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.357e-05/0.382, allocations: 79.89 kB / 0.514 GB, free: 2.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.844e-05/0.3821, allocations: 29.02 kB / 0.514 GB, free: 2.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.813e-05/0.3821, allocations: 332.2 kB / 0.5144 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.194e-05/0.3822, allocations: 61.55 kB / 0.5144 GB, free: 1.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.364e-05/0.3823, allocations: 61.17 kB / 0.5145 GB, free: 1.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.3825, allocations: 258.6 kB / 0.5147 GB, free: 1.695 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3826, allocations: 1.25 kB / 0.5147 GB, free: 1.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002672/0.3828, allocations: 233.7 kB / 0.515 GB, free: 1.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.897e-05/0.3829, allocations: 64.06 kB / 0.515 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.3829, allocations: 0 / 0.515 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.3829, allocations: 1.312 kB / 0.515 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.543e-06/0.3829, allocations: 5.094 kB / 0.515 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.383, allocations: 0.9375 kB / 0.515 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.101e-05/0.383, allocations: 13.19 kB / 0.515 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.3831, allocations: 6.531 kB / 0.515 GB, free: 1.551 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.0001807/0.3832, allocations: 199.1 kB / 0.5152 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.712e-05/0.3833, allocations: 17.22 kB / 0.5152 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.164e-05/0.3833, allocations: 9.984 kB / 0.5153 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3833, allocations: 1.234 kB / 0.5153 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3834, allocations: 0.5312 kB / 0.5153 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3834, allocations: 4.5 kB / 0.5153 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.3835, allocations: 210.6 kB / 0.5155 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3835, allocations: 2.391 kB / 0.5155 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.353e-06/0.3835, allocations: 0.5312 kB / 0.5155 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3835, allocations: 0.5625 kB / 0.5155 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.3836, allocations: 9 kB / 0.5155 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3836, allocations: 3.938 kB / 0.5155 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3836, allocations: 0.5 kB / 0.5155 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007676/0.3843, allocations: 0.5262 MB / 0.516 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.637e-05/0.3844, allocations: 93.89 kB / 0.5161 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.011e-05/0.3844, allocations: 4.469 kB / 0.5161 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.239e-05/0.3845, allocations: 7.531 kB / 0.5161 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.3845, allocations: 3.594 kB / 0.5161 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.3845, allocations: 6.531 kB / 0.5161 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.978e-05/0.3846, allocations: 113.4 kB / 0.5162 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3846, allocations: 0 / 0.5162 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001146/0.3858, allocations: 334 kB / 0.5165 GB, free: 0.7383 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.0008783/0.3867, allocations: 374.8 kB / 0.5169 GB, free: 0.582 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006776/0.3873, allocations: 0.7153 MB / 0.5176 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3874, allocations: 0 / 0.5176 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004207/0.3878, allocations: 0.571 MB / 0.5181 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.388, allocations: 12.78 kB / 0.5182 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007415/0.3888, allocations: 471.7 kB / 0.5186 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.3891, allocations: 0.7295 MB / 0.5193 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.437e-05/0.3891, allocations: 1.875 kB / 0.5193 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.481e-05/0.3891, allocations: 8.781 kB / 0.5193 GB, free: 15.01 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3891, allocations: 3.938 kB / 0.5193 GB, free: 15.01 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].