Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.001664/0.001663, allocations: 174.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.641/1.641, 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.0009529/0.0009528, allocations: 78.67 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.174/0.174, allocations: 37.99 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.86e-05/3.873e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 56.33 MB / 474.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/0.5068, allocations: 92.43 MB / 0.5533 GB, free: 9.566 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.5071, allocations: 86.98 kB / 0.5534 GB, free: 9.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0384/0.5455, allocations: 11.95 MB / 0.5651 GB, free: 15.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5456, allocations: 0 / 0.5651 GB, free: 15.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.5456, allocations: 8 kB / 0.5651 GB, free: 15.61 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0009951/0.5466, allocations: 0.5364 MB / 0.5656 GB, free: 15.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.5467, allocations: 8.031 kB / 0.5656 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.799e-05/0.5467, allocations: 38.55 kB / 0.5656 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.731e-05/0.5468, allocations: 7.859 kB / 0.5656 GB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.547, allocations: 190.8 kB / 0.5658 GB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.5471, allocations: 0 / 0.5658 GB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.5471, allocations: 0 / 0.5658 GB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.5472, allocations: 69.47 kB / 0.5659 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.5472, allocations: 4 kB / 0.5659 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.5473, allocations: 0 / 0.5659 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.5473, allocations: 0 / 0.5659 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.079e-05/0.5473, allocations: 31.05 kB / 0.5659 GB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001845/0.5475, allocations: 169.4 kB / 0.5661 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.789e-05/0.5476, allocations: 64.09 kB / 0.5661 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.268e-05/0.5477, allocations: 43.53 kB / 0.5662 GB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.577e-06/0.5477, allocations: 224 / 0.5662 GB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.5478, allocations: 34.56 kB / 0.5662 GB, free: 14.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 9.81e-07/0.5478, allocations: 3.938 kB / 0.5662 GB, free: 14.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.00026/0.548, allocations: 145.6 kB / 0.5664 GB, free: 14.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.578e-05/0.5481, allocations: 93.03 kB / 0.5664 GB, free: 14.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.5482, allocations: 118.7 kB / 0.5666 GB, free: 13.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.5482, allocations: 32.83 kB / 0.5666 GB, free: 13.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.5483, allocations: 90.58 kB / 0.5667 GB, free: 13.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.778e-05/0.5483, allocations: 43.33 kB / 0.5667 GB, free: 13.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-06/0.5484, allocations: 4 kB / 0.5667 GB, free: 13.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.5485, allocations: 322.4 kB / 0.567 GB, free: 13.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.164e-05/0.5485, allocations: 31.11 kB / 0.5671 GB, free: 13.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.738e-05/0.5486, allocations: 27.8 kB / 0.5671 GB, free: 13.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.097e-05/0.5487, allocations: 81.56 kB / 0.5672 GB, free: 13.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5487, allocations: 0 / 0.5672 GB, free: 13.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000182/0.5489, allocations: 150.6 kB / 0.5673 GB, free: 13.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.982e-05/0.5489, allocations: 49.67 kB / 0.5674 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.5489, allocations: 0 / 0.5674 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.549, allocations: 4.062 kB / 0.5674 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.845e-06/0.549, allocations: 4 kB / 0.5674 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.549, allocations: 3.938 kB / 0.5674 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.226e-05/0.549, allocations: 7.938 kB / 0.5674 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.5491, allocations: 4 kB / 0.5674 GB, free: 13.09 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.0001173/0.5492, allocations: 154.2 kB / 0.5675 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.5492, allocations: 11.91 kB / 0.5675 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.152e-05/0.5492, allocations: 7.75 kB / 0.5675 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.5493, allocations: 0 / 0.5675 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5493, allocations: 8 kB / 0.5676 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.5493, allocations: 0 / 0.5676 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.5494, allocations: 184.6 kB / 0.5677 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.5494, allocations: 0 / 0.5677 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.5494, allocations: 0 / 0.5677 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.5494, allocations: 0 / 0.5677 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.5495, allocations: 4 kB / 0.5677 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5495, allocations: 0 / 0.5677 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5495, allocations: 0 / 0.5677 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003275/0.5498, allocations: 289.5 kB / 0.568 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.5499, allocations: 88.95 kB / 0.5681 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.5499, allocations: 0 / 0.5681 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.171e-05/0.5499, allocations: 4 kB / 0.5681 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.5e-05/0.5499, allocations: 7.562 kB / 0.5681 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.55, allocations: 4 kB / 0.5681 GB, free: 12.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.895e-05/0.55, allocations: 100.9 kB / 0.5682 GB, free: 12.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.55, allocations: 0 / 0.5682 GB, free: 12.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001096/0.5511, allocations: 363.5 kB / 0.5685 GB, free: 11.84 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.002023/0.5532, allocations: 1.121 MB / 0.5696 GB, free: 10.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003761/0.5536, allocations: 286.6 kB / 0.5699 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5536, allocations: 8.094 kB / 0.5699 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002224/0.5538, allocations: 220.4 kB / 0.5701 GB, free: 10.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.554, allocations: 11.27 kB / 0.5701 GB, free: 10.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.555, allocations: 388 kB / 0.5705 GB, free: 9.945 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.5553, allocations: 0.7082 MB / 0.5712 GB, free: 9.211 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.486e-05/0.5554, allocations: 7.938 kB / 0.5712 GB, free: 9.203 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.5554, allocations: 18.06 kB / 0.5712 GB, free: 9.199 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5554, allocations: 4.062 kB / 0.5712 GB, free: 9.195 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].