Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001624/0.001624, allocations: 110.5 kB / 17.06 MB, free: 5.941 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.00138/0.00138, allocations: 200 kB / 18.01 MB, free: 5.031 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.488/1.488, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.223/0.223, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 63.91 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3568, allocations: 58.06 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003927/0.3608, allocations: 2.143 MB / 0.5057 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002976/0.3639, allocations: 2.045 MB / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.692e-05/0.364, allocations: 0 / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.3641, allocations: 15.17 kB / 0.5077 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.3643, allocations: 42.23 kB / 0.5078 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00255/0.3668, allocations: 0.8156 MB / 0.5086 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.367, allocations: 97.86 kB / 0.5087 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.296e-05/0.3671, allocations: 8.828 kB / 0.5087 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.541e-05/0.3672, allocations: 41.38 kB / 0.5087 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.518e-05/0.3673, allocations: 55.42 kB / 0.5088 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.3673, allocations: 2.281 kB / 0.5088 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002491/0.3698, allocations: 1.378 MB / 0.5101 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.935e-05/0.3699, allocations: 32.33 kB / 0.5101 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.418e-05/0.37, allocations: 43 kB / 0.5102 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00237/0.3724, allocations: 1.324 MB / 0.5115 GB, free: 3.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3724, allocations: 0 / 0.5115 GB, free: 3.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3724, allocations: 0.6094 kB / 0.5115 GB, free: 3.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.3724, allocations: 1.094 kB / 0.5115 GB, free: 3.539 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007404/0.3731, allocations: 0.5545 MB / 0.512 GB, free: 3.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3732, allocations: 13.61 kB / 0.512 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.059e-05/0.3733, allocations: 59.75 kB / 0.5121 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.061e-05/0.3733, allocations: 31.11 kB / 0.5121 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.3735, allocations: 208.7 kB / 0.5123 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.3735, allocations: 5.969 kB / 0.5123 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.3736, allocations: 9.531 kB / 0.5123 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002248/0.3738, allocations: 127.1 kB / 0.5125 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.3738, allocations: 2.312 kB / 0.5125 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.3738, allocations: 4.969 kB / 0.5125 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3738, allocations: 1.219 kB / 0.5125 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.374, allocations: 71.94 kB / 0.5125 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003706/0.3743, allocations: 359.8 kB / 0.5129 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.3745, allocations: 82.11 kB / 0.513 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.039e-05/0.3745, allocations: 57.08 kB / 0.513 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.438e-06/0.3745, allocations: 5.062 kB / 0.513 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.3746, allocations: 32.42 kB / 0.513 GB, free: 2.219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.3746, allocations: 0 / 0.513 GB, free: 2.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003559/0.3749, allocations: 229.5 kB / 0.5133 GB, free: 2.121 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.375, allocations: 91.06 kB / 0.5133 GB, free: 2.023 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.3751, allocations: 149.7 kB / 0.5135 GB, free: 1.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.3751, allocations: 26.77 kB / 0.5135 GB, free: 1.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.301e-05/0.3751, allocations: 115.7 kB / 0.5136 GB, free: 1.777 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/0.3752, allocations: 53.17 kB / 0.5137 GB, free: 1.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.922e-05/0.3752, allocations: 20.89 kB / 0.5137 GB, free: 1.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.651e-05/0.3753, allocations: 326.7 kB / 0.514 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.365e-05/0.3754, allocations: 40.83 kB / 0.514 GB, free: 1.391 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.599e-05/0.3754, allocations: 41.73 kB / 0.5141 GB, free: 1.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.3756, allocations: 175.8 kB / 0.5143 GB, free: 1.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3756, allocations: 1.219 kB / 0.5143 GB, free: 1.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002158/0.3758, allocations: 176.9 kB / 0.5144 GB, free: 1.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.3759, allocations: 51.44 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3759, allocations: 2.344 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.3759, allocations: 1.312 kB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.3759, allocations: 0 / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.3759, allocations: 0 / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.311e-05/0.376, allocations: 11.8 kB / 0.5145 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.376, allocations: 5.562 kB / 0.5145 GB, free: 1.168 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.0001016/0.3761, allocations: 175.7 kB / 0.5147 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.3762, allocations: 19.75 kB / 0.5147 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.085e-05/0.3762, allocations: 10.31 kB / 0.5147 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3762, allocations: 0.7969 kB / 0.5147 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3762, allocations: 3.938 kB / 0.5147 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.3762, allocations: 0 / 0.5147 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/0.3764, allocations: 217.8 kB / 0.5149 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.3764, allocations: 7.938 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-06/0.3764, allocations: 0.7031 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3764, allocations: 1.594 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.3764, allocations: 3.922 kB / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3764, allocations: 0 / 0.5149 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3764, allocations: 4 kB / 0.5149 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003661/0.3768, allocations: 372.6 kB / 0.5153 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-05/0.3769, allocations: 85.58 kB / 0.5154 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.3769, allocations: 6.75 kB / 0.5154 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.56e-05/0.377, allocations: 3.938 kB / 0.5154 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.059e-05/0.377, allocations: 6.062 kB / 0.5154 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.377, allocations: 5.125 kB / 0.5154 GB, free: 464 kB / 382.1 MB Notification: Performance of sorting global known variables: time 7.082e-05/0.3771, allocations: 117.1 kB / 0.5155 GB, free: 380 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3771, allocations: 3.938 kB / 0.5155 GB, free: 376 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001204/0.3783, allocations: 344 kB / 0.5158 GB, free: 320 kB / 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.0018/0.3801, allocations: 1.281 MB / 0.5171 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004131/0.3805, allocations: 335.9 kB / 0.5174 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3806, allocations: 0 / 0.5174 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.3808, allocations: 263.7 kB / 0.5176 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.3812, allocations: 18.33 kB / 0.5177 GB, free: 15.15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/0.3838, allocations: 2.32 MB / 0.5199 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.3842, allocations: 0.7309 MB / 0.5206 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.85e-05/0.3842, allocations: 2.938 kB / 0.5206 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.176e-05/0.3843, allocations: 33.05 kB / 0.5207 GB, free: 12.92 MB / 398.1 MB Notification: Performance of SimCode: time 2.344e-06/0.3843, allocations: 4.031 kB / 0.5207 GB, free: 12.91 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].