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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001079/0.001079, allocations: 173.8 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.604/1.604, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009615/0.0009612, allocations: 86.66 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1625/0.1625, allocations: 37.97 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.226e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1191, allocations: 56.32 MB / 474.1 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4374/0.5566, allocations: 92.44 MB / 0.5533 GB, free: 9.484 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.5569, allocations: 78.25 kB / 0.5534 GB, free: 9.445 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03877/0.5957, allocations: 12.11 MB / 0.5652 GB, free: 15.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5957, allocations: 0 / 0.5652 GB, free: 15.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.5958, allocations: 4 kB / 0.5652 GB, free: 15.4 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009843/0.5967, allocations: 0.5646 MB / 0.5658 GB, free: 14.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.5968, allocations: 12.03 kB / 0.5658 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.19e-05/0.5969, allocations: 42.3 kB / 0.5658 GB, free: 14.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.5969, allocations: 15.77 kB / 0.5658 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002221/0.5971, allocations: 198.7 kB / 0.566 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.5972, allocations: 0 / 0.566 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.5972, allocations: 4 kB / 0.566 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.5973, allocations: 97.42 kB / 0.5661 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.5974, allocations: 0 / 0.5661 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.5974, allocations: 0 / 0.5661 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.5974, allocations: 0 / 0.5661 GB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.963e-05/0.5975, allocations: 63.03 kB / 0.5662 GB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.5977, allocations: 199.7 kB / 0.5664 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.5978, allocations: 100.8 kB / 0.5665 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.597e-05/0.5979, allocations: 88.86 kB / 0.5666 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.5979, allocations: 0 / 0.5666 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.598, allocations: 30.56 kB / 0.5666 GB, free: 13.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 8.91e-07/0.598, allocations: 0 / 0.5666 GB, free: 13.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003413/0.5983, allocations: 222.6 kB / 0.5668 GB, free: 13.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.5984, allocations: 100.7 kB / 0.5669 GB, free: 13.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.5985, allocations: 140.6 kB / 0.567 GB, free: 13.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.5985, allocations: 25.7 kB / 0.567 GB, free: 13.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.102e-05/0.5986, allocations: 97.89 kB / 0.5671 GB, free: 13.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.445e-05/0.5987, allocations: 79.8 kB / 0.5672 GB, free: 13.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.5987, allocations: 0 / 0.5672 GB, free: 13.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5988, allocations: 333.5 kB / 0.5675 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.827e-05/0.5989, allocations: 61.53 kB / 0.5676 GB, free: 12.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.782e-05/0.599, allocations: 61.72 kB / 0.5677 GB, free: 12.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.5991, allocations: 122 kB / 0.5678 GB, free: 12.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5991, allocations: 4.031 kB / 0.5678 GB, free: 12.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002615/0.5994, allocations: 224 kB / 0.568 GB, free: 12.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.352e-05/0.5994, allocations: 63.84 kB / 0.568 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.5995, allocations: 0 / 0.568 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.5995, allocations: 0 / 0.568 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.655e-06/0.5995, allocations: 0 / 0.568 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.5995, allocations: 7.938 kB / 0.5681 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.6e-05/0.5995, allocations: 11.84 kB / 0.5681 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.5996, allocations: 11.98 kB / 0.5681 GB, free: 12.45 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.0001338/0.5997, allocations: 170 kB / 0.5682 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.5997, allocations: 15.89 kB / 0.5683 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.823e-05/0.5998, allocations: 12.38 kB / 0.5683 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.5998, allocations: 0 / 0.5683 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.5998, allocations: 4 kB / 0.5683 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.5998, allocations: 0 / 0.5683 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.6, allocations: 213.8 kB / 0.5685 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.6, allocations: 3.984 kB / 0.5685 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.6, allocations: 0 / 0.5685 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.6, allocations: 0 / 0.5685 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.6, allocations: 4 kB / 0.5685 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.6, allocations: 8 kB / 0.5685 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.6, allocations: 0 / 0.5685 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00057/0.6006, allocations: 0.5003 MB / 0.569 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.692e-05/0.6007, allocations: 92.86 kB / 0.5691 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.6007, allocations: 11.92 kB / 0.5691 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.754e-05/0.6007, allocations: 7.938 kB / 0.5691 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-05/0.6008, allocations: 4 kB / 0.5691 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.6008, allocations: 4 kB / 0.5691 GB, free: 11.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.634e-05/0.6009, allocations: 121 kB / 0.5692 GB, free: 11.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6009, allocations: 0 / 0.5692 GB, free: 11.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009766/0.6019, allocations: 378.1 kB / 0.5696 GB, free: 10.93 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.001722/0.6036, allocations: 1.349 MB / 0.5709 GB, free: 9.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006333/0.6042, allocations: 0.6963 MB / 0.5716 GB, free: 9.199 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6043, allocations: 0 / 0.5716 GB, free: 9.199 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004216/0.6047, allocations: 0.5642 MB / 0.5721 GB, free: 8.867 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001493/0.6048, allocations: 11.88 kB / 0.5721 GB, free: 8.859 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008396/0.6057, allocations: 0.5331 MB / 0.5727 GB, free: 8.328 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.606, allocations: 0.7359 MB / 0.5734 GB, free: 7.566 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.106e-05/0.606, allocations: 0 / 0.5734 GB, free: 7.566 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.924e-05/0.6061, allocations: 31.8 kB / 0.5734 GB, free: 7.555 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6061, allocations: 0 / 0.5734 GB, free: 7.555 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].