Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 112.2 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.001211/0.001211, allocations: 190.5 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.343/1.343, allocations: 222.9 MB / 241.1 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1932/0.1932, allocations: 38.03 MB / 329.3 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 64.62 kB / 398.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1117, allocations: 58.06 MB / 456.2 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003754/0.1155, allocations: 2.189 MB / 458.3 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003669/0.1192, allocations: 2.183 MB / 460.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.565e-05/0.1193, allocations: 0 / 460.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.1195, allocations: 11.92 kB / 460.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.1197, allocations: 35.81 kB / 460.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.1216, allocations: 0.6826 MB / 461.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.1218, allocations: 183.6 kB / 461.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.956e-05/0.1219, allocations: 7.984 kB / 461.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.512e-05/0.122, allocations: 31.8 kB / 461.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.1221, allocations: 67.73 kB / 461.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.1221, allocations: 0 / 461.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.1241, allocations: 1.22 MB / 462.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.078e-05/0.1242, allocations: 31.89 kB / 462.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.263e-05/0.1243, allocations: 35.73 kB / 462.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001807/0.1261, allocations: 1.275 MB / 464.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1261, allocations: 0 / 464.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1261, allocations: 0 / 464.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1261, allocations: 0 / 464.1 MB, free: 0.5156 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009457/0.1271, allocations: 0.5396 MB / 464.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1271, allocations: 11.97 kB / 464.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.367e-05/0.1272, allocations: 12.75 kB / 464.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.1274, allocations: 199 kB / 464.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.1274, allocations: 8.125 kB / 464.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.1274, allocations: 0 / 464.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.1276, allocations: 73.66 kB / 464.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.1276, allocations: 0 / 464.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.1276, allocations: 0 / 464.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1276, allocations: 0 / 464.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.07e-05/0.1277, allocations: 43.92 kB / 465 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002981/0.128, allocations: 181.5 kB / 465.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.1281, allocations: 78.48 kB / 465.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.264e-05/0.1282, allocations: 60.88 kB / 465.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.1282, allocations: 3.984 kB / 465.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.1282, allocations: 30.56 kB / 465.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.1282, allocations: 0 / 465.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004302/0.1287, allocations: 229.9 kB / 465.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/0.1288, allocations: 85.11 kB / 465.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.129, allocations: 154.1 kB / 465.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.129, allocations: 33.67 kB / 465.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.909e-05/0.1291, allocations: 100.4 kB / 465.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.173e-05/0.1292, allocations: 43.36 kB / 466 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.33e-05/0.1293, allocations: 25.7 kB / 466 MB, free: 14.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1295, allocations: 326.8 kB / 466.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.1296, allocations: 31.98 kB / 466.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.1297, allocations: 43.97 kB / 466.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/0.13, allocations: 176.4 kB / 466.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.13, allocations: 7.969 kB / 466.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003371/0.1304, allocations: 174.6 kB / 466.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.949e-05/0.1304, allocations: 53.67 kB / 466.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1305, allocations: 0 / 466.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.1305, allocations: 0 / 466.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.1305, allocations: 0 / 466.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.1305, allocations: 0 / 466.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.693e-05/0.1306, allocations: 11.84 kB / 466.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.1306, allocations: 4 kB / 466.8 MB, free: 13.56 MB / 350.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.0002027/0.1309, allocations: 179.5 kB / 467 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.1309, allocations: 7.906 kB / 467 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.027e-05/0.1309, allocations: 12.84 kB / 467 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.131, allocations: 0 / 467 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.131, allocations: 7.984 kB / 467 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.131, allocations: 0 / 467 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.1312, allocations: 189.5 kB / 467.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1312, allocations: 0 / 467.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.629e-06/0.1312, allocations: 4 kB / 467.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1312, allocations: 0 / 467.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.1313, allocations: 4 kB / 467.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1313, allocations: 4 kB / 467.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1313, allocations: 0 / 467.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003971/0.1317, allocations: 302.5 kB / 467.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.1317, allocations: 92.86 kB / 467.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.1318, allocations: 4 kB / 467.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.243e-05/0.1318, allocations: 4 kB / 467.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.156e-05/0.1319, allocations: 3.984 kB / 467.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.1319, allocations: 4 kB / 467.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.769e-05/0.132, allocations: 125.7 kB / 467.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.132, allocations: 0 / 467.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001017/0.133, allocations: 331.9 kB / 468 MB, free: 12.2 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.001219/0.1342, allocations: 367.6 kB / 468.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003831/0.1346, allocations: 335.3 kB / 468.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.1346, allocations: 3.938 kB / 468.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002312/0.1349, allocations: 259.2 kB / 469 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.1352, allocations: 17.56 kB / 469 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005715/0.1358, allocations: 379.2 kB / 469.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.1361, allocations: 0.7121 MB / 470.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.795e-05/0.1361, allocations: 0 / 470.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.391e-05/0.1361, allocations: 11.44 kB / 470.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1361, allocations: 4 kB / 470.1 MB, free: 10.06 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].