Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001514/0.001514, allocations: 179.9 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.285/1.285, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.0008114/0.0008114, allocations: 93.77 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1637/0.1637, allocations: 38.07 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003007, allocations: 15.98 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2535, allocations: 56.32 MB / 480.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.3813, allocations: 92.62 MB / 0.5596 GB, free: 9.785 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.3816, allocations: 75.95 kB / 0.5597 GB, free: 9.711 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04142/0.4231, allocations: 11.97 MB / 0.5714 GB, free: 13.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.4231, allocations: 0 / 0.5714 GB, free: 13.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.4231, allocations: 0 / 0.5714 GB, free: 13.73 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007564/0.4239, allocations: 0.5277 MB / 0.5719 GB, free: 13.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.4239, allocations: 12.03 kB / 0.5719 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.589e-05/0.424, allocations: 38.5 kB / 0.5719 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.424, allocations: 15.84 kB / 0.5719 GB, free: 13.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.4242, allocations: 178.9 kB / 0.5721 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-06/0.4242, allocations: 0 / 0.5721 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.4242, allocations: 0 / 0.5721 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.4243, allocations: 61.67 kB / 0.5722 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.4243, allocations: 0 / 0.5722 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.4244, allocations: 3.938 kB / 0.5722 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.4244, allocations: 0 / 0.5722 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.403e-05/0.4244, allocations: 23.98 kB / 0.5722 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001422/0.4246, allocations: 169.5 kB / 0.5724 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.459e-05/0.4247, allocations: 47.25 kB / 0.5724 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.4247, allocations: 4 kB / 0.5724 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.4247, allocations: 30.56 kB / 0.5724 GB, free: 12.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.4247, allocations: 0 / 0.5724 GB, free: 12.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002941/0.425, allocations: 240.5 kB / 0.5727 GB, free: 12.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.4251, allocations: 85.11 kB / 0.5727 GB, free: 12.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.34e-05/0.4251, allocations: 117 kB / 0.5729 GB, free: 11.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.4252, allocations: 25.7 kB / 0.5729 GB, free: 11.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.474e-05/0.4252, allocations: 84.14 kB / 0.573 GB, free: 11.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.668e-05/0.4253, allocations: 35.58 kB / 0.573 GB, free: 11.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-06/0.4253, allocations: 0 / 0.573 GB, free: 11.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4254, allocations: 322.8 kB / 0.5733 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.55e-05/0.4254, allocations: 19.98 kB / 0.5733 GB, free: 11.47 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.04e-05/0.4255, allocations: 23.98 kB / 0.5733 GB, free: 11.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.862e-05/0.4255, allocations: 57.69 kB / 0.5734 GB, free: 11.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.4255, allocations: 0 / 0.5734 GB, free: 11.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001647/0.4257, allocations: 127.4 kB / 0.5735 GB, free: 11.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.02e-05/0.4258, allocations: 41.69 kB / 0.5736 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.4258, allocations: 0 / 0.5736 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.4258, allocations: 4.062 kB / 0.5736 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-06/0.4258, allocations: 3.938 kB / 0.5736 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.4258, allocations: 0 / 0.5736 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.109e-05/0.4258, allocations: 4 kB / 0.5736 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.4259, allocations: 0 / 0.5736 GB, free: 11.19 MB / 410.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.0001279/0.426, allocations: 163.5 kB / 0.5737 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.426, allocations: 7.906 kB / 0.5737 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.069e-05/0.4261, allocations: 12.31 kB / 0.5737 GB, free: 10.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.4261, allocations: 0 / 0.5737 GB, free: 10.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4261, allocations: 4 kB / 0.5738 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.4261, allocations: 0 / 0.5738 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.4262, allocations: 181.5 kB / 0.5739 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4262, allocations: 0 / 0.5739 GB, free: 10.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.323e-06/0.4262, allocations: 11.94 kB / 0.5739 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.4262, allocations: 0 / 0.5739 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.4263, allocations: 0 / 0.5739 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.4263, allocations: 4 kB / 0.5739 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4263, allocations: 0 / 0.5739 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002491/0.4265, allocations: 214.7 kB / 0.5741 GB, free: 10.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-05/0.4266, allocations: 92.91 kB / 0.5742 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.4266, allocations: 0 / 0.5742 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.21e-05/0.4266, allocations: 0 / 0.5742 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.539e-05/0.4267, allocations: 4 kB / 0.5742 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.4267, allocations: 4 kB / 0.5742 GB, free: 10.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.844e-05/0.4267, allocations: 95.27 kB / 0.5743 GB, free: 10.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4267, allocations: 0 / 0.5743 GB, free: 10.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007969/0.4275, allocations: 355.6 kB / 0.5747 GB, free: 9.949 MB / 410.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.001251/0.4288, allocations: 1.059 MB / 0.5757 GB, free: 8.859 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002718/0.4291, allocations: 199.3 kB / 0.5759 GB, free: 8.652 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4291, allocations: 4.094 kB / 0.5759 GB, free: 8.648 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.4292, allocations: 147.4 kB / 0.576 GB, free: 8.492 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.4294, allocations: 7.938 kB / 0.576 GB, free: 8.484 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.4304, allocations: 0.8381 MB / 0.5769 GB, free: 7.594 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.4307, allocations: 0.7004 MB / 0.5775 GB, free: 6.867 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.04e-05/0.4308, allocations: 0 / 0.5775 GB, free: 6.867 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.81e-05/0.4308, allocations: 19.42 kB / 0.5776 GB, free: 6.852 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4308, allocations: 4 kB / 0.5776 GB, free: 6.848 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].