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.001408/0.001408, allocations: 180.2 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.289/1.289, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0007894/0.0007893, allocations: 89.86 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1654/0.1654, allocations: 38.07 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003209, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2814, allocations: 56.32 MB / 480.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.4048, allocations: 92.53 MB / 0.5595 GB, free: 9.867 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.4051, allocations: 79.95 kB / 0.5596 GB, free: 9.789 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04176/0.4469, allocations: 12.15 MB / 0.5715 GB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4469, allocations: 0 / 0.5715 GB, free: 13.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.4469, allocations: 0 / 0.5715 GB, free: 13.62 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.00102/0.448, allocations: 0.5898 MB / 0.572 GB, free: 12.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.448, allocations: 8.031 kB / 0.572 GB, free: 12.97 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.749e-05/0.4481, allocations: 38.56 kB / 0.5721 GB, free: 12.92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.4481, allocations: 15.77 kB / 0.5721 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.4483, allocations: 202.8 kB / 0.5723 GB, free: 12.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.4484, allocations: 0 / 0.5723 GB, free: 12.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.4484, allocations: 0 / 0.5723 GB, free: 12.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001687/0.4486, allocations: 97.92 kB / 0.5724 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.4486, allocations: 0 / 0.5724 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.4486, allocations: 0 / 0.5724 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.4486, allocations: 3.938 kB / 0.5724 GB, free: 12.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.1e-05/0.4487, allocations: 55.97 kB / 0.5724 GB, free: 12.51 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001949/0.4489, allocations: 197.3 kB / 0.5726 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/0.449, allocations: 103.2 kB / 0.5727 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.449, allocations: 3.984 kB / 0.5727 GB, free: 12.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.4491, allocations: 30.56 kB / 0.5728 GB, free: 12.11 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.062e-06/0.4491, allocations: 0 / 0.5728 GB, free: 12.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005581/0.4496, allocations: 396.2 kB / 0.5731 GB, free: 11.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.088e-05/0.4497, allocations: 93.05 kB / 0.5732 GB, free: 11.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.4498, allocations: 142.3 kB / 0.5734 GB, free: 11.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.4499, allocations: 29.73 kB / 0.5734 GB, free: 11.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.704e-05/0.4499, allocations: 100.6 kB / 0.5735 GB, free: 11.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.45, allocations: 82.75 kB / 0.5736 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.45, allocations: 0 / 0.5736 GB, free: 11.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.4501, allocations: 330.8 kB / 0.5739 GB, free: 10.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.013e-05/0.4502, allocations: 59.97 kB / 0.5739 GB, free: 10.83 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.485e-05/0.4503, allocations: 56.8 kB / 0.574 GB, free: 10.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.4504, allocations: 125.7 kB / 0.5741 GB, free: 10.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.4504, allocations: 32 / 0.5741 GB, free: 10.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002597/0.4507, allocations: 234.9 kB / 0.5743 GB, free: 10.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.791e-05/0.4508, allocations: 68.16 kB / 0.5744 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.4508, allocations: 0 / 0.5744 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.4508, allocations: 0 / 0.5744 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.286e-06/0.4508, allocations: 4 kB / 0.5744 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.4508, allocations: 4 kB / 0.5744 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.755e-05/0.4509, allocations: 11.88 kB / 0.5744 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.4509, allocations: 8 kB / 0.5744 GB, free: 10.3 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.0001553/0.4511, allocations: 191.4 kB / 0.5746 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.4511, allocations: 23.84 kB / 0.5746 GB, free: 10.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.11e-05/0.4511, allocations: 17.17 kB / 0.5746 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.4511, allocations: 0 / 0.5746 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.4512, allocations: 0 / 0.5746 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-06/0.4512, allocations: 0 / 0.5746 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.4513, allocations: 205.4 kB / 0.5748 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4513, allocations: 0 / 0.5748 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.805e-06/0.4513, allocations: 0 / 0.5748 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4513, allocations: 7.938 kB / 0.5748 GB, free: 9.805 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.4514, allocations: 4 kB / 0.5749 GB, free: 9.801 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4514, allocations: 7.984 kB / 0.5749 GB, free: 9.793 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4514, allocations: 0 / 0.5749 GB, free: 9.793 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005503/0.4519, allocations: 0.4984 MB / 0.5753 GB, free: 9.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.79e-05/0.452, allocations: 92.88 kB / 0.5754 GB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.804e-05/0.452, allocations: 8 kB / 0.5754 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.718e-05/0.4521, allocations: 4 kB / 0.5754 GB, free: 9.148 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.648e-05/0.4521, allocations: 11.91 kB / 0.5755 GB, free: 9.137 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.4521, allocations: 8 kB / 0.5755 GB, free: 9.129 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.095e-05/0.4522, allocations: 119.1 kB / 0.5756 GB, free: 9.012 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4522, allocations: 0 / 0.5756 GB, free: 9.012 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001056/0.4533, allocations: 371.6 kB / 0.5759 GB, free: 8.648 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.002167/0.4555, allocations: 1.363 MB / 0.5773 GB, free: 7.254 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006858/0.4562, allocations: 0.7022 MB / 0.578 GB, free: 6.539 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4562, allocations: 0 / 0.578 GB, free: 6.539 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004524/0.4567, allocations: 0.5734 MB / 0.5785 GB, free: 5.953 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00016/0.4568, allocations: 8 kB / 0.5785 GB, free: 5.945 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.4591, allocations: 1.482 MB / 0.58 GB, free: 4.402 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.4595, allocations: 0.728 MB / 0.5807 GB, free: 3.648 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.466e-05/0.4595, allocations: 0 / 0.5807 GB, free: 3.648 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.128e-05/0.4596, allocations: 35.42 kB / 0.5807 GB, free: 3.613 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4596, allocations: 0 / 0.5807 GB, free: 3.613 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].