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.001422/0.001422, 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.382/1.382, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007947/0.0007945, allocations: 96.95 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1632/0.1632, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003007/0.0003008, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2589, allocations: 56.32 MB / 480.4 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.3852, allocations: 92.82 MB / 0.5598 GB, free: 9.586 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.3855, allocations: 79.95 kB / 0.5599 GB, free: 9.508 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04057/0.4261, allocations: 12.12 MB / 0.5717 GB, free: 13.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4261, allocations: 0 / 0.5717 GB, free: 13.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.4261, allocations: 4 kB / 0.5717 GB, free: 13.37 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001029/0.4272, allocations: 0.5703 MB / 0.5723 GB, free: 12.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/0.4272, allocations: 12.03 kB / 0.5723 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.434e-05/0.4273, allocations: 58.27 kB / 0.5723 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.702e-05/0.4274, allocations: 19.77 kB / 0.5724 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.4277, allocations: 202.8 kB / 0.5725 GB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.4277, allocations: 4 kB / 0.5725 GB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.4277, allocations: 11.94 kB / 0.5726 GB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.4279, allocations: 118.3 kB / 0.5727 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.428, allocations: 0 / 0.5727 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.428, allocations: 4 kB / 0.5727 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.428, allocations: 4 kB / 0.5727 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.4281, allocations: 72.12 kB / 0.5727 GB, free: 12.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004439/0.4286, allocations: 364.8 kB / 0.5731 GB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.4287, allocations: 75.19 kB / 0.5732 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.772e-06/0.4287, allocations: 4 kB / 0.5732 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.4287, allocations: 34.55 kB / 0.5732 GB, free: 11.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.4287, allocations: 0 / 0.5732 GB, free: 11.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003959/0.4291, allocations: 296.1 kB / 0.5735 GB, free: 11.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.4292, allocations: 89.09 kB / 0.5736 GB, free: 11.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.4293, allocations: 137.3 kB / 0.5737 GB, free: 11.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.4293, allocations: 25.7 kB / 0.5737 GB, free: 11.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.748e-05/0.4294, allocations: 112 kB / 0.5738 GB, free: 10.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.933e-05/0.4295, allocations: 47.36 kB / 0.5739 GB, free: 10.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.4295, allocations: 0 / 0.5739 GB, free: 10.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4296, allocations: 326.8 kB / 0.5742 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.864e-05/0.4297, allocations: 39.97 kB / 0.5742 GB, free: 10.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.025e-05/0.4297, allocations: 43.91 kB / 0.5743 GB, free: 10.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.466e-05/0.4298, allocations: 77.67 kB / 0.5743 GB, free: 10.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4298, allocations: 0 / 0.5743 GB, free: 10.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000217/0.43, allocations: 171.1 kB / 0.5745 GB, free: 10.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.631e-05/0.4301, allocations: 56.33 kB / 0.5746 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4301, allocations: 4.062 kB / 0.5746 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.4301, allocations: 0 / 0.5746 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.717e-06/0.4302, allocations: 3.984 kB / 0.5746 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.4302, allocations: 0 / 0.5746 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.507e-05/0.4302, allocations: 11.84 kB / 0.5746 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.4303, allocations: 4 kB / 0.5746 GB, free: 10.14 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.0001435/0.4304, allocations: 171.5 kB / 0.5747 GB, free: 9.957 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/0.4304, allocations: 15.86 kB / 0.5748 GB, free: 9.941 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.335e-05/0.4305, allocations: 16.83 kB / 0.5748 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.4305, allocations: 0 / 0.5748 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4305, allocations: 3.938 kB / 0.5748 GB, free: 9.922 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4305, allocations: 4 kB / 0.5748 GB, free: 9.918 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.4307, allocations: 205.5 kB / 0.575 GB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4307, allocations: 0 / 0.575 GB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.4307, allocations: 0 / 0.575 GB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.4307, allocations: 3.953 kB / 0.575 GB, free: 9.664 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.4308, allocations: 7.938 kB / 0.575 GB, free: 9.656 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4308, allocations: 4 kB / 0.575 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4308, allocations: 0 / 0.575 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003583/0.4311, allocations: 361 kB / 0.5753 GB, free: 9.277 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.464e-05/0.4312, allocations: 92.86 kB / 0.5754 GB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.4312, allocations: 3.953 kB / 0.5754 GB, free: 9.164 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.479e-05/0.4313, allocations: 4 kB / 0.5754 GB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.365e-05/0.4314, allocations: 8 kB / 0.5754 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.4314, allocations: 4 kB / 0.5755 GB, free: 9.148 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.836e-05/0.4315, allocations: 111.2 kB / 0.5756 GB, free: 9.039 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4315, allocations: 4.031 kB / 0.5756 GB, free: 9.035 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001079/0.4326, allocations: 371.6 kB / 0.5759 GB, free: 8.672 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.001955/0.4345, allocations: 1.306 MB / 0.5772 GB, free: 7.336 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.4349, allocations: 330.7 kB / 0.5775 GB, free: 7.004 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4349, allocations: 0 / 0.5775 GB, free: 7.004 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.4351, allocations: 263.2 kB / 0.5778 GB, free: 6.734 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.4354, allocations: 19.89 kB / 0.5778 GB, free: 6.715 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.4371, allocations: 1.292 MB / 0.579 GB, free: 5.363 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002953/0.4374, allocations: 0.7316 MB / 0.5798 GB, free: 4.605 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.795e-05/0.4374, allocations: 4 kB / 0.5798 GB, free: 4.602 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.194e-05/0.4375, allocations: 35.42 kB / 0.5798 GB, free: 4.57 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4375, allocations: 0 / 0.5798 GB, free: 4.57 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].