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.0009421/0.0009421, allocations: 86.28 kB / 16.31 MB, free: 6.449 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.001037/0.001037, allocations: 181.2 kB / 17.21 MB, free: 6.32 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.227/1.227, allocations: 223.3 MB / 241.2 MB, free: 5.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2669/0.2669, allocations: 38.08 MB / 330.4 MB, free: 14.04 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002931, allocations: 8 kB / 400.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2408, allocations: 59.17 MB / 459.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.001752/0.2426, allocations: 1.808 MB / 461 MB, free: 29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.2448, allocations: 1.921 MB / 463 MB, free: 27.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.919e-05/0.2448, allocations: 1.031 kB / 463 MB, free: 27.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.245, allocations: 9.062 kB / 463 MB, free: 27.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.762e-05/0.2451, allocations: 40.28 kB / 463 MB, free: 27.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.2465, allocations: 0.6329 MB / 463.6 MB, free: 27.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000165/0.2467, allocations: 140.5 kB / 463.8 MB, free: 27.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.235e-05/0.2468, allocations: 7.906 kB / 463.8 MB, free: 27.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.355e-05/0.2469, allocations: 39.89 kB / 463.8 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.247, allocations: 56.98 kB / 463.9 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.247, allocations: 6.188 kB / 463.9 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00166/0.2487, allocations: 1.035 MB / 464.9 MB, free: 27.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.294e-05/0.2487, allocations: 34.38 kB / 465 MB, free: 27.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.034e-05/0.2488, allocations: 36.14 kB / 465 MB, free: 27.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.25, allocations: 0.9136 MB / 465.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.25, allocations: 0 / 465.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.25, allocations: 0.9375 kB / 465.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.25, allocations: 3.938 kB / 465.9 MB, free: 26.96 MB / 350.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.000466/0.2505, allocations: 0.5381 MB / 466.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.2505, allocations: 9.281 kB / 466.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.365e-05/0.2506, allocations: 8.875 kB / 466.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.2507, allocations: 191.4 kB / 466.7 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.2507, allocations: 1.375 kB / 466.7 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.2507, allocations: 6.344 kB / 466.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.2509, allocations: 75.8 kB / 466.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2509, allocations: 0 / 466.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.2509, allocations: 0 / 466.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.2509, allocations: 1.281 kB / 466.7 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.269e-05/0.251, allocations: 36.52 kB / 466.8 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.2511, allocations: 184.9 kB / 467 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.491e-05/0.2512, allocations: 72.33 kB / 467 MB, free: 25.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.383e-05/0.2513, allocations: 68.02 kB / 467.1 MB, free: 25.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-06/0.2513, allocations: 0 / 467.1 MB, free: 25.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2513, allocations: 31.12 kB / 467.1 MB, free: 25.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.042e-06/0.2513, allocations: 1.031 kB / 467.1 MB, free: 25.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003384/0.2517, allocations: 219.6 kB / 467.3 MB, free: 25.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.2517, allocations: 87.72 kB / 467.4 MB, free: 25.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.976e-05/0.2518, allocations: 154.5 kB / 467.6 MB, free: 25.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.2518, allocations: 27.02 kB / 467.6 MB, free: 25.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.349e-05/0.2519, allocations: 102.1 kB / 467.7 MB, free: 25.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.2519, allocations: 48.78 kB / 467.8 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.2519, allocations: 0 / 467.8 MB, free: 25.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.433e-05/0.252, allocations: 330.7 kB / 468.1 MB, free: 25.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.06e-05/0.2521, allocations: 37.47 kB / 468.1 MB, free: 25.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.34e-05/0.2521, allocations: 45.98 kB / 468.2 MB, free: 25.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.258e-05/0.2522, allocations: 85.42 kB / 468.2 MB, free: 25.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2522, allocations: 0.7969 kB / 468.2 MB, free: 25.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002009/0.2525, allocations: 180 kB / 468.4 MB, free: 24.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.566e-05/0.2525, allocations: 49.31 kB / 468.5 MB, free: 24.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.2525, allocations: 0.8438 kB / 468.5 MB, free: 24.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.2525, allocations: 0 / 468.5 MB, free: 24.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.383e-06/0.2525, allocations: 5.406 kB / 468.5 MB, free: 24.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2526, allocations: 0.6562 kB / 468.5 MB, free: 24.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.731e-05/0.2526, allocations: 6.594 kB / 468.5 MB, free: 24.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.2526, allocations: 5.875 kB / 468.5 MB, free: 24.89 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.972e-05/0.2527, allocations: 167.5 kB / 468.6 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.92e-05/0.2528, allocations: 20.36 kB / 468.7 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.444e-05/0.2528, allocations: 9.203 kB / 468.7 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2528, allocations: 0.7031 kB / 468.7 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2528, allocations: 3.938 kB / 468.7 MB, free: 24.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.2528, allocations: 1.156 kB / 468.7 MB, free: 24.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.895e-05/0.2529, allocations: 198.6 kB / 468.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.2529, allocations: 0 / 468.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.2529, allocations: 6.125 kB / 468.9 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2529, allocations: 3.953 kB / 468.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.2529, allocations: 3.281 kB / 468.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.253, allocations: 2.188 kB / 468.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.253, allocations: 4 kB / 468.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003375/0.2533, allocations: 291.8 kB / 469.2 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.874e-05/0.2533, allocations: 93.44 kB / 469.3 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.2534, allocations: 10.95 kB / 469.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.514e-05/0.2534, allocations: 2.562 kB / 469.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.2534, allocations: 3.703 kB / 469.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.2534, allocations: 3.906 kB / 469.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.724e-05/0.2535, allocations: 121.3 kB / 469.4 MB, free: 24.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2535, allocations: 0 / 469.4 MB, free: 24.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008486/0.2544, allocations: 317.5 kB / 469.7 MB, free: 24.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008352/0.2552, allocations: 359.9 kB / 470.1 MB, free: 23.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003962/0.2556, allocations: 332.8 kB / 470.4 MB, free: 23.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2556, allocations: 4.062 kB / 470.4 MB, free: 23.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001956/0.2558, allocations: 256.8 kB / 470.7 MB, free: 23.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.2561, allocations: 15.53 kB / 470.7 MB, free: 23.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005094/0.2566, allocations: 382 kB / 471 MB, free: 23.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000145/0.2568, allocations: 0.7163 MB / 471.8 MB, free: 22.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.392e-05/0.2568, allocations: 1.156 kB / 471.8 MB, free: 22.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.106e-06/0.2568, allocations: 8.594 kB / 471.8 MB, free: 22.74 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2568, allocations: 5.156 kB / 471.8 MB, free: 22.73 MB / 350.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].