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.001225/0.001225, allocations: 110 kB / 16.51 MB, free: 6.707 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.001227/0.001228, allocations: 191.9 kB / 17.43 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.404/1.404, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1797/0.1797, allocations: 38.04 MB / 329.3 MB, free: 9.074 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 60.05 kB / 398.1 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 58.07 MB / 456.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.004126/0.1076, allocations: 2.189 MB / 458.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.1095, allocations: 1.092 MB / 459.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.121e-05/0.1096, allocations: 4 kB / 459.5 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1098, allocations: 11.92 kB / 459.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.1099, allocations: 63.77 kB / 459.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007303/0.1107, allocations: 239.4 kB / 459.8 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002502/0.1109, allocations: 267.4 kB / 460 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.037e-05/0.111, allocations: 4 kB / 460 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.1111, allocations: 47.77 kB / 460.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001281/0.1112, allocations: 75.73 kB / 460.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.1113, allocations: 4 kB / 460.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005732/0.1118, allocations: 403.2 kB / 460.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.281e-05/0.1119, allocations: 43.89 kB / 460.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.706e-05/0.112, allocations: 43.72 kB / 460.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006594/0.1126, allocations: 0.5185 MB / 461.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1127, allocations: 0 / 461.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1127, allocations: 0 / 461.1 MB, free: 3.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1127, allocations: 0 / 461.1 MB, free: 3.52 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.0005191/0.1132, allocations: 460.8 kB / 461.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.1133, allocations: 16.03 kB / 461.6 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/0.1133, allocations: 20.73 kB / 461.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.1135, allocations: 184.2 kB / 461.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.1136, allocations: 4.375 kB / 461.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.1136, allocations: 4.125 kB / 461.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.1138, allocations: 97.66 kB / 461.9 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.1138, allocations: 4 kB / 461.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.1138, allocations: 0 / 461.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.1138, allocations: 0 / 461.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.114, allocations: 55.97 kB / 462 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002786/0.1142, allocations: 185.5 kB / 462.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.1145, allocations: 134.5 kB / 462.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.1147, allocations: 120.8 kB / 462.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.1147, allocations: 0 / 462.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.1148, allocations: 34.56 kB / 462.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.1148, allocations: 0 / 462.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005458/0.1153, allocations: 295.5 kB / 462.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.1154, allocations: 93.09 kB / 462.8 MB, free: 1.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.1156, allocations: 136 kB / 463 MB, free: 1.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.1156, allocations: 25.7 kB / 463 MB, free: 1.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.1157, allocations: 92.47 kB / 463.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.1158, allocations: 70.98 kB / 463.1 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/0.1159, allocations: 25.72 kB / 463.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.116, allocations: 322.8 kB / 463.5 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.984e-05/0.1161, allocations: 63.98 kB / 463.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.938e-05/0.1162, allocations: 58.72 kB / 463.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/0.1164, allocations: 224.2 kB / 463.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1164, allocations: 3.938 kB / 463.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003096/0.1167, allocations: 231 kB / 464 MB, free: 372 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.802e-05/0.1169, allocations: 53.67 kB / 464.1 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.1169, allocations: 3.984 kB / 464.1 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.1169, allocations: 7.938 kB / 464.1 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.1169, allocations: 3.984 kB / 464.1 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1169, allocations: 0 / 464.1 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.65e-05/0.117, allocations: 12 kB / 464.1 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.117, allocations: 4 kB / 464.1 MB, free: 280 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.0001519/0.1172, allocations: 183.4 kB / 464.3 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.1172, allocations: 15.81 kB / 464.3 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.771e-05/0.1172, allocations: 9.172 kB / 464.3 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1172, allocations: 0 / 464.3 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1172, allocations: 4 kB / 464.3 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1173, allocations: 0 / 464.3 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.1175, allocations: 197.4 kB / 464.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1175, allocations: 4 kB / 464.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.304e-06/0.1175, allocations: 3.984 kB / 464.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1175, allocations: 0 / 464.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.1175, allocations: 8 kB / 464.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1175, allocations: 0 / 464.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1175, allocations: 0 / 464.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005195/0.118, allocations: 385.4 kB / 464.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.936e-05/0.1181, allocations: 92.86 kB / 465 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/0.1181, allocations: 12.02 kB / 465 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.995e-05/0.1182, allocations: 8 kB / 465 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.913e-05/0.1182, allocations: 4 kB / 465 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.1182, allocations: 4 kB / 465 MB, free: 15.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.801e-05/0.1183, allocations: 103.3 kB / 465.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1183, allocations: 0 / 465.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005452/0.1189, allocations: 128 kB / 465.3 MB, free: 15.03 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.0004912/0.1194, allocations: 201 kB / 465.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006647/0.1201, allocations: 0.5695 MB / 466 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1201, allocations: 0 / 466 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003816/0.1205, allocations: 463.3 kB / 466.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.1208, allocations: 23.91 kB / 466.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006871/0.1215, allocations: 422.5 kB / 466.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.1218, allocations: 0.7199 MB / 467.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.095e-05/0.1219, allocations: 4 kB / 467.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.693e-05/0.1219, allocations: 11.44 kB / 467.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1219, allocations: 3.938 kB / 467.7 MB, free: 12.55 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].