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.001146/0.001146, allocations: 115.2 kB / 16.63 MB, free: 6.336 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.001179/0.001179, allocations: 189.4 kB / 17.55 MB, free: 5.801 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.309/1.309, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1983/0.1983, allocations: 38.04 MB / 329.4 MB, free: 9.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 66.55 kB / 398.3 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.107, allocations: 58.06 MB / 456.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003453/0.1105, allocations: 2.143 MB / 458.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002848/0.1134, allocations: 2.059 MB / 460.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.131e-05/0.1134, allocations: 0 / 460.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.1136, allocations: 11.92 kB / 460.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.132e-05/0.1137, allocations: 23.84 kB / 460.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001741/0.1154, allocations: 0.7454 MB / 461.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.1156, allocations: 87.67 kB / 461.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.761e-05/0.1156, allocations: 192 / 461.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.421e-05/0.1157, allocations: 39.84 kB / 461.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.976e-05/0.1158, allocations: 55.75 kB / 461.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.428e-05/0.1158, allocations: 11.98 kB / 461.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00149/0.1173, allocations: 1.255 MB / 462.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.743e-05/0.1174, allocations: 43.84 kB / 462.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.958e-05/0.1174, allocations: 59.48 kB / 462.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.1187, allocations: 1.294 MB / 464.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1187, allocations: 0 / 464.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1187, allocations: 4 kB / 464.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.1187, allocations: 4 kB / 464.2 MB, free: 0.5547 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0006423/0.1193, allocations: 0.6018 MB / 464.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.1194, allocations: 15.83 kB / 464.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.246e-05/0.1194, allocations: 20.66 kB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.1196, allocations: 215.5 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.032e-06/0.1196, allocations: 0 / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.1197, allocations: 0 / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001838/0.1198, allocations: 138.5 kB / 465.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.109e-06/0.1199, allocations: 0 / 465.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.1199, allocations: 11.98 kB / 465.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1199, allocations: 7.938 kB / 465.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001048/0.12, allocations: 100.3 kB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001665/0.1202, allocations: 209.6 kB / 465.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.1203, allocations: 154.5 kB / 465.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.1205, allocations: 148.8 kB / 465.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.42e-06/0.1205, allocations: 3.938 kB / 465.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1205, allocations: 38.56 kB / 465.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.042e-06/0.1205, allocations: 0 / 465.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005991/0.1211, allocations: 491.5 kB / 466.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.1212, allocations: 109.1 kB / 466.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.1213, allocations: 166.9 kB / 466.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.1214, allocations: 29.7 kB / 466.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.603e-05/0.1214, allocations: 104.8 kB / 466.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.476e-05/0.1215, allocations: 130.1 kB / 466.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.409e-05/0.1216, allocations: 37.73 kB / 466.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.1217, allocations: 338.8 kB / 467.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.1218, allocations: 95.95 kB / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.1219, allocations: 100.9 kB / 467.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.1223, allocations: 380.3 kB / 467.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1223, allocations: 0 / 467.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003565/0.1226, allocations: 338.9 kB / 468.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.969e-05/0.1227, allocations: 89.62 kB / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.1227, allocations: 0 / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.1227, allocations: 4.062 kB / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.1228, allocations: 0 / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1228, allocations: 0 / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.327e-05/0.1228, allocations: 23.69 kB / 468.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.333e-05/0.1229, allocations: 8 kB / 468.2 MB, free: 12.25 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.0001935/0.1231, allocations: 235.4 kB / 468.4 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.584e-05/0.1232, allocations: 27.81 kB / 468.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.658e-05/0.1232, allocations: 18.58 kB / 468.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.1232, allocations: 0 / 468.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.1232, allocations: 4 kB / 468.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.1232, allocations: 0 / 468.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.1234, allocations: 245.2 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1234, allocations: 0 / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1234, allocations: 3.938 kB / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1234, allocations: 0 / 468.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.1234, allocations: 8 kB / 468.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1234, allocations: 0 / 468.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1234, allocations: 0 / 468.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009256/0.1243, allocations: 0.9198 MB / 469.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.382e-05/0.1244, allocations: 100.7 kB / 469.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.1245, allocations: 8 kB / 469.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.303e-05/0.1245, allocations: 8 kB / 469.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.913e-05/0.1245, allocations: 8 kB / 469.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.1246, allocations: 8 kB / 469.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.165e-05/0.1247, allocations: 132.2 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.422e-06/0.1247, allocations: 0 / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007153/0.1254, allocations: 355.9 kB / 470.3 MB, free: 10.08 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.0008389/0.1262, allocations: 373.8 kB / 470.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.1276, allocations: 1.6 MB / 472.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1276, allocations: 0 / 472.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.1286, allocations: 1.374 MB / 473.6 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.1289, allocations: 16.12 kB / 473.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009149/0.1298, allocations: 0.7327 MB / 474.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.1301, allocations: 0.7556 MB / 475.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.198e-05/0.1301, allocations: 0 / 475.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.319e-05/0.1301, allocations: 7.438 kB / 475.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1302, allocations: 0 / 475.1 MB, free: 5.145 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].