Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 111.6 kB / 16.92 MB, free: 6.117 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.001192/0.001192, allocations: 191.3 kB / 17.85 MB, free: 5.277 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.393/1.393, allocations: 222.9 MB / 241.5 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1756/0.1756, allocations: 38.04 MB / 329.7 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 70.41 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09562/0.09691, allocations: 58.06 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.003355/0.1003, allocations: 2.09 MB / 459 MB, free: 5.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003014/0.1033, allocations: 2.047 MB / 461 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.422e-05/0.1034, allocations: 0 / 461 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.1035, allocations: 15.86 kB / 461 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.812e-05/0.1036, allocations: 27.83 kB / 461 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00202/0.1057, allocations: 0.8344 MB / 461.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.1058, allocations: 87.69 kB / 462 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.79e-05/0.1059, allocations: 192 / 462 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.536e-05/0.106, allocations: 35.84 kB / 462 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.082e-05/0.1061, allocations: 43.83 kB / 462 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.1061, allocations: 4 kB / 462 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.1079, allocations: 1.259 MB / 463.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.073e-05/0.1079, allocations: 31.91 kB / 463.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.474e-05/0.108, allocations: 39.61 kB / 463.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.1094, allocations: 1.345 MB / 464.7 MB, free: 164 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.1094, allocations: 0 / 464.7 MB, free: 164 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1094, allocations: 3.938 kB / 464.7 MB, free: 160 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1094, allocations: 0 / 464.7 MB, free: 160 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006226/0.11, allocations: 0.5583 MB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1101, allocations: 8.031 kB / 465.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.516e-05/0.1101, allocations: 12.75 kB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.1103, allocations: 211.6 kB / 465.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.1103, allocations: 4 kB / 465.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.1103, allocations: 7.875 kB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.1105, allocations: 100.4 kB / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.1105, allocations: 0 / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.1105, allocations: 0 / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1105, allocations: 4 kB / 465.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.856e-05/0.1106, allocations: 67.83 kB / 465.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001556/0.1108, allocations: 181.5 kB / 465.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001248/0.1109, allocations: 102.5 kB / 466 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.414e-05/0.111, allocations: 88.86 kB / 466.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.123e-06/0.111, allocations: 3.938 kB / 466.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.111, allocations: 38.55 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.172e-06/0.1111, allocations: 0 / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004051/0.1115, allocations: 315.5 kB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.1115, allocations: 101.1 kB / 466.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.1117, allocations: 152.5 kB / 466.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.1117, allocations: 25.7 kB / 466.7 MB, free: 14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.1117, allocations: 96.58 kB / 466.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.213e-05/0.1118, allocations: 78.75 kB / 466.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.595e-05/0.1119, allocations: 29.7 kB / 466.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.112, allocations: 334.8 kB / 467.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.789e-05/0.1121, allocations: 59.97 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.529e-05/0.1121, allocations: 63.91 kB / 467.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.1124, allocations: 263.6 kB / 467.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1124, allocations: 0 / 467.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000254/0.1126, allocations: 231 kB / 467.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.689e-05/0.1127, allocations: 65.66 kB / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1127, allocations: 0 / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1127, allocations: 0 / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.1127, allocations: 0 / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.1128, allocations: 4.062 kB / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.698e-05/0.1128, allocations: 15.84 kB / 467.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.1129, allocations: 4 kB / 467.9 MB, free: 12.73 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.0001689/0.113, allocations: 199.4 kB / 468.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.1131, allocations: 15.84 kB / 468.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.754e-05/0.1131, allocations: 13.17 kB / 468.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1131, allocations: 0 / 468.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1131, allocations: 3.938 kB / 468.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1131, allocations: 0 / 468.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/0.1133, allocations: 217.4 kB / 468.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1133, allocations: 0 / 468.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1133, allocations: 0 / 468.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1133, allocations: 3.984 kB / 468.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.1133, allocations: 7.938 kB / 468.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.1133, allocations: 4 kB / 468.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1133, allocations: 0 / 468.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005312/0.1139, allocations: 0.5211 MB / 468.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.621e-05/0.1139, allocations: 92.86 kB / 469 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.114, allocations: 8.031 kB / 469 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.856e-05/0.114, allocations: 4 kB / 469 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/0.114, allocations: 4 kB / 469 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.114, allocations: 8 kB / 469 MB, free: 11.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.304e-05/0.1141, allocations: 115.2 kB / 469.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1141, allocations: 3.938 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000713/0.1149, allocations: 332 kB / 469.4 MB, free: 11.09 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.0008568/0.1157, allocations: 373.8 kB / 469.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006321/0.1164, allocations: 0.7139 MB / 470.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1164, allocations: 4 kB / 470.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004288/0.1168, allocations: 0.5657 MB / 471.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.117, allocations: 12 kB / 471.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00066/0.1177, allocations: 469.7 kB / 471.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.118, allocations: 0.7317 MB / 472.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.312e-05/0.118, allocations: 0 / 472.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.1181, allocations: 7.438 kB / 472.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1181, allocations: 0 / 472.3 MB, free: 8.148 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].