Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009616/0.0009618, allocations: 180.1 kB / 16.38 MB, free: 5.766 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.353/1.353, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008869/0.000887, allocations: 93.61 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1594/0.1594, allocations: 38.06 MB / 357.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003331, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2717, allocations: 56.31 MB / 480.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.3887, allocations: 89.45 MB / 0.5565 GB, free: 12.96 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.389, allocations: 83.94 kB / 0.5566 GB, free: 12.88 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01866/0.4076, allocations: 5.719 MB / 0.5622 GB, free: 7.152 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.889e-06/0.4077, allocations: 4 kB / 0.5622 GB, free: 7.148 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.4077, allocations: 4 kB / 0.5622 GB, free: 7.145 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005638/0.4083, allocations: 468.4 kB / 0.5626 GB, free: 6.633 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.4083, allocations: 12.03 kB / 0.5626 GB, free: 6.621 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.868e-05/0.4084, allocations: 58.36 kB / 0.5627 GB, free: 6.555 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.174e-05/0.4085, allocations: 15.81 kB / 0.5627 GB, free: 6.539 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.4087, allocations: 205.4 kB / 0.5629 GB, free: 6.301 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.4088, allocations: 8 kB / 0.5629 GB, free: 6.293 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.4088, allocations: 8 kB / 0.5629 GB, free: 6.285 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.409, allocations: 129.6 kB / 0.563 GB, free: 6.152 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.409, allocations: 4 kB / 0.563 GB, free: 6.148 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.4091, allocations: 4 kB / 0.563 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.034e-05/0.4091, allocations: 4 kB / 0.5631 GB, free: 6.141 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.4092, allocations: 87.88 kB / 0.5631 GB, free: 6.055 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004345/0.4097, allocations: 360.4 kB / 0.5635 GB, free: 5.652 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001437/0.4098, allocations: 134.5 kB / 0.5636 GB, free: 5.512 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.729e-06/0.4098, allocations: 3.938 kB / 0.5636 GB, free: 5.508 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.4099, allocations: 30.56 kB / 0.5636 GB, free: 5.469 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 1.293e-06/0.4099, allocations: 0 / 0.5636 GB, free: 5.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005038/0.4104, allocations: 388.3 kB / 0.564 GB, free: 5.059 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.4104, allocations: 101.1 kB / 0.5641 GB, free: 4.941 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.4106, allocations: 121.2 kB / 0.5642 GB, free: 4.812 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.4106, allocations: 25.7 kB / 0.5642 GB, free: 4.781 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/0.4107, allocations: 108.3 kB / 0.5644 GB, free: 4.672 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.298e-05/0.4107, allocations: 55.11 kB / 0.5644 GB, free: 4.617 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-06/0.4107, allocations: 4 kB / 0.5644 GB, free: 4.613 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.4109, allocations: 326.8 kB / 0.5647 GB, free: 4.285 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.555e-05/0.4109, allocations: 55.95 kB / 0.5648 GB, free: 4.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.632e-05/0.411, allocations: 55.97 kB / 0.5648 GB, free: 4.176 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/0.4111, allocations: 113.6 kB / 0.5649 GB, free: 4.059 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4111, allocations: 0 / 0.5649 GB, free: 4.059 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002424/0.4114, allocations: 223.1 kB / 0.5651 GB, free: 3.828 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.039e-05/0.4114, allocations: 57.67 kB / 0.5652 GB, free: 3.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.4115, allocations: 0 / 0.5652 GB, free: 3.766 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.4115, allocations: 3.938 kB / 0.5652 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.4115, allocations: 0 / 0.5652 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.4115, allocations: 0 / 0.5652 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.945e-05/0.4115, allocations: 15.8 kB / 0.5652 GB, free: 3.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.4116, allocations: 12.05 kB / 0.5652 GB, free: 3.734 MB / 394.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001451/0.4117, allocations: 183.5 kB / 0.5654 GB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.4118, allocations: 11.91 kB / 0.5654 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.891e-05/0.4118, allocations: 17.17 kB / 0.5654 GB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.4118, allocations: 3.984 kB / 0.5654 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4118, allocations: 0 / 0.5654 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.4118, allocations: 3.938 kB / 0.5654 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.412, allocations: 217.4 kB / 0.5656 GB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.412, allocations: 0 / 0.5656 GB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.4121, allocations: 0 / 0.5656 GB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.4121, allocations: 4 kB / 0.5657 GB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.4121, allocations: 4 kB / 0.5657 GB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4121, allocations: 0 / 0.5657 GB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.4121, allocations: 0 / 0.5657 GB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000462/0.4126, allocations: 461.5 kB / 0.5661 GB, free: 2.762 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.4126, allocations: 88.92 kB / 0.5662 GB, free: 2.656 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.4127, allocations: 7.953 kB / 0.5662 GB, free: 2.648 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.371e-05/0.4127, allocations: 4 kB / 0.5662 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.111e-05/0.4127, allocations: 12.02 kB / 0.5662 GB, free: 2.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.4128, allocations: 8 kB / 0.5662 GB, free: 2.625 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.871e-05/0.4128, allocations: 101.3 kB / 0.5663 GB, free: 2.527 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4128, allocations: 0 / 0.5663 GB, free: 2.527 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000465/0.4133, allocations: 147.9 kB / 0.5665 GB, free: 2.383 MB / 394.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 (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.001218/0.4145, allocations: 1.241 MB / 0.5677 GB, free: 1.109 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005309/0.4151, allocations: 0.5695 MB / 0.5682 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4151, allocations: 0 / 0.5682 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003439/0.4154, allocations: 467.3 kB / 0.5687 GB, free: 60 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001815/0.4156, allocations: 19.95 kB / 0.5687 GB, free: 40 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.4173, allocations: 1.332 MB / 0.57 GB, free: 14.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.4176, allocations: 0.7316 MB / 0.5707 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.596e-05/0.4177, allocations: 0 / 0.5707 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.4177, allocations: 35.42 kB / 0.5707 GB, free: 13.87 MB / 410.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4177, allocations: 0 / 0.5707 GB, free: 13.87 MB / 410.7 MB [CodegenCFunctions.tpl:5437:13-5437:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].