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.001051/0.001051, allocations: 176.6 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.638/1.638, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008725/0.0008726, allocations: 91.27 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1798/0.1798, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.769e-05/1.773e-05, allocations: 4 kB / 410.7 MB, free: 46.87 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1236, allocations: 56.33 MB / 467 MB, free: 6.48 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4867/0.6103, allocations: 91.86 MB / 0.5458 GB, free: 2.949 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/0.6107, allocations: 79.95 kB / 0.5458 GB, free: 2.871 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04482/0.6555, allocations: 11.87 MB / 0.5574 GB, free: 7.004 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.6556, allocations: 0 / 0.5574 GB, free: 7.004 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.6556, allocations: 4 kB / 0.5574 GB, free: 7 MB / 395.1 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.001134/0.6568, allocations: 0.523 MB / 0.5579 GB, free: 6.426 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.6568, allocations: 12.03 kB / 0.5579 GB, free: 6.414 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.119e-05/0.6569, allocations: 3.906 kB / 0.558 GB, free: 6.41 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.6571, allocations: 187.9 kB / 0.5581 GB, free: 6.188 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.6571, allocations: 4 kB / 0.5581 GB, free: 6.184 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.6572, allocations: 4 kB / 0.5581 GB, free: 6.18 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.342e-05/0.6572, allocations: 16 kB / 0.5582 GB, free: 6.164 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.794e-05/0.6573, allocations: 53.67 kB / 0.5582 GB, free: 6.105 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.6574, allocations: 0 / 0.5582 GB, free: 6.105 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.6574, allocations: 3.938 kB / 0.5582 GB, free: 6.102 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.6574, allocations: 0 / 0.5582 GB, free: 6.102 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.6575, allocations: 146.1 kB / 0.5583 GB, free: 5.922 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.825e-05/0.6576, allocations: 51.25 kB / 0.5584 GB, free: 5.863 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.496e-05/0.6577, allocations: 32.88 kB / 0.5584 GB, free: 5.828 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.6577, allocations: 4 kB / 0.5584 GB, free: 5.824 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.6577, allocations: 30.56 kB / 0.5585 GB, free: 5.785 MB / 395.1 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.6577, allocations: 0 / 0.5585 GB, free: 5.785 MB / 395.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003051/0.6581, allocations: 85.58 kB / 0.5585 GB, free: 5.695 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.6581, allocations: 85.09 kB / 0.5586 GB, free: 5.594 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.6582, allocations: 121.8 kB / 0.5587 GB, free: 5.469 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.6582, allocations: 25.7 kB / 0.5588 GB, free: 5.438 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.423e-05/0.6583, allocations: 84.14 kB / 0.5588 GB, free: 5.352 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.18e-05/0.6583, allocations: 31.55 kB / 0.5589 GB, free: 5.32 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-06/0.6584, allocations: 0 / 0.5589 GB, free: 5.32 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.6585, allocations: 322.8 kB / 0.5592 GB, free: 4.996 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.543e-05/0.6585, allocations: 19.98 kB / 0.5592 GB, free: 4.977 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.636e-05/0.6586, allocations: 19.98 kB / 0.5592 GB, free: 4.957 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.203e-05/0.6587, allocations: 31.98 kB / 0.5593 GB, free: 4.926 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6587, allocations: 7.984 kB / 0.5593 GB, free: 4.918 MB / 395.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001785/0.6589, allocations: 82.42 kB / 0.5593 GB, free: 4.832 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.274e-05/0.6589, allocations: 41.69 kB / 0.5594 GB, free: 4.785 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.6589, allocations: 0 / 0.5594 GB, free: 4.785 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.659, allocations: 0 / 0.5594 GB, free: 4.785 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.444e-06/0.659, allocations: 3.984 kB / 0.5594 GB, free: 4.781 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.659, allocations: 0 / 0.5594 GB, free: 4.781 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.364e-05/0.659, allocations: 11.91 kB / 0.5594 GB, free: 4.77 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.659, allocations: 0 / 0.5594 GB, free: 4.77 MB / 395.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 () * 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.0001227/0.6592, allocations: 148.5 kB / 0.5595 GB, free: 4.613 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002198/0.6594, allocations: 150.5 kB / 0.5597 GB, free: 4.461 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.6594, allocations: 8 kB / 0.5597 GB, free: 4.453 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.821e-05/0.6594, allocations: 8.609 kB / 0.5597 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.6594, allocations: 0 / 0.5597 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.6595, allocations: 0 / 0.5597 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.6595, allocations: 0 / 0.5597 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.6596, allocations: 150.1 kB / 0.5598 GB, free: 4.262 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.6596, allocations: 8 kB / 0.5598 GB, free: 4.254 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-06/0.6596, allocations: 3.984 kB / 0.5598 GB, free: 4.25 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.6596, allocations: 0 / 0.5598 GB, free: 4.25 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.6596, allocations: 4.031 kB / 0.5599 GB, free: 4.246 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.6596, allocations: 4 kB / 0.5599 GB, free: 4.242 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6596, allocations: 0 / 0.5599 GB, free: 4.242 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.6599, allocations: 169 kB / 0.56 GB, free: 4.059 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.802e-05/0.66, allocations: 84.97 kB / 0.5601 GB, free: 3.957 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.66, allocations: 4 kB / 0.5601 GB, free: 3.953 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.23e-05/0.66, allocations: 0 / 0.5601 GB, free: 3.953 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.634e-05/0.66, allocations: 8 kB / 0.5601 GB, free: 3.945 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-06/0.6601, allocations: 8.016 kB / 0.5601 GB, free: 3.938 MB / 395.1 MB Notification: Performance of sorting global known variables: time 5.569e-05/0.6601, allocations: 94.66 kB / 0.5602 GB, free: 3.848 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6601, allocations: 0 / 0.5602 GB, free: 3.848 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00131/0.6614, allocations: 359.5 kB / 0.5606 GB, free: 3.496 MB / 395.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 () * 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.001525/0.663, allocations: 1.006 MB / 0.5615 GB, free: 2.457 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002638/0.6632, allocations: 187.3 kB / 0.5617 GB, free: 2.262 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.6633, allocations: 0 / 0.5617 GB, free: 2.262 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.6634, allocations: 147.4 kB / 0.5619 GB, free: 2.105 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001692/0.6636, allocations: 5.719 kB / 0.5619 GB, free: 2.102 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006245/0.6642, allocations: 328.9 kB / 0.5622 GB, free: 1.742 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.6645, allocations: 0.7042 MB / 0.5629 GB, free: 1.012 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 1.38e-05/0.6645, allocations: 0 / 0.5629 GB, free: 1.012 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.261e-05/0.6646, allocations: 15.44 kB / 0.5629 GB, free: 1 MB / 395.1 MB Notification: Performance of SimCode: time 2.71e-07/0.6646, allocations: 4 kB / 0.5629 GB, free: 0.9961 MB / 395.1 MB [CodegenCFunctions.tpl:4892:15-4892:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].