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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001129/0.001135, 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.651/1.651, allocations: 205.1 MB / 223.1 MB, free: 8.48 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.001357/0.001358, allocations: 105.5 kB / 270.5 MB, free: 8.449 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1788/0.1788, allocations: 38.01 MB / 355.8 MB, free: 2.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 51.92 kB / 421.9 MB, free: 37.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2913, allocations: 55.24 MB / 477.1 MB, free: 9.922 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.004187/0.2956, allocations: 2.144 MB / 479.2 MB, free: 8.406 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.2991, allocations: 2.226 MB / 481.5 MB, free: 6.941 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.2992, allocations: 0 / 481.5 MB, free: 6.941 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.2994, allocations: 10.53 kB / 481.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.2995, allocations: 25.09 kB / 481.5 MB, free: 6.926 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002485/0.302, allocations: 0.6847 MB / 482.2 MB, free: 6.688 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.3022, allocations: 130.1 kB / 482.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.341e-05/0.3023, allocations: 3.328 kB / 482.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.273e-05/0.3024, allocations: 30.59 kB / 482.4 MB, free: 6.637 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.056e-05/0.3025, allocations: 48.94 kB / 482.4 MB, free: 6.621 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.3025, allocations: 3 kB / 482.4 MB, free: 6.621 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003176/0.3057, allocations: 1.249 MB / 483.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.76e-05/0.3058, allocations: 27.36 kB / 483.7 MB, free: 6.227 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.724e-05/0.3059, allocations: 36.3 kB / 483.7 MB, free: 6.203 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00347/0.3094, allocations: 1.304 MB / 485 MB, free: 5.961 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3094, allocations: 1.375 kB / 485 MB, free: 5.961 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3094, allocations: 0 / 485 MB, free: 5.961 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.3094, allocations: 0 / 485 MB, free: 5.961 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009249/0.3104, allocations: 0.5602 MB / 485.6 MB, free: 5.449 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3104, allocations: 9.625 kB / 485.6 MB, free: 5.449 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.657e-05/0.3105, allocations: 14.95 kB / 485.6 MB, free: 5.441 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.3106, allocations: 204.1 kB / 485.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.3107, allocations: 1.375 kB / 485.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.3107, allocations: 0 / 485.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.3109, allocations: 100.8 kB / 485.9 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.3109, allocations: 0 / 485.9 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.311, allocations: 0 / 485.9 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.311, allocations: 3.984 kB / 485.9 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.3111, allocations: 66.81 kB / 486 MB, free: 5.152 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001966/0.3113, allocations: 195.8 kB / 486.2 MB, free: 4.938 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.3114, allocations: 101 kB / 486.3 MB, free: 4.883 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.3115, allocations: 90.23 kB / 486.3 MB, free: 4.844 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.3116, allocations: 2.25 kB / 486.4 MB, free: 4.844 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.3116, allocations: 30.56 kB / 486.4 MB, free: 4.805 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.3116, allocations: 5.375 kB / 486.4 MB, free: 4.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005608/0.3122, allocations: 312.1 kB / 486.7 MB, free: 4.695 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.3122, allocations: 98.5 kB / 486.8 MB, free: 4.598 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.3123, allocations: 157.5 kB / 486.9 MB, free: 4.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.3124, allocations: 26.95 kB / 487 MB, free: 4.449 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.374e-05/0.3124, allocations: 102.5 kB / 487.1 MB, free: 4.352 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.03e-05/0.3125, allocations: 75.19 kB / 487.1 MB, free: 4.293 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.981e-05/0.3125, allocations: 29.28 kB / 487.2 MB, free: 4.273 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.188e-05/0.3126, allocations: 337.9 kB / 487.5 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.852e-05/0.3127, allocations: 59.38 kB / 487.6 MB, free: 3.934 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.931e-05/0.3128, allocations: 57.27 kB / 487.6 MB, free: 3.926 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.3131, allocations: 256.2 kB / 487.9 MB, free: 3.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.3131, allocations: 1.188 kB / 487.9 MB, free: 3.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000302/0.3134, allocations: 233.6 kB / 488.1 MB, free: 3.723 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.51e-05/0.3135, allocations: 67.67 kB / 488.2 MB, free: 3.684 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3135, allocations: 1.219 kB / 488.2 MB, free: 3.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.3135, allocations: 0 / 488.2 MB, free: 3.684 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.821e-06/0.3135, allocations: 1.844 kB / 488.2 MB, free: 3.684 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.3135, allocations: 8 kB / 488.2 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.89e-05/0.3136, allocations: 13.36 kB / 488.2 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.3136, allocations: 10.8 kB / 488.2 MB, free: 3.664 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.0001517/0.3138, allocations: 199.9 kB / 488.4 MB, free: 3.508 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.3138, allocations: 16.27 kB / 488.4 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.3139, allocations: 10.88 kB / 488.4 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3139, allocations: 0 / 488.4 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3139, allocations: 5.875 kB / 488.4 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3139, allocations: 0.75 kB / 488.4 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.314, allocations: 215.3 kB / 488.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.314, allocations: 0.8438 kB / 488.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.3141, allocations: 1.062 kB / 488.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.3141, allocations: 0 / 488.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.3141, allocations: 6 kB / 488.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.3141, allocations: 1.781 kB / 488.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3141, allocations: 0 / 488.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.3152, allocations: 1.272 MB / 489.9 MB, free: 2.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.453e-05/0.3153, allocations: 92.89 kB / 490 MB, free: 2.359 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.3153, allocations: 5.328 kB / 490 MB, free: 2.359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.857e-05/0.3154, allocations: 7.312 kB / 490 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-05/0.3154, allocations: 3.922 kB / 490 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.3154, allocations: 10.17 kB / 490 MB, free: 2.352 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.071e-05/0.3155, allocations: 120.6 kB / 490.1 MB, free: 2.262 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3155, allocations: 0 / 490.1 MB, free: 2.262 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001894/0.3174, allocations: 343.2 kB / 490.5 MB, free: 2.219 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.00113/0.3186, allocations: 374.5 kB / 490.8 MB, free: 2.059 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007896/0.3194, allocations: 0.7074 MB / 491.6 MB, free: 1.723 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3194, allocations: 1 kB / 491.6 MB, free: 1.723 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000479/0.3199, allocations: 0.5719 MB / 492.1 MB, free: 1.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.3201, allocations: 12.94 kB / 492.1 MB, free: 1.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008608/0.321, allocations: 0.6835 MB / 492.8 MB, free: 1.012 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.3212, allocations: 0.7369 MB / 493.6 MB, free: 320 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.439e-05/0.3213, allocations: 1.688 kB / 493.6 MB, free: 320 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.107e-05/0.3213, allocations: 12.53 kB / 493.6 MB, free: 308 kB / 314.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3213, allocations: 0 / 493.6 MB, free: 308 kB / 314.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].