Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 113.9 kB / 17.07 MB, free: 6 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.001779/0.001779, allocations: 190.9 kB / 18 MB, free: 5.082 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.394/1.394, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1762/0.1762, allocations: 38.04 MB / 329.9 MB, free: 8.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 67.89 kB / 458.2 MB, free: 6.789 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.365, allocations: 58.04 MB / 0.5041 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003049/0.3681, allocations: 2.109 MB / 0.5062 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002713/0.3708, allocations: 2.043 MB / 0.5082 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.22e-05/0.3709, allocations: 0 / 0.5082 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.371, allocations: 12.52 kB / 0.5082 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.679e-05/0.3711, allocations: 31.94 kB / 0.5082 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002313/0.3735, allocations: 0.8318 MB / 0.509 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.3736, allocations: 76.19 kB / 0.5091 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.611e-05/0.3737, allocations: 5.594 kB / 0.5091 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.214e-05/0.3738, allocations: 36.77 kB / 0.5091 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.086e-05/0.3739, allocations: 44.77 kB / 0.5092 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.207e-05/0.3739, allocations: 1.094 kB / 0.5092 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002153/0.3761, allocations: 1.407 MB / 0.5105 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.419e-05/0.3761, allocations: 13.48 kB / 0.5106 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.864e-05/0.3762, allocations: 19.02 kB / 0.5106 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001977/0.3781, allocations: 1.309 MB / 0.5119 GB, free: 3.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3782, allocations: 1.656 kB / 0.5119 GB, free: 3.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3782, allocations: 0 / 0.5119 GB, free: 3.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.3782, allocations: 0 / 0.5119 GB, free: 3.941 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005931/0.3788, allocations: 0.5068 MB / 0.5123 GB, free: 3.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3788, allocations: 12.45 kB / 0.5124 GB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.557e-05/0.3789, allocations: 14.02 kB / 0.5124 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.379, allocations: 186.3 kB / 0.5126 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.379, allocations: 0 / 0.5126 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.3791, allocations: 1.156 kB / 0.5126 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.3792, allocations: 55.28 kB / 0.5126 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.3792, allocations: 5.125 kB / 0.5126 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.3792, allocations: 0 / 0.5126 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3792, allocations: 1.062 kB / 0.5126 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.418e-05/0.3793, allocations: 23.33 kB / 0.5126 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001059/0.3794, allocations: 178.7 kB / 0.5128 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.086e-05/0.3795, allocations: 44.77 kB / 0.5128 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.648e-05/0.3795, allocations: 34.59 kB / 0.5129 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.3795, allocations: 5.281 kB / 0.5129 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.667e-05/0.3796, allocations: 30.56 kB / 0.5129 GB, free: 2.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 2.003e-06/0.3796, allocations: 5.156 kB / 0.5129 GB, free: 2.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002559/0.3798, allocations: 155.2 kB / 0.5131 GB, free: 2.809 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.3799, allocations: 87.89 kB / 0.5131 GB, free: 2.711 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.691e-05/0.3799, allocations: 122.5 kB / 0.5133 GB, free: 2.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.696e-06/0.38, allocations: 26.89 kB / 0.5133 GB, free: 2.574 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.268e-05/0.38, allocations: 91.97 kB / 0.5134 GB, free: 2.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.38, allocations: 20.83 kB / 0.5134 GB, free: 2.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.3801, allocations: 19.25 kB / 0.5134 GB, free: 2.453 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.262e-05/0.3801, allocations: 323.2 kB / 0.5137 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.897e-05/0.3802, allocations: 23.41 kB / 0.5137 GB, free: 2.129 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.404e-05/0.3802, allocations: 22.62 kB / 0.5138 GB, free: 2.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.3803, allocations: 129.4 kB / 0.5139 GB, free: 2.043 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3803, allocations: 0 / 0.5139 GB, free: 2.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001401/0.3805, allocations: 131.3 kB / 0.514 GB, free: 1.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.3805, allocations: 45.34 kB / 0.5141 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3805, allocations: 0 / 0.5141 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.3805, allocations: 0 / 0.5141 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.3805, allocations: 0.6562 kB / 0.5141 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.3806, allocations: 1.156 kB / 0.5141 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.625e-05/0.3806, allocations: 6.562 kB / 0.5141 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.3806, allocations: 7.25 kB / 0.5141 GB, free: 1.922 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 8.003e-05/0.3807, allocations: 156.8 kB / 0.5142 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.3807, allocations: 8.594 kB / 0.5142 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.498e-05/0.3808, allocations: 11.23 kB / 0.5142 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.3808, allocations: 0 / 0.5142 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3808, allocations: 5.344 kB / 0.5143 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.3808, allocations: 0 / 0.5143 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.636e-05/0.3809, allocations: 178 kB / 0.5144 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3809, allocations: 0 / 0.5144 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-06/0.3809, allocations: 4.75 kB / 0.5144 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.3809, allocations: 5.406 kB / 0.5144 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3809, allocations: 3.172 kB / 0.5144 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.3809, allocations: 0 / 0.5144 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3809, allocations: 0 / 0.5144 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.3811, allocations: 218.2 kB / 0.5146 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.046e-05/0.3812, allocations: 86.88 kB / 0.5147 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.3812, allocations: 6 kB / 0.5147 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.471e-05/0.3812, allocations: 4.031 kB / 0.5147 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.098e-05/0.3813, allocations: 1.281 kB / 0.5147 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.3813, allocations: 4.938 kB / 0.5147 GB, free: 1.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.382e-05/0.3813, allocations: 97.45 kB / 0.5148 GB, free: 1.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3813, allocations: 0 / 0.5148 GB, free: 1.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009756/0.3823, allocations: 322.7 kB / 0.5151 GB, free: 1.195 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.0009295/0.3832, allocations: 363.7 kB / 0.5155 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002983/0.3836, allocations: 197.1 kB / 0.5157 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3836, allocations: 1.406 kB / 0.5157 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.3837, allocations: 156.3 kB / 0.5158 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.3839, allocations: 11.39 kB / 0.5158 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004608/0.3844, allocations: 251 kB / 0.5161 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.3846, allocations: 0.6978 MB / 0.5168 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.277e-05/0.3846, allocations: 4.156 kB / 0.5168 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.342e-05/0.3846, allocations: 8.531 kB / 0.5168 GB, free: 15.98 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3846, allocations: 0.5625 kB / 0.5168 GB, free: 15.98 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].