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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 106.5 kB / 270.5 MB, free: 8.418 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1735/0.1735, allocations: 38 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3325, allocations: 55.23 MB / 477.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003586/0.3361, allocations: 2.159 MB / 479.2 MB, free: 8.383 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004407/0.3406, allocations: 2.218 MB / 481.5 MB, free: 6.926 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.633e-05/0.3407, allocations: 0 / 481.5 MB, free: 6.926 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.3408, allocations: 10.67 kB / 481.5 MB, free: 6.922 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.341, allocations: 26.98 kB / 481.5 MB, free: 6.91 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00201/0.343, allocations: 0.6835 MB / 482.2 MB, free: 6.672 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.3432, allocations: 122.3 kB / 482.3 MB, free: 6.641 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.443e-05/0.3433, allocations: 3.453 kB / 482.3 MB, free: 6.641 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.624e-05/0.3434, allocations: 39.14 kB / 482.3 MB, free: 6.621 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.3435, allocations: 57.69 kB / 482.4 MB, free: 6.602 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.3435, allocations: 3.656 kB / 482.4 MB, free: 6.602 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.3458, allocations: 1.233 MB / 483.6 MB, free: 6.227 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.517e-05/0.3459, allocations: 48.77 kB / 483.7 MB, free: 6.211 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.14e-05/0.346, allocations: 55.2 kB / 483.7 MB, free: 6.172 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002494/0.3485, allocations: 1.332 MB / 485.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3485, allocations: 0 / 485.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3485, allocations: 4 kB / 485.1 MB, free: 5.914 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.3485, allocations: 1.375 kB / 485.1 MB, free: 5.914 MB / 314.7 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.000788/0.3493, allocations: 0.6033 MB / 485.7 MB, free: 5.383 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.3494, allocations: 10.33 kB / 485.7 MB, free: 5.383 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.3494, allocations: 14.25 kB / 485.7 MB, free: 5.375 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.3496, allocations: 213.2 kB / 485.9 MB, free: 5.148 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.3496, allocations: 0 / 485.9 MB, free: 5.148 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.3496, allocations: 1.375 kB / 485.9 MB, free: 5.148 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.3499, allocations: 136.5 kB / 486.1 MB, free: 5.094 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3499, allocations: 4 kB / 486.1 MB, free: 5.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.3499, allocations: 1.375 kB / 486.1 MB, free: 5.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3499, allocations: 3.938 kB / 486.1 MB, free: 5.086 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.35, allocations: 95.02 kB / 486.2 MB, free: 5.066 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.3502, allocations: 208 kB / 486.4 MB, free: 4.852 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.3504, allocations: 158.6 kB / 486.5 MB, free: 4.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.3505, allocations: 145 kB / 486.7 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-06/0.3505, allocations: 7.938 kB / 486.7 MB, free: 4.699 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.3506, allocations: 31.55 kB / 486.7 MB, free: 4.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 1.102e-06/0.3506, allocations: 0 / 486.7 MB, free: 4.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.0007216/0.3513, allocations: 0.4955 MB / 487.2 MB, free: 4.5 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.3514, allocations: 108.3 kB / 487.3 MB, free: 4.402 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.3515, allocations: 172.9 kB / 487.5 MB, free: 4.281 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.3515, allocations: 26.89 kB / 487.5 MB, free: 4.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.391e-05/0.3516, allocations: 109.4 kB / 487.6 MB, free: 4.145 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.031e-05/0.3517, allocations: 129.6 kB / 487.7 MB, free: 4.043 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.658e-05/0.3517, allocations: 38.56 kB / 487.8 MB, free: 4.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/0.3518, allocations: 342 kB / 488.1 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.3519, allocations: 93.78 kB / 488.2 MB, free: 3.672 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.3521, allocations: 99.88 kB / 488.3 MB, free: 3.648 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004064/0.3525, allocations: 380.5 kB / 488.7 MB, free: 3.516 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3525, allocations: 0 / 488.7 MB, free: 3.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004238/0.3529, allocations: 338.9 kB / 489 MB, free: 3.391 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.319e-05/0.353, allocations: 85.5 kB / 489.1 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.353, allocations: 4.062 kB / 489.1 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3531, allocations: 0 / 489.1 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.823e-06/0.3531, allocations: 1.766 kB / 489.1 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.3531, allocations: 0 / 489.1 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.3531, allocations: 20.69 kB / 489.1 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.3532, allocations: 9.188 kB / 489.1 MB, free: 3.336 MB / 314.7 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.0002014/0.3534, allocations: 238 kB / 489.3 MB, free: 3.176 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.3534, allocations: 25.41 kB / 489.4 MB, free: 3.164 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.336e-05/0.3535, allocations: 20.41 kB / 489.4 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3535, allocations: 5 kB / 489.4 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3535, allocations: 0 / 489.4 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3535, allocations: 1.516 kB / 489.4 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.3537, allocations: 240.3 kB / 489.6 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3537, allocations: 0.8438 kB / 489.6 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-07/0.3537, allocations: 1.406 kB / 489.6 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3537, allocations: 0 / 489.6 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.3537, allocations: 11.67 kB / 489.6 MB, free: 2.922 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3537, allocations: 5.375 kB / 489.6 MB, free: 2.918 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3537, allocations: 0 / 489.6 MB, free: 2.918 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.3554, allocations: 1.807 MB / 491.4 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.609e-05/0.3555, allocations: 99.92 kB / 491.5 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.3555, allocations: 7.297 kB / 491.6 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.186e-05/0.3556, allocations: 9.062 kB / 491.6 MB, free: 1.879 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.062e-05/0.3556, allocations: 8.016 kB / 491.6 MB, free: 1.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.3556, allocations: 9.062 kB / 491.6 MB, free: 1.875 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.549e-05/0.3557, allocations: 134.1 kB / 491.7 MB, free: 1.781 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3557, allocations: 0 / 491.7 MB, free: 1.781 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001894/0.3576, allocations: 360.8 kB / 492.1 MB, free: 1.738 MB / 314.7 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.001175/0.3588, allocations: 373.7 kB / 492.4 MB, free: 1.586 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.3603, allocations: 1.59 MB / 494 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3604, allocations: 4.062 kB / 494 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/0.3615, allocations: 1.372 MB / 495.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.3618, allocations: 17.12 kB / 495.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.3631, allocations: 0.9807 MB / 496.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.3634, allocations: 0.7646 MB / 497.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 1.807e-05/0.3635, allocations: 0.6562 kB / 497.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.292e-05/0.3635, allocations: 9.812 kB / 497.2 MB, free: 14.76 MB / 330.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3635, allocations: 0 / 497.2 MB, free: 14.76 MB / 330.7 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].