Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|tc_d.1.|tc_d.2.|tc_q.1.|tc_q.2.|to_d.1.|to_d.2.|to_q.1.|to_q.2.|xtr_d.1.|xtr_d.2.|xtr_q.1.|xtr_q.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 111.5 kB / 16.63 MB, free: 6.961 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.001335/0.001335, allocations: 190 kB / 17.55 MB, free: 6.066 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.343/1.343, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1713/0.1713, allocations: 38.05 MB / 329.4 MB, free: 9.066 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 67.61 kB / 398.3 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1062, allocations: 58.06 MB / 456.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003606/0.1099, allocations: 2.197 MB / 458.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.1114, allocations: 1.068 MB / 459.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.903e-05/0.1115, allocations: 0 / 459.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.1117, allocations: 19.91 kB / 459.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.1118, allocations: 51.8 kB / 459.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009349/0.1127, allocations: 255.5 kB / 459.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.1129, allocations: 123.5 kB / 460.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.414e-05/0.113, allocations: 8 kB / 460.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.1131, allocations: 47.81 kB / 460.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.1132, allocations: 75.73 kB / 460.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.1132, allocations: 4 kB / 460.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006214/0.1139, allocations: 411.2 kB / 460.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.699e-05/0.1139, allocations: 39.89 kB / 460.6 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.581e-05/0.114, allocations: 43.67 kB / 460.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006669/0.1147, allocations: 0.5107 MB / 461.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1147, allocations: 0 / 461.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1147, allocations: 0 / 461.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.1147, allocations: 0 / 461.2 MB, free: 3.605 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005247/0.1152, allocations: 456.8 kB / 461.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.1153, allocations: 19.89 kB / 461.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.1154, allocations: 12.75 kB / 461.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.1155, allocations: 188.1 kB / 461.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.1156, allocations: 8.312 kB / 461.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.1156, allocations: 4.125 kB / 461.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.1158, allocations: 93.66 kB / 461.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1158, allocations: 0 / 461.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.1158, allocations: 0 / 461.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1158, allocations: 0 / 461.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.763e-05/0.1159, allocations: 55.97 kB / 462 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001947/0.1161, allocations: 189.5 kB / 462.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.1163, allocations: 130.5 kB / 462.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.1164, allocations: 120.8 kB / 462.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.1164, allocations: 4 kB / 462.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.1165, allocations: 30.56 kB / 462.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.453e-06/0.1165, allocations: 0 / 462.5 MB, free: 2.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005064/0.117, allocations: 291.5 kB / 462.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.1171, allocations: 101.1 kB / 462.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.1172, allocations: 136.3 kB / 463 MB, free: 1.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.1172, allocations: 25.7 kB / 463 MB, free: 1.566 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/0.1173, allocations: 96.45 kB / 463.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.752e-05/0.1173, allocations: 66.94 kB / 463.2 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.464e-05/0.1174, allocations: 25.72 kB / 463.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1175, allocations: 326.8 kB / 463.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.95e-05/0.1176, allocations: 59.95 kB / 463.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.026e-05/0.1177, allocations: 55.97 kB / 463.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.1179, allocations: 227.1 kB / 463.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1179, allocations: 0 / 463.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002818/0.1182, allocations: 231 kB / 464.1 MB, free: 468 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.936e-05/0.1183, allocations: 53.67 kB / 464.1 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.1183, allocations: 0 / 464.1 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1183, allocations: 8 kB / 464.1 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.365e-06/0.1183, allocations: 3.984 kB / 464.1 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1184, allocations: 0 / 464.1 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.971e-05/0.1184, allocations: 12 kB / 464.1 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.1185, allocations: 8 kB / 464.2 MB, free: 376 kB / 334.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.00015/0.1186, allocations: 183.4 kB / 464.3 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.1186, allocations: 15.81 kB / 464.3 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.844e-05/0.1187, allocations: 9.188 kB / 464.4 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.1187, allocations: 11.92 kB / 464.4 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1187, allocations: 0 / 464.4 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1187, allocations: 0 / 464.4 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.1189, allocations: 193.4 kB / 464.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1189, allocations: 4 kB / 464.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1189, allocations: 0 / 464.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1189, allocations: 4 kB / 464.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.1189, allocations: 7.984 kB / 464.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.1189, allocations: 0 / 464.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1189, allocations: 0 / 464.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.1194, allocations: 389.2 kB / 465 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.548e-05/0.1194, allocations: 92.86 kB / 465 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.1195, allocations: 4 kB / 465 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.18e-05/0.1195, allocations: 8.031 kB / 465.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.889e-05/0.1196, allocations: 11.98 kB / 465.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.1196, allocations: 4 kB / 465.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.501e-05/0.1197, allocations: 99.27 kB / 465.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1197, allocations: 0 / 465.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004468/0.1201, allocations: 132 kB / 465.3 MB, free: 15.12 MB / 350.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.0004198/0.1205, allocations: 187.1 kB / 465.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005374/0.1211, allocations: 0.5695 MB / 466 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1211, allocations: 0 / 466 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003458/0.1214, allocations: 471.2 kB / 466.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.1217, allocations: 30.98 kB / 466.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006291/0.1223, allocations: 412.9 kB / 466.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.1226, allocations: 0.7158 MB / 467.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.811e-05/0.1226, allocations: 0 / 467.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.663e-05/0.1227, allocations: 15.44 kB / 467.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1227, allocations: 3.938 kB / 467.7 MB, free: 12.65 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].