Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 110.9 kB / 17.06 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001903/0.001903, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1756/0.1756, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 63.91 kB / 457.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3622, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003347/0.3656, allocations: 2.158 MB / 0.5057 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.3673, allocations: 1.067 MB / 0.5068 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.869e-05/0.3674, allocations: 1.406 kB / 0.5068 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.3676, allocations: 11.95 kB / 0.5068 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.3677, allocations: 53 kB / 0.5068 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009717/0.3687, allocations: 286.2 kB / 0.5071 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002131/0.3689, allocations: 119.3 kB / 0.5072 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.582e-05/0.369, allocations: 3.234 kB / 0.5072 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.3691, allocations: 51.8 kB / 0.5073 GB, free: 5.082 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.3692, allocations: 71.47 kB / 0.5073 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.3693, allocations: 2.188 kB / 0.5073 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007009/0.37, allocations: 419.6 kB / 0.5077 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.909e-05/0.37, allocations: 33.36 kB / 0.5078 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.21e-05/0.3701, allocations: 37.19 kB / 0.5078 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008126/0.3709, allocations: 0.5172 MB / 0.5083 GB, free: 4.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3709, allocations: 1.125 kB / 0.5083 GB, free: 4.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3709, allocations: 0 / 0.5083 GB, free: 4.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.371, allocations: 3.938 kB / 0.5083 GB, free: 4.793 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004619/0.3714, allocations: 470.5 kB / 0.5088 GB, free: 4.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3715, allocations: 13.17 kB / 0.5088 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.994e-05/0.3716, allocations: 68.78 kB / 0.5089 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.78e-05/0.3716, allocations: 15.75 kB / 0.5089 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.3718, allocations: 191.6 kB / 0.509 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.3718, allocations: 4.5 kB / 0.5091 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.3718, allocations: 13.78 kB / 0.5091 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000232/0.3721, allocations: 128.3 kB / 0.5092 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3721, allocations: 4 kB / 0.5092 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.3721, allocations: 6.25 kB / 0.5092 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3721, allocations: 1.859 kB / 0.5092 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.3722, allocations: 86.66 kB / 0.5093 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000365/0.3726, allocations: 361 kB / 0.5096 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.3728, allocations: 133.8 kB / 0.5098 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3729, allocations: 121.4 kB / 0.5099 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.3729, allocations: 4 kB / 0.5099 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.3729, allocations: 36.41 kB / 0.5099 GB, free: 3.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.232e-06/0.3729, allocations: 0 / 0.5099 GB, free: 3.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005059/0.3734, allocations: 291.6 kB / 0.5102 GB, free: 3.355 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3735, allocations: 98.17 kB / 0.5103 GB, free: 3.254 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.309e-05/0.3736, allocations: 138.3 kB / 0.5104 GB, free: 3.145 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.3736, allocations: 25.7 kB / 0.5104 GB, free: 3.113 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.629e-05/0.3737, allocations: 110.9 kB / 0.5105 GB, free: 3.012 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.3737, allocations: 64.45 kB / 0.5106 GB, free: 2.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/0.3738, allocations: 27.78 kB / 0.5106 GB, free: 2.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.621e-05/0.3738, allocations: 326.8 kB / 0.5109 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.421e-05/0.3739, allocations: 56.33 kB / 0.511 GB, free: 2.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.917e-05/0.374, allocations: 58.27 kB / 0.5111 GB, free: 2.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/0.3743, allocations: 227.5 kB / 0.5113 GB, free: 2.496 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3743, allocations: 3.938 kB / 0.5113 GB, free: 2.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002868/0.3746, allocations: 222.7 kB / 0.5115 GB, free: 2.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.103e-05/0.3746, allocations: 59.97 kB / 0.5115 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.3747, allocations: 5.156 kB / 0.5115 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3747, allocations: 0 / 0.5115 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.326e-06/0.3747, allocations: 5.656 kB / 0.5116 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.3747, allocations: 0 / 0.5116 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.363e-05/0.3748, allocations: 12.33 kB / 0.5116 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.3748, allocations: 7.5 kB / 0.5116 GB, free: 2.34 MB / 382.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.3749, allocations: 182.2 kB / 0.5117 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.375, allocations: 19.33 kB / 0.5118 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.928e-05/0.375, allocations: 10.03 kB / 0.5118 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.375, allocations: 4.703 kB / 0.5118 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.375, allocations: 0 / 0.5118 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.375, allocations: 0.8438 kB / 0.5118 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.3752, allocations: 213.7 kB / 0.512 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3752, allocations: 1.031 kB / 0.512 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.574e-06/0.3752, allocations: 4.641 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3753, allocations: 1.469 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.3753, allocations: 4.516 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3753, allocations: 0 / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3753, allocations: 2.125 kB / 0.512 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004932/0.3758, allocations: 461.7 kB / 0.5124 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.97e-05/0.3758, allocations: 97.33 kB / 0.5125 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.3759, allocations: 4.625 kB / 0.5125 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.83e-05/0.3759, allocations: 4.25 kB / 0.5125 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.856e-05/0.376, allocations: 6.359 kB / 0.5125 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.376, allocations: 7.234 kB / 0.5126 GB, free: 1.602 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.863e-05/0.376, allocations: 106.9 kB / 0.5127 GB, free: 1.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.376, allocations: 32 / 0.5127 GB, free: 1.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006438/0.3767, allocations: 142.5 kB / 0.5128 GB, free: 1.5 MB / 382.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001248/0.3779, allocations: 1.233 MB / 0.514 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000591/0.3785, allocations: 0.5682 MB / 0.5145 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3786, allocations: 4.094 kB / 0.5146 GB, free: 356 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004118/0.379, allocations: 469.2 kB / 0.515 GB, free: 56 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.3793, allocations: 21.08 kB / 0.515 GB, free: 52 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003428/0.3827, allocations: 2.443 MB / 0.5174 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.3832, allocations: 0.7293 MB / 0.5181 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.863e-05/0.3832, allocations: 6.125 kB / 0.5181 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.3833, allocations: 35.59 kB / 0.5182 GB, free: 13.79 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3833, allocations: 1.5 kB / 0.5182 GB, free: 13.79 MB / 398.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].