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/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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 100.9 kB / 17.06 MB, free: 6.145 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.001284/0.001284, allocations: 195 kB / 18 MB, free: 5.219 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.465/1.465, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1766/0.1766, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 63.89 kB / 458.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4345/0.4362, allocations: 58.05 MB / 0.5041 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003664/0.4399, allocations: 2.115 MB / 0.5062 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002961/0.4429, allocations: 2.04 MB / 0.5082 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.484e-05/0.4429, allocations: 5.219 kB / 0.5082 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.4431, allocations: 10.31 kB / 0.5082 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.973e-05/0.4432, allocations: 34.31 kB / 0.5082 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002292/0.4455, allocations: 0.8264 MB / 0.509 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.4457, allocations: 79.12 kB / 0.5091 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.737e-05/0.4457, allocations: 7.375 kB / 0.5091 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.481e-05/0.4458, allocations: 32.55 kB / 0.5091 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.851e-05/0.4459, allocations: 47.25 kB / 0.5092 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.446, allocations: 6.875 kB / 0.5092 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00217/0.4481, allocations: 1.408 MB / 0.5106 GB, free: 4.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-05/0.4482, allocations: 44.7 kB / 0.5106 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.576e-05/0.4483, allocations: 47.14 kB / 0.5106 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002133/0.4504, allocations: 1.384 MB / 0.512 GB, free: 3.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.4504, allocations: 0 / 0.512 GB, free: 3.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4505, allocations: 3.938 kB / 0.512 GB, free: 3.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.4505, allocations: 0 / 0.512 GB, free: 3.863 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.000708/0.4512, allocations: 0.6083 MB / 0.5126 GB, free: 3.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.4512, allocations: 13.45 kB / 0.5126 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.778e-05/0.4513, allocations: 19.14 kB / 0.5126 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.4515, allocations: 207.6 kB / 0.5128 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.4515, allocations: 1.188 kB / 0.5128 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.4515, allocations: 2.031 kB / 0.5128 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.4518, allocations: 139.4 kB / 0.513 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.4518, allocations: 0 / 0.513 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.4518, allocations: 4.062 kB / 0.513 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.4518, allocations: 4 kB / 0.513 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.452, allocations: 101.2 kB / 0.5131 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001998/0.4522, allocations: 211 kB / 0.5133 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.4523, allocations: 161.9 kB / 0.5134 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.4525, allocations: 147.7 kB / 0.5136 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.4525, allocations: 0.7969 kB / 0.5136 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.4525, allocations: 35.91 kB / 0.5136 GB, free: 2.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.322e-06/0.4526, allocations: 0 / 0.5136 GB, free: 2.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007804/0.4533, allocations: 499.2 kB / 0.5141 GB, free: 2.438 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.4534, allocations: 111.8 kB / 0.5142 GB, free: 2.336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.4536, allocations: 168.4 kB / 0.5143 GB, free: 2.219 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.4536, allocations: 27.67 kB / 0.5144 GB, free: 2.188 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.581e-05/0.4536, allocations: 104.2 kB / 0.5145 GB, free: 2.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.4537, allocations: 131.2 kB / 0.5146 GB, free: 1.988 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/0.4538, allocations: 37.02 kB / 0.5146 GB, free: 1.965 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.4539, allocations: 341.8 kB / 0.515 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.454, allocations: 99.56 kB / 0.515 GB, free: 1.613 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.4542, allocations: 95.36 kB / 0.5151 GB, free: 1.594 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005355/0.4547, allocations: 379.5 kB / 0.5155 GB, free: 1.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4548, allocations: 0 / 0.5155 GB, free: 1.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005104/0.4553, allocations: 348.2 kB / 0.5158 GB, free: 1.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.56e-05/0.4554, allocations: 85.05 kB / 0.5159 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.4554, allocations: 4.844 kB / 0.5159 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.4554, allocations: 0 / 0.5159 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.4554, allocations: 4.969 kB / 0.5159 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.4554, allocations: 3.984 kB / 0.5159 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.847e-05/0.4555, allocations: 20.88 kB / 0.5159 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.661e-05/0.4556, allocations: 10.61 kB / 0.516 GB, free: 1.266 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.0002065/0.4558, allocations: 232.8 kB / 0.5162 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.4558, allocations: 25.34 kB / 0.5162 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.245e-05/0.4558, allocations: 17.69 kB / 0.5162 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.4558, allocations: 1.469 kB / 0.5162 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4559, allocations: 0 / 0.5162 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4559, allocations: 4 kB / 0.5162 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.456, allocations: 236.5 kB / 0.5165 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.456, allocations: 0.8906 kB / 0.5165 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-07/0.456, allocations: 0 / 0.5165 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.4561, allocations: 1.062 kB / 0.5165 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.4561, allocations: 7.578 kB / 0.5165 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.4561, allocations: 1.156 kB / 0.5165 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4561, allocations: 0 / 0.5165 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.4573, allocations: 0.9234 MB / 0.5174 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.4574, allocations: 99.91 kB / 0.5175 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.4574, allocations: 5.156 kB / 0.5175 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.076e-05/0.4575, allocations: 6.688 kB / 0.5175 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.306e-05/0.4575, allocations: 8.203 kB / 0.5175 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.4576, allocations: 12.59 kB / 0.5175 GB, free: 496 kB / 382.1 MB Notification: Performance of sorting global known variables: time 9.341e-05/0.4577, allocations: 131.1 kB / 0.5176 GB, free: 404 kB / 382.1 MB Notification: Performance of sort global known variables: time 9.52e-07/0.4577, allocations: 1.438 kB / 0.5176 GB, free: 404 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001602/0.4593, allocations: 353.7 kB / 0.518 GB, free: 360 kB / 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.001051/0.4603, allocations: 381.4 kB / 0.5183 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.4622, allocations: 1.597 MB / 0.5199 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4622, allocations: 0 / 0.5199 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001283/0.4635, allocations: 1.372 MB / 0.5212 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.4638, allocations: 14.05 kB / 0.5212 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.4649, allocations: 0.6702 MB / 0.5219 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.4654, allocations: 0.7525 MB / 0.5226 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.774e-05/0.4654, allocations: 1.438 kB / 0.5226 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.177e-05/0.4655, allocations: 8.781 kB / 0.5226 GB, free: 13.61 MB / 398.1 MB Notification: Performance of SimCode: time 2.655e-06/0.4655, allocations: 0 / 0.5226 GB, free: 13.61 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].