Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001406/0.001406, allocations: 175.1 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.68/1.68, 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.001152/0.001153, allocations: 86.72 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.1565/0.1565, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.022e-05/5.037e-05, allocations: 0 / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1266, allocations: 56.32 MB / 474.1 MB, free: 4.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4627/0.5894, allocations: 92.73 MB / 0.5536 GB, free: 9.289 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.5897, allocations: 86.05 kB / 0.5537 GB, free: 9.242 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04435/0.6341, allocations: 12.08 MB / 0.5655 GB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6341, allocations: 0 / 0.5655 GB, free: 15.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.6342, allocations: 4 kB / 0.5655 GB, free: 15.21 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009098/0.6351, allocations: 0.5486 MB / 0.566 GB, free: 14.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.6351, allocations: 8.031 kB / 0.566 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.341e-05/0.6352, allocations: 64.89 kB / 0.5661 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.029e-05/0.6353, allocations: 19.77 kB / 0.5661 GB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.6355, allocations: 198.8 kB / 0.5663 GB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.6355, allocations: 15.44 kB / 0.5663 GB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.6355, allocations: 4 kB / 0.5663 GB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.6358, allocations: 114.5 kB / 0.5664 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.6358, allocations: 4 kB / 0.5664 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.6358, allocations: 3.984 kB / 0.5664 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.6358, allocations: 0 / 0.5664 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.6359, allocations: 69.45 kB / 0.5665 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004541/0.6364, allocations: 367.1 kB / 0.5668 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.484e-05/0.6365, allocations: 69.56 kB / 0.5669 GB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.986e-05/0.6366, allocations: 53.75 kB / 0.567 GB, free: 13.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.6366, allocations: 7.922 kB / 0.567 GB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.6366, allocations: 34.56 kB / 0.567 GB, free: 13.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.6366, allocations: 4 kB / 0.567 GB, free: 13.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002873/0.6369, allocations: 164.5 kB / 0.5672 GB, free: 13.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.637, allocations: 92.73 kB / 0.5672 GB, free: 13.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.6371, allocations: 133 kB / 0.5674 GB, free: 13.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.6371, allocations: 25.7 kB / 0.5674 GB, free: 13.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.751e-05/0.6372, allocations: 115.3 kB / 0.5675 GB, free: 13.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.145e-05/0.6373, allocations: 47.08 kB / 0.5676 GB, free: 13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-06/0.6373, allocations: 7.938 kB / 0.5676 GB, free: 12.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.6374, allocations: 326.5 kB / 0.5679 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.311e-05/0.6375, allocations: 39.59 kB / 0.5679 GB, free: 12.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.028e-05/0.6375, allocations: 39.61 kB / 0.5679 GB, free: 12.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.228e-05/0.6376, allocations: 76.91 kB / 0.568 GB, free: 12.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.6376, allocations: 3.953 kB / 0.568 GB, free: 12.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002028/0.6378, allocations: 165.4 kB / 0.5682 GB, free: 12.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/0.6379, allocations: 44.94 kB / 0.5682 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.6379, allocations: 3.984 kB / 0.5682 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.6379, allocations: 0 / 0.5682 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-06/0.6379, allocations: 0 / 0.5682 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.6379, allocations: 12 kB / 0.5682 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.976e-05/0.638, allocations: 7.906 kB / 0.5682 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.638, allocations: 8 kB / 0.5683 GB, free: 12.29 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.0001072/0.6381, allocations: 146.7 kB / 0.5684 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.823e-05/0.6382, allocations: 19.84 kB / 0.5684 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.004e-05/0.6382, allocations: 11.88 kB / 0.5684 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.6382, allocations: 0 / 0.5684 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6382, allocations: 0 / 0.5684 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.6382, allocations: 0 / 0.5684 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.6384, allocations: 215.3 kB / 0.5686 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.6385, allocations: 0 / 0.5686 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.864e-06/0.6385, allocations: 3.953 kB / 0.5686 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.6385, allocations: 0 / 0.5686 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.6385, allocations: 7.984 kB / 0.5686 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.6385, allocations: 4 kB / 0.5686 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.6385, allocations: 0 / 0.5686 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003608/0.6389, allocations: 349.8 kB / 0.569 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.6389, allocations: 92.95 kB / 0.5691 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.639, allocations: 7.953 kB / 0.5691 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.714e-05/0.639, allocations: 0 / 0.5691 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.6391, allocations: 7.938 kB / 0.5691 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.6391, allocations: 4 kB / 0.5691 GB, free: 11.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.153e-05/0.6392, allocations: 122 kB / 0.5692 GB, free: 11.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6392, allocations: 0 / 0.5692 GB, free: 11.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009028/0.6401, allocations: 374.1 kB / 0.5696 GB, free: 10.92 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.001633/0.6417, allocations: 1.307 MB / 0.5708 GB, free: 9.652 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003479/0.6421, allocations: 324.3 kB / 0.5711 GB, free: 9.426 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.6421, allocations: 0 / 0.5711 GB, free: 9.426 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.6423, allocations: 258.9 kB / 0.5714 GB, free: 9.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001775/0.6425, allocations: 15.33 kB / 0.5714 GB, free: 9.238 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007952/0.6433, allocations: 483 kB / 0.5719 GB, free: 8.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.6436, allocations: 0.7355 MB / 0.5726 GB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.614e-05/0.6437, allocations: 4 kB / 0.5726 GB, free: 7.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.185e-05/0.6437, allocations: 34.86 kB / 0.5726 GB, free: 7.977 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6437, allocations: 7.938 kB / 0.5726 GB, free: 7.969 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].