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.001/0.001, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.5/1.5, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008694/0.0008692, allocations: 82.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1674/0.1674, allocations: 37.98 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.526e-05/2.53e-05, allocations: 8 kB / 417.7 MB, free: 29.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.0885, allocations: 56.32 MB / 474.1 MB, free: 4.812 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3646/0.4532, allocations: 92.43 MB / 0.5532 GB, free: 9.578 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.4534, allocations: 84.19 kB / 0.5533 GB, free: 9.531 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04191/0.4954, allocations: 12.28 MB / 0.5653 GB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.4954, allocations: 0 / 0.5653 GB, free: 15.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.4955, allocations: 3.938 kB / 0.5653 GB, free: 15.34 MB / 378.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.001147/0.4966, allocations: 0.6021 MB / 0.5659 GB, free: 14.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.4967, allocations: 12.03 kB / 0.5659 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.122e-05/0.4968, allocations: 19.66 kB / 0.5659 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.497, allocations: 202.6 kB / 0.5661 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.4971, allocations: 0 / 0.5661 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.4971, allocations: 4 kB / 0.5661 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.4973, allocations: 133.8 kB / 0.5662 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.4973, allocations: 0 / 0.5662 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.4974, allocations: 0 / 0.5662 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.4974, allocations: 0 / 0.5662 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.4975, allocations: 96.72 kB / 0.5663 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000227/0.4977, allocations: 215.2 kB / 0.5665 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.4979, allocations: 152.1 kB / 0.5667 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.4981, allocations: 146.7 kB / 0.5668 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/0.4981, allocations: 4 kB / 0.5668 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.4981, allocations: 38 kB / 0.5669 GB, free: 13.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 3.296e-06/0.4982, allocations: 0 / 0.5669 GB, free: 13.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0004829/0.4986, allocations: 329.1 kB / 0.5672 GB, free: 13.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.4987, allocations: 108.8 kB / 0.5673 GB, free: 13.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.4989, allocations: 152.2 kB / 0.5674 GB, free: 13.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.4989, allocations: 25.7 kB / 0.5674 GB, free: 13.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.629e-05/0.499, allocations: 109.8 kB / 0.5675 GB, free: 13.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.4991, allocations: 127 kB / 0.5677 GB, free: 12.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.625e-06/0.4992, allocations: 0 / 0.5677 GB, free: 12.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.4994, allocations: 344.7 kB / 0.568 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.4995, allocations: 92.39 kB / 0.5681 GB, free: 12.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.55e-05/0.4996, allocations: 91.84 kB / 0.5682 GB, free: 12.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.4998, allocations: 189.7 kB / 0.5684 GB, free: 12.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4998, allocations: 0 / 0.5684 GB, free: 12.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004301/0.5003, allocations: 325 kB / 0.5687 GB, free: 12.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.5004, allocations: 91.08 kB / 0.5687 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.5004, allocations: 0 / 0.5687 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/0.5004, allocations: 3.984 kB / 0.5688 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.953e-06/0.5004, allocations: 0 / 0.5688 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.5005, allocations: 0 / 0.5688 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.117e-05/0.5005, allocations: 23.69 kB / 0.5688 GB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/0.5006, allocations: 12 kB / 0.5688 GB, free: 11.93 MB / 378.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 () * 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 0.0002158/0.5008, allocations: 200.8 kB / 0.569 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.5009, allocations: 19.81 kB / 0.569 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.532e-05/0.5009, allocations: 18.22 kB / 0.569 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.5009, allocations: 0 / 0.569 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5009, allocations: 3.938 kB / 0.569 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.5009, allocations: 0 / 0.569 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.5011, allocations: 238.3 kB / 0.5692 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.5011, allocations: 4 kB / 0.5692 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.5011, allocations: 0 / 0.5692 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.5012, allocations: 0 / 0.5692 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.5012, allocations: 12 kB / 0.5693 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.219e-06/0.5012, allocations: 3.984 kB / 0.5693 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5012, allocations: 0 / 0.5693 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.5022, allocations: 0.9009 MB / 0.5701 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.164e-05/0.5023, allocations: 104.7 kB / 0.5702 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.5024, allocations: 4 kB / 0.5702 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.345e-05/0.5024, allocations: 11.94 kB / 0.5703 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.5025, allocations: 4 kB / 0.5703 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.5025, allocations: 8 kB / 0.5703 GB, free: 10.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001132/0.5026, allocations: 130.3 kB / 0.5704 GB, free: 10.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5026, allocations: 3.938 kB / 0.5704 GB, free: 10.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00144/0.5041, allocations: 394.2 kB / 0.5708 GB, free: 9.969 MB / 378.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 () * 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.001631/0.5057, allocations: 420.1 kB / 0.5712 GB, free: 9.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.5071, allocations: 1.579 MB / 0.5727 GB, free: 8.742 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5071, allocations: 0 / 0.5727 GB, free: 8.742 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.5081, allocations: 1.375 MB / 0.5741 GB, free: 8.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.5083, allocations: 17.95 kB / 0.5741 GB, free: 8.059 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008526/0.5092, allocations: 0.5259 MB / 0.5746 GB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.5095, allocations: 0.7567 MB / 0.5753 GB, free: 6.793 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.937e-05/0.5096, allocations: 7.938 kB / 0.5753 GB, free: 6.785 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.08e-05/0.5096, allocations: 11.44 kB / 0.5753 GB, free: 6.773 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5096, allocations: 3.938 kB / 0.5754 GB, free: 6.77 MB / 378.7 MB [CodegenCFunctions.tpl:5352:15-5352:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].